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

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

It shows up in custom story, stangely my description will not show, when i click on the game it crashes and gives me an error.

And yes i have watched the tutorials and i copied alot of what was written.

(Underlined text is the file name)


Custom_Story_setting.cfg

<Main
Name = "My first map"
Author = "Kieren Tod"

MapsFolder = "maps/"
StartMap = "Firstmap.map" (yes this is my map name!)
StartPos = "PlayerStartArea_1" *(changed lower case s to caps S)*


/>



extra_english.lang

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">My first level.[br][br]I hope you'll enjoy! </Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_StudyKey">Study Key </Entry>
<Entry Name="ItemDesc_StudyKey">Key for room one </Entry> *(Added </Entry> )*
</CATEGORY>
</LANGUAGE>


Firstmap.hps (in map folder)

////////////////////////////
// Run first time starting map
void OnStart()
{
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(
{
}







Thanks for reading please tell me what is wrong with my coding.

*(.....)* - means i have changed something from feed back.
10-01-2010, 03:12 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)