Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom story help
Author Message
aqfitz622 Offline
Junior Member

Posts: 23
Joined: Nov 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Statyk Offline
Modmau5

Posts: 3,600
Joined: Sep 2011
Reputation: 198
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
aqfitz622 Offline
Junior Member

Posts: 23
Joined: Nov 2011
Reputation: 0
Post: #13
RE: Custom story help
i was missing the s there. it works now. thank you all
11-12-2011 10:35 PM
Find all posts by this user Quote this message in a reply
Statyk Offline
Modmau5

Posts: 3,600
Joined: Sep 2011
Reputation: 198
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)