Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Whats Wrong???
Author Message
teddifisk Offline
Senior Member

Posts: 303
Joined: Dec 2010
Reputation: 2
Post: #1
Whats Wrong???
Hi.

When I try to start my story it gets a fatal error.
Can anybody see whats wrong with my script???

Here is the full script:

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "LookAtRocks", "LookRocks", true, 1);
SetPlayerCrouching(true);
FadeOut(0);
SetPlayerActive(false);
AddTimer("", 10.0f, "IntroStart2");
SetMessage("IntroCategory", "Intro1", 0);
}

void LookRocks(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("RockDebris", 2.0f, 5.0f, "");
AddTimer("", 1.0f, "StopLookAtRocks");
}

void IntroStart2(string &in asTimer)
{
SetMessage("IntroCategory", "Intro2", 0);
AddTimer("", 10.0f, "IntroStart3");
}

void IntroStart3(string &in asTimer)
{
SetMessage("IntroCategory", "Intro3", 0);
AddTimer("", 10.0f, "WakeUp");
}

void WakeUp(string &in asTimer)
{
FadeOut(0);
FadeIn(20);
FadeImageTrailTo(2, 2);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220);
FadeRadialBlurTo(0.15, 2);
AddTimer("trig1", 11.0f, "beginStory");
}

void beginStory(string &in asTimer)
{
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33);
FadeRadialBlurTo(0.0, 1);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
AddQuest("Memento1","Memento1);
}

void StopLookAtRocks(string &in asTimer)
{
SetMessage("JohnatanThoughts", "Thought1", 0);
StopPlayerLookAt();
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

03-14-2011 12:54 PM
Find all posts by this user Quote this message in a reply
junkfood2121 Offline
Senior Member

Posts: 267
Joined: Jan 2011
Reputation: 3
Post: #2
RE: Whats Wrong???
What error message are you getting?

May I present to you.. the Grunt Cannon:
http://www.youtube.com/watch?v=v9KjvvVzNNg
03-14-2011 01:44 PM
Visit this user's website Find all posts by this user Quote this message in a reply
teddifisk Offline
Senior Member

Posts: 303
Joined: Dec 2010
Reputation: 2
Post: #3
RE: Whats Wrong???
(03-14-2011 01:44 PM)junkfood2121 Wrote:  What error message are you getting?

I get:

FATAL ERROR: Could not load script file 'custom stories/William's Castle/custom_stories/William's Castle/maps/ch01/Outside.hps'!
main (71, 2) : ERR : Unexpected end of file

03-14-2011 02:03 PM
Find all posts by this user Quote this message in a reply
Pandemoneus Offline
Senior Member

Posts: 328
Joined: Sep 2010
Reputation: 0
Post: #4
RE: Whats Wrong???
Missing " in AddQuest.

03-14-2011 02:24 PM
Find all posts by this user Quote this message in a reply
teddifisk Offline
Senior Member

Posts: 303
Joined: Dec 2010
Reputation: 2
Post: #5
RE: Whats Wrong???
(03-14-2011 02:24 PM)Pandemoneus Wrote:  Missing " in AddQuest.

Ahh... Thanks Big Grin

03-14-2011 04:09 PM
Find all posts by this user Quote this message in a reply
SHODANFreeman Offline
Senior Member

Posts: 269
Joined: May 2010
Reputation: 0
Post: #6
RE: Whats Wrong???
(03-14-2011 02:24 PM)Pandemoneus Wrote:  Missing " in AddQuest.

Oh god, I hate syntax errors so much. Dodgy
03-14-2011 04:59 PM
Find all posts by this user Quote this message in a reply
teddifisk Offline
Senior Member

Posts: 303
Joined: Dec 2010
Reputation: 2
Post: #7
RE: Whats Wrong???
(03-14-2011 04:59 PM)SHODANFreeman Wrote:  
(03-14-2011 02:24 PM)Pandemoneus Wrote:  Missing " in AddQuest.

Oh god, I hate syntax errors so much. Dodgy

What is syntax?? XD

btw im 14 years Exclamation

03-14-2011 06:37 PM
Find all posts by this user Quote this message in a reply
Droopy Offline
Member

Posts: 111
Joined: Feb 2011
Reputation: 0
Post: #8
RE: Whats Wrong???
Basically it's how said code should be arranged
03-14-2011 08:38 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)