The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fatal error please help!
TheDavenia Offline
Member

Posts: 223
Threads: 38
Joined: Jun 2011
Reputation: 0
#1
Sad  Fatal error please help!

This is what my fatal error says:

FATAL ERROR: Could not load script file
'custom_stories/(secret)/maps/Bedroom.hps'!
main (37, 1): ERR : Unexpected token '{'

And here's my Bedroom.hps file:

void OnStart()
{
AddEntityCollideCallback("Player", "script_turn_boxlight_off", "func_turn_boxlight_off", true, 1);
wakeUp();
AddUseItemCallback("", "key_tower_1", "level_hub_1", "unlock_level_hub_1", true);
}

void wakeUp () {
    FadeOut(0);     // Instantly fades the screen out. (Good for starting the game)
    FadeIn(20);      // Amount of seconds the fade in takes
    FadeImageTrailTo(2, 2);
    FadeSepiaColorTo(100, 4);
    SetPlayerActive(false);    
    FadePlayerRollTo(50, 220, 220);                 // "Tilts" the players head
    FadeRadialBlurTo(0.15, 2);
    SetPlayerCrouching(true);              // Simulates being on the ground
    AddTimer("trig1", 7.0f, "beginStory");            // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer){
    ChangePlayerStateToNormal();
    SetPlayerActive(true);
    FadePlayerRollTo(0, 33, 33);        // Change all settings to defaults
    FadeRadialBlurTo(0.0, 1);
    FadeSepiaColorTo(0, 4);
    SetPlayerCrouching(false);
    FadeImageTrailTo(0,1);
}

void func_turn_boxlight_off(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("script_turn_light_off", "scary_laugh01.ogg", "Player", 1.0f, false);
//SetLightVisible("boxlight", false);
}

void SetLevelDoorLocked(string& asName, bool abLocked);
{
    SetLevelDoorLocked("level_hub_1", false, true);
    PlaySoundAtEntity("", "unlock_door", "level_hub_1", 0, false);
    RemoveItem("key_tower_1");
}

Please help!
Thanks,
TheDavenia

Current Project: Nightmare's End(Project Director, Scripter, boss >:D)
07-10-2011, 08:47 PM
Find


Messages In This Thread
Fatal error please help! - by TheDavenia - 07-10-2011, 08:47 PM
RE: Fatal error please help! - by Russ Money - 07-10-2011, 09:28 PM
RE: Fatal error please help! - by TheDavenia - 07-10-2011, 09:39 PM
RE: Fatal error please help! - by SLAMnesia - 07-10-2011, 11:12 PM
RE: Fatal error please help! - by PumpMaster - 07-10-2011, 11:14 PM
RE: Fatal error please help! - by TheDavenia - 07-11-2011, 10:13 AM
RE: Fatal error please help! - by plantum - 07-11-2011, 10:24 AM
RE: Fatal error please help! - by TheDavenia - 07-11-2011, 10:33 AM
RE: Fatal error please help! - by Roenlond - 07-11-2011, 10:39 AM
RE: Fatal error please help! - by TheDavenia - 07-11-2011, 10:47 AM



Users browsing this thread: 1 Guest(s)