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
Custom story help
aqfitz622 Offline
Junior Member

Posts: 23
Threads: 9
Joined: Nov 2011
Reputation: 0
#11
RE: Custom story help

(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
11-12-2011, 10:12 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#12
RE: Custom story help

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.

(This post was last modified: 11-12-2011, 10:21 PM by Statyk.)
11-12-2011, 10:21 PM
Find
aqfitz622 Offline
Junior Member

Posts: 23
Threads: 9
Joined: Nov 2011
Reputation: 0
#13
RE: Custom story help

i was missing the s there. it works now. thank you all
11-12-2011, 10:35 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#14
RE: Custom story help

(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"
11-12-2011, 10:42 PM
Find




Users browsing this thread: 1 Guest(s)