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 fatal error
Mr.Roflman Offline
Junior Member

Posts: 6
Threads: 1
Joined: Apr 2011
Reputation: 0
#1
.HPS fatal error

Can anyone help fix this fatal error:
FATAL ERROR: Could not load script file
'custom_stories/Unknown_Awaking/custom_stories/Unknown_Awaking/maps/00_Unknwn.hps
main (29,2) : ERR: Unexpected end of file
Heres my HPS
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "bedroomkey_1", "mansion_1", "KeyOnDoor", true);
AddUseItemCallback("", "basementkey_1", "Cellar_1", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1, false, true);
playerSoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("bedroomkey_1)
SetSwingDoorLocked("cellar_1", false, true);
PlaySoundAtEntity("", "unlock_door", "cellar_1", 0, false);
RemoveItem("basementkey_1");
)
////////////////////////////
// Run when entering map
void OnEnter()
{

)
////////////////////////////
// Run when leaving map
void OnLeave()
{

}
04-24-2011, 09:37 AM
Find
Lexander.R Offline
Junior Member

Posts: 13
Threads: 1
Joined: Apr 2011
Reputation: 0
#2
RE: .HPS fatal error

RemoveItem("bedroomkey_1) needs ; at the end i think.
04-24-2011, 09:40 AM
Find
Mr.Roflman Offline
Junior Member

Posts: 6
Threads: 1
Joined: Apr 2011
Reputation: 0
#3
RE: .HPS fatal error

(04-24-2011, 09:40 AM)Lexander.R Wrote: RemoveItem("bedroomkey_1) needs ; at the end i think.

Done that same error
04-24-2011, 09:44 AM
Find
Poppuhik42 Offline
Junior Member

Posts: 20
Threads: 1
Joined: Apr 2011
Reputation: 0
#4
RE: .HPS fatal error

-----
(This post was last modified: 12-13-2012, 10:36 PM by Poppuhik42.)
04-24-2011, 10:17 AM
Find
Mr.Roflman Offline
Junior Member

Posts: 6
Threads: 1
Joined: Apr 2011
Reputation: 0
#5
RE: .HPS fatal error

(04-24-2011, 10:17 AM)Swistrobl Wrote:
void OnEnter()
{

)

This might be your problem. Make it

void OnEnter()
{

}

instead.

I fixed both of those when I was having another look at it but still the same error, I seriously don't know whats wrong with the script
04-24-2011, 10:18 AM
Find
laser50 Offline
Member

Posts: 242
Threads: 22
Joined: Apr 2011
Reputation: 0
#6
RE: .HPS fatal error

FOUND IT, THE END OF KEYONDOOR IS A ), NOT A }
FOUND IT, THE END OF KEYONDOOR IS A ), NOT A }
(This post was last modified: 04-24-2011, 10:22 AM by laser50.)
04-24-2011, 10:21 AM
Find
Mr.Roflman Offline
Junior Member

Posts: 6
Threads: 1
Joined: Apr 2011
Reputation: 0
#7
RE: .HPS fatal error

(04-24-2011, 10:21 AM)laser50 Wrote: FOUND IT, THE END OF KEYONDOOR IS A ), NOT A }
FOUND IT, THE END OF KEYONDOOR IS A ), NOT A }

Same error
04-24-2011, 10:23 AM
Find
Poppuhik42 Offline
Junior Member

Posts: 20
Threads: 1
Joined: Apr 2011
Reputation: 0
#8
RE: .HPS fatal error

-----
(This post was last modified: 12-13-2012, 10:35 PM by Poppuhik42.)
04-24-2011, 10:30 AM
Find
Mr.Roflman Offline
Junior Member

Posts: 6
Threads: 1
Joined: Apr 2011
Reputation: 0
#9
RE: .HPS fatal error

(04-24-2011, 10:30 AM)Swistrobl Wrote:
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1, false, true);

"mansion_1" also seems to lack a quotation mark at its right side.

edit: and "bedroomkey_1 too.

Thanks its now working, thanks man and thank you everyone else who helped me no more errors, thank you and kudos to whatever project you intent to do
04-24-2011, 10:32 AM
Find
Dalroc Offline
Member

Posts: 57
Threads: 2
Joined: Mar 2011
Reputation: 0
#10
RE: .HPS fatal error

You had a correctly written script, but missed/messed up things like quotation marks, braces and a semicolon. Theses are small details that you should be able to figure out without posting a whole new thread. You will do these small errors all the time when you script.

Therefor I suggest you download Notepad++ and set the language to C++, that way you will never have to make a thread about these types of problems again!
04-24-2011, 11:44 AM
Find




Users browsing this thread: 1 Guest(s)