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 COULD NOT LOAD SCRIPT *CUSTOM STORY*
goodcap Offline
Member

Posts: 193
Threads: 112
Joined: Jun 2012
Reputation: 3
#1
FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY*

FATAL ERROR, COULD NOT LOAD SCRIPT FILE (something with HPS)
////////////////////////////


// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "kaasje", "eerstedeur", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asitem, string &in asEntity)
{
SetSwingDoorLocked("eerstedeur", false, true);
PlaySoundAtEntity("", "unlock_door", "eerstedeur", 0, false);
RemoveItem("kaasje");
}




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

}

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


06-10-2012, 02:53 PM
Find
Putkimato Offline
Junior Member

Posts: 25
Threads: 8
Joined: Jun 2012
Reputation: 0
#2
RE: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY*

// Run first time starting map

void OnStart()
{
AddUseItemCallback("", "kaasje", "eerstedeur", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asitem, string &in asEntity)
{
SetSwingDoorLocked("eerstedeur", false, true);
PlaySoundAtEntity("", "unlock_door", "eerstedeur", 0, false);
RemoveItem("kaasje");
}
////////////////////////////

// Run when entering map

void OnEnter()
{

}
////////////////////////////

// Run when leaving map

void OnLeave()

{

}

Try this, you forgot these { } at end
(This post was last modified: 06-10-2012, 03:06 PM by Putkimato.)
06-10-2012, 03:04 PM
Find
Science Offline
Junior Member

Posts: 9
Threads: 0
Joined: Jun 2012
Reputation: 0
#3
RE: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY*

Make sure that both the .map and the .hps files are named the same.

I'm smart enough to know that I'm dumb.
06-10-2012, 03:34 PM
Find
goodcap Offline
Member

Posts: 193
Threads: 112
Joined: Jun 2012
Reputation: 3
#4
RE: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY*

They are named the same

THANKS SO MUCH! IT WORKS! I WANT YOUR BABIES!
(This post was last modified: 06-10-2012, 03:41 PM by goodcap.)
06-10-2012, 03:40 PM
Find
Science Offline
Junior Member

Posts: 9
Threads: 0
Joined: Jun 2012
Reputation: 0
#5
RE: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY*

Is the .hps file in the same folder as the .map? It should be custom_stories/yourstory/maps/.hps and .map here

I'm smart enough to know that I'm dumb.
06-10-2012, 04:01 PM
Find
goodcap Offline
Member

Posts: 193
Threads: 112
Joined: Jun 2012
Reputation: 3
#6
RE: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY*

it' works now, thanks so much Smile
06-10-2012, 04:02 PM
Find




Users browsing this thread: 2 Guest(s)