Frictional Games Forum (read-only)
fatal error!!!!!!!!!! - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: fatal error!!!!!!!!!! (/thread-9377.html)



fatal error!!!!!!!!!! - zecuro - 07-25-2011

when i try to run my custom story this message appear
fatal error:could not load script file
custom stories/priest/maps/ch00/third test.hps'!
main (1, 1):unexpected token'('


RE: fatal error!!!!!!!!!! - Roenlond - 07-25-2011

Post the script file third test.hps inside [code] tags.


RE: fatal error!!!!!!!!!! - zecuro - 07-25-2011

(07-25-2011, 08:15 PM)Roenlond Wrote: Post the script file third test.hps inside [code] tags.

that the script i tri to run in the beginin its suppose to make the guy start uncouncious well
http://www.mediafire.com/?f8wn3jxbze7ygz3


RE: fatal error!!!!!!!!!! - Kyle - 07-29-2011

There were some weird stuff in your .hps file, but anyhow, I removed it and fixed it up a bit. Smile

Here is the script:

Code:
void OnStart()
{
    FadeOut(0);
    FadeIn(20);
    FadeImageTrailTo(2, 2);
    FadeSepiaColorTo(100, 4);
    SetPlayerActive(false);
    FadePlayerRollTo(50, 220, 220);
    FadeRadialBlurTo(0.15, 2);
    SetPlayerCrouching(true);
    AddTimer("trig1", 7.0f, "beginStory");
}
void beginStory(string &in asTimer)
{
    ChangePlayerStateToNormal();
    SetPlayerActive(true);
    FadePlayerRollTo(0, 33, 33);
    FadeRadialBlurTo(0.0, 1);
    FadeSepiaColorTo(0, 4);
    SetPlayerCrouching(false);
    FadeImageTrailTo(0, 1);
}



RE: fatal error!!!!!!!!!! - Darion97 - 09-06-2011

Try this script:

// Run when entering map
void OnEnter()
{
FadeOut(0.0);
FadeIn(5.0);
SetPlayerActive(false);
SetPlayerCrouching(true);
FadePlayerRollTo(0, 33, 33);
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
AddTimer("", 7.0, "beginStory");
}

////////////////////////////
// Actual functions
{
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33);
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(false);
FadeImageTrailTo(0, 1);
}