Frictional Games Forum (read-only)
Custom story help - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+--- Thread: Custom story help (/thread-11318.html)

Pages: 1 2


RE: Custom story help - aqfitz622 - 11-12-2011

(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


RE: Custom story help - Statyk - 11-12-2011

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.




RE: Custom story help - aqfitz622 - 11-12-2011

i was missing the s there. it works now. thank you all


RE: Custom story help - Statyk - 11-12-2011

(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"