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


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.HPS fatal error
Author Message
Mr.Roflman Offline
Junior Member

Posts: 6
Joined: Apr 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Lexander.R Offline
Junior Member

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

RemoveItem("bedroomkey_1) needs ; at the end i think.
04-24-2011 09:40 AM
Find all posts by this user Quote this message in a reply
Mr.Roflman Offline
Junior Member

Posts: 6
Joined: Apr 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Poppuhik42 Offline
Junior Member

Posts: 20
Joined: Apr 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Mr.Roflman Offline
Junior Member

Posts: 6
Joined: Apr 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
laser50 Offline
Member

Posts: 242
Joined: Apr 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Mr.Roflman Offline
Junior Member

Posts: 6
Joined: Apr 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Poppuhik42 Offline
Junior Member

Posts: 20
Joined: Apr 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Mr.Roflman Offline
Junior Member

Posts: 6
Joined: Apr 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Dalroc Offline
Member

Posts: 57
Joined: Mar 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




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