Frictional Games Forum (read-only)

Full Version: Custom story help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(11-12-2011, 09:51 PM)Statyk Wrote: [ -> ]A .hps file is necessary for ALL scripts within the .map that the name matches PERFECTLY... Just open Notepad (Notepad++ is recommended) and copy this into it:

//____________________________

void OnStart()
{

}

void OnEnter()
{

}

void OnLeave()
{

}

//_______________________

Then save it in the same folder as the map as the name calls. For example:

test.map
test.hps

**MAKE SURE that in the "File Name" when saving, you put ".hps" at the end. Otherwise, it'll save as a ".txt" and that's wrong.**
i created the HPS file and put it in the maps

.CFG


<Main
Name="trapped"
Author="aqfitz"
ImgFile=""

MapsFolder="maps/"
StartMap="trapped.map"
StartPos=""
/>

.LANG


<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">test</Entry>
</CATEGORY>
</LANGUAGE>


.hps


//____________________________

void OnStart()
{

}

void OnEnter()
{

}

void OnLeave()
{

}

//_______________________

is there more i need to do because it still dosnt show up
Like Darion97 said, make sure it says "custom_story_settings.cfg" JUST LIKE THAT. He said you were missing an "s" at the end of the title and it worked.

i was missing the s there. it works now. thank you all
(11-12-2011, 10:35 PM)aqfitz622 Wrote: [ -> ]i was missing the s there. it works now. thank you all
lol no problem, just remember, it's almost ALWAYS a typo somewhere when it comes to errors. My game crashed because I spelled a script "PlaySoundatEntity", not "PlaySoundAtEntity"
Pages: 1 2