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
HPS DOSNT WORK WITH MAP
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#1
HPS DOSNT WORK WITH MAP

Hello i can't get why my hps dosnt work with my map

.LANG --->


<LANGUAGE>

<CATEGORY Name="CustomStoryMain">

<Entry Name="Description">You went out to take a walk but you gone lost , you found a house you knocked , no one open , but the door went open...you walk futher</Entry>

</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_Mansion Key">Mansion Key</Entry>
<Entry Name="ItemDesc_Mansion Key">The mansion door key</Entry>
</CATEGORY>

<CATEGORY Name="Journal">
<Entry Name="Note_Key1_Name">this is madness</Entry>
<Entry Name="Note_Key1_Text">[WRITTEN IN BLOOD][br][br]If you read this / if anyone read this , Please help me!!!, some one has broken in to my office and he took everything i had....and he took me as a slave... HELP ME !!!!! </Entry>
</CATEGORY>

</LANGUAGE>

HPS -->


void Onstart()
{
AddUseItemCallback("", "Mansion Key", "Locked_door", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)

{
SetSwingDoorLocked("Locked_door", false, true);
PlaySoundAtEntity("", "unlock_door", "Locked_door", 0, false);
RemoveItem("Mansion Key");
}

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
03-20-2012, 07:11 AM
Website Find
DaAinGame Offline
Member

Posts: 90
Threads: 11
Joined: Mar 2012
Reputation: 4
#2
RE: HPS DOSNT WORK WITH MAP

Two things I can think of.
1. Is your hps file named EXACTLY the same as your map? If your map name is Map1.map then the hps file needs to be Map1.hps
2. I'm not positive, but if you're getting a scripting error I'm guessing it'll be because you have a space in between Mansion and Key. I would rename it and try Mansion_Key. However, I don't know if you can have the space or not. Same goes to your .lang file. I would add a _ for the space so that its Mansion_Key.

Realm Of Another Chapter 1: http://www.frictionalgames.com/forum/thread-14142.html
Realm Of Another Chapter 2: Postponed
Adder Halls: 5%
03-20-2012, 07:16 AM
Find
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#3
RE: HPS DOSNT WORK WITH MAP

(03-20-2012, 07:16 AM)DaAinGame Wrote: Two things I can think of.
1. Is your hps file named EXACTLY the same as your map? If your map name is Map1.map then the hps file needs to be Map1.hps
2. I'm not positive, but if you're getting a scripting error I'm guessing it'll be because you have a space in between Mansion and Key. I would rename it and try Mansion_Key. However, I don't know if you can have the space or not. Same goes to your .lang file. I would add a _ for the space so that its Mansion_Key.
My map is named 01.map and 01.hps dosnt work will try with "_"

__________________________________________________________
have tryed now dosnt work at all

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
(This post was last modified: 03-20-2012, 07:19 AM by jessehmusic.)
03-20-2012, 07:17 AM
Website Find
DaAinGame Offline
Member

Posts: 90
Threads: 11
Joined: Mar 2012
Reputation: 4
#4
RE: HPS DOSNT WORK WITH MAP

Did you rename it both on your level editor and your .hps file? Or just one or the other?

Realm Of Another Chapter 1: http://www.frictionalgames.com/forum/thread-14142.html
Realm Of Another Chapter 2: Postponed
Adder Halls: 5%
(This post was last modified: 03-20-2012, 07:35 AM by DaAinGame.)
03-20-2012, 07:34 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#5
RE: HPS DOSNT WORK WITH MAP

Maybe you should tell us what isn't working.

03-20-2012, 07:39 AM
Find
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#6
RE: HPS DOSNT WORK WITH MAP

(03-20-2012, 07:34 AM)DaAinGame Wrote: Did you rename it both on your level editor and your .hps file? Or just one or the other?
Hps name--> 01.hps
Map Name --->01.map

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
03-20-2012, 07:41 AM
Website Find
DaAinGame Offline
Member

Posts: 90
Threads: 11
Joined: Mar 2012
Reputation: 4
#7
RE: HPS DOSNT WORK WITH MAP

I meant the mansion key lol. In the level editor its name should be Mansion_key and in your hps file it should be Mansion_key. They should both be the same. And yes what exactly is the issue? Are you getting a Fatal error when you load the map or is the key just not unlocking the door?

Realm Of Another Chapter 1: http://www.frictionalgames.com/forum/thread-14142.html
Realm Of Another Chapter 2: Postponed
Adder Halls: 5%
03-20-2012, 07:44 AM
Find
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#8
RE: HPS DOSNT WORK WITH MAP

i have it still dosnt work :S
and donst get fetal error...

the hps dosnt load to The map :S

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
(This post was last modified: 03-20-2012, 07:45 AM by jessehmusic.)
03-20-2012, 07:44 AM
Website Find
DaAinGame Offline
Member

Posts: 90
Threads: 11
Joined: Mar 2012
Reputation: 4
#9
RE: HPS DOSNT WORK WITH MAP

(03-20-2012, 07:44 AM)jessehmusic Wrote: i have it still dosnt work :S
and donst get fetal error...

the hps dosnt load to The map :S
Hmmm how odd. I'm guessing that both the .map file and the .hps file are in the same folder. If not go ahead and move them into the same folder, but I'm sure that they already are. Otherwise, maybe try renaming both your map and hps to something else like Map1 and see if that fixes the issue. If not then I have no clue what could be wrong.



Realm Of Another Chapter 1: http://www.frictionalgames.com/forum/thread-14142.html
Realm Of Another Chapter 2: Postponed
Adder Halls: 5%
03-20-2012, 07:48 AM
Find
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#10
RE: HPS DOSNT WORK WITH MAP

(03-20-2012, 07:48 AM)DaAinGame Wrote:
(03-20-2012, 07:44 AM)jessehmusic Wrote: i have it still dosnt work :S
and donst get fetal error...

the hps dosnt load to The map :S
Hmmm how odd. I'm guessing that both the .map file and the .hps file are in the same folder. If not go ahead and move them into the same folder, but I'm sure that they already are. Otherwise, maybe try renaming both your map and hps to something else like Map1 and see if that fixes the issue. If not then I have no clue what could be wrong.
Going to test that !!
____________________
omg it work TY TY TY!!!!!

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
(This post was last modified: 03-20-2012, 07:58 AM by jessehmusic.)
03-20-2012, 07:50 AM
Website Find




Users browsing this thread: 1 Guest(s)