nixxx60
Junior Member
Posts: 11
Threads: 2
Joined: Feb 2013
Reputation:
0
|
amnesia custom story error?
nixxx60 again my amnesia custom story not in the custom storys in amnesia is fixed but when i load it it says
FATAL ERROR Could not load script file 'custom_stories/The Cursed/Custom_stories/The Cursed/maps/tutorial.hps!
Main (12,14 : ERR :'studydoorkey_1' is not declared
then my amnesia closes??
also this is wat my hps file says inside
////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "studydoorkey_1", "studydoor", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItemA, string &in asItemB)
{
SetSwingDoorLocked("studydoor", false, true);
PlaySoundAtEntity("", "unlock_door", "studydoor", 0, false);
RemoveItem(studydoorkey_1);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
(This post was last modified: 02-06-2013, 10:16 AM by nixxx60.)
|
|
02-06-2013, 10:14 AM |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: amnesia custom story error?
On the
RemoveItem(studydoorkey_1);
part of the script, studydoorkey_1 is not declared. It should be
RemoveItem("studydoorkey_1");
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
02-06-2013, 10:20 AM |
|
nixxx60
Junior Member
Posts: 11
Threads: 2
Joined: Feb 2013
Reputation:
0
|
RE: amnesia custom story error?
(02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: On the
RemoveItem(studydoorkey_1);
part of the script, studydoorkey_1 is not declared. It should be
RemoveItem("studydoorkey_1");]
i did that then it said same thing but not studykey instead at Main (12, 14
its (12,30) : ERR : Expected expression value
(02-06-2013, 10:23 AM)nixxx60 Wrote: (02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: On the
RemoveItem(studydoorkey_1);
part of the script, studydoorkey_1 is not declared. It should be
RemoveItem("studydoorkey_1");]
i did that then it said same thing but not studykey instead at Main (12, 14
its (12,30) : ERR : Expected expression value
oh wait i forgot The " in studydoorkey_1):]
(This post was last modified: 02-06-2013, 10:24 AM by nixxx60.)
|
|
02-06-2013, 10:23 AM |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: amnesia custom story error?
(02-06-2013, 10:23 AM)nixxx60 Wrote: (02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: On the
RemoveItem(studydoorkey_1);
part of the script, studydoorkey_1 is not declared. It should be
RemoveItem("studydoorkey_1");]
i did that then it said same thing but not studykey instead at Main (12, 14
its (12,30) : ERR : Expected expression value
(02-06-2013, 10:23 AM)nixxx60 Wrote: (02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: On the
RemoveItem(studydoorkey_1);
part of the script, studydoorkey_1 is not declared. It should be
RemoveItem("studydoorkey_1");]
i did that then it said same thing but not studykey instead at Main (12, 14
its (12,30) : ERR : Expected expression value
oh wait i forgot The " in studydoorkey_1):] It's;
Made a mistake.
EDIT: I just realized : Your thread was supposed to be in
Amnesia - The Dark Descent/Custom stories, TC's & Mods/Technical Support.
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
02-06-2013, 10:26 AM |
|
nixxx60
Junior Member
Posts: 11
Threads: 2
Joined: Feb 2013
Reputation:
0
|
RE: amnesia custom story error?
(02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: On the
RemoveItem(studydoorkey_1);
part of the script, studydoorkey_1 is not declared. It should be
RemoveItem("studydoorkey_1");
I added comma hings in studydoorkey_!
and the ] and now it says at end of error
Main (12,32) ERR: expected expression value
??
|
|
02-06-2013, 10:28 AM |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: amnesia custom story error?
(02-06-2013, 10:28 AM)nixxx60 Wrote: (02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: On the
RemoveItem(studydoorkey_1);
part of the script, studydoorkey_1 is not declared. It should be
RemoveItem("studydoorkey_1");
I added comma hings in studydoorkey_!
and the ] and now it says at end of error
Main (12,32) ERR: expected expression value
?? It's
RemoveItem("studydoorkey_1");
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
02-06-2013, 10:28 AM |
|
nixxx60
Junior Member
Posts: 11
Threads: 2
Joined: Feb 2013
Reputation:
0
|
RE: amnesia custom story error?
i made it ("studydoorkey_1");]
but still not workin
|
|
02-06-2013, 10:29 AM |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: amnesia custom story error?
(02-06-2013, 10:29 AM)nixxx60 Wrote: i made it ("studydoorkey_1");]
but still not workin DID YOU SEE MY PREVIOUS POSTS?!
ITS:
RemoveItem("studydoorkey_1");
NOT:
RemoveItem("studydoorkey_1");]
I didn't mean to upset you or anything, but you don't pay attention to previous posts.
EDIT: Yay! 202 Posts!
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
02-06-2013, 10:32 AM |
|
nixxx60
Junior Member
Posts: 11
Threads: 2
Joined: Feb 2013
Reputation:
0
|
RE: amnesia custom story error?
ok i fixed it thx
|
|
02-06-2013, 10:33 AM |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: amnesia custom story error?
(02-06-2013, 10:33 AM)nixxx60 Wrote: ok i fixed it thx
what about my reputation?
EDIT: And oh dude, PM me a link to download it for me to test it out, don't release it yet.
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
02-06-2013, 10:34 AM |
|
|