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
My level will not load...
LoneWolf Offline
Senior Member

Posts: 308
Threads: 43
Joined: Sep 2010
Reputation: 0
#3
RE: My level will not load...

The description now works, but it wont load, i get this:

FATAL ERROR Could not load script file 'custom_stories/story/maps/firstmap.hps'! main (24,2) : ERR :Expected data type


IS it my HPS then? i fixed the things you said.
Also where do i find the XML tester?


My HPS now looks like this - (now i have 2 errors when tryign to load it.....)

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "CollideScript", true, 1);
}

void CollideScript(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("castle_arched01_2", true, true);
ShowEnemyPlayerPosition("servant_grunt_1");

}


{
AddUseItemCallback("", "StudyKey", "castle_arched01_3", "UsedKeyOnDoor", true);

}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_arched01_3", false, true);
PlaySoundAtEntity("", "unlock_door", "castle_arched01_3", 0, false);
RemoveItem(StudyKey);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave(
{
}
10-01-2010, 04:09 PM
Find


Messages In This Thread
My level will not load... - by LoneWolf - 10-01-2010, 03:12 PM
RE: My level will not load... - by HakePT - 10-01-2010, 03:38 PM
RE: My level will not load... - by LoneWolf - 10-01-2010, 04:09 PM
RE: My level will not load... - by Pandemoneus - 10-01-2010, 04:43 PM
RE: My level will not load... - by HakePT - 10-01-2010, 04:55 PM
RE: My level will not load... - by LoneWolf - 10-01-2010, 04:57 PM
RE: My level will not load... - by HakePT - 10-01-2010, 05:01 PM
RE: My level will not load... - by LoneWolf - 10-01-2010, 05:11 PM
RE: My level will not load... - by HakePT - 10-01-2010, 06:12 PM



Users browsing this thread: 3 Guest(s)