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
amnesia custom story error?
nixxx60 Offline
Junior Member

Posts: 11
Threads: 2
Joined: Feb 2013
Reputation: 0
#1
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
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: amnesia custom story error?

On the
PHP Code: (Select All)
RemoveItem(studydoorkey_1); 

part of the script, studydoorkey_1 is not declared. It should be
PHP Code: (Select All)
RemoveItem("studydoorkey_1"); 

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 02-06-2013, 10:22 AM by PutraenusAlivius.)
02-06-2013, 10:20 AM
Find
nixxx60 Offline
Junior Member

Posts: 11
Threads: 2
Joined: Feb 2013
Reputation: 0
#3
RE: amnesia custom story error?

(02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: On the
PHP Code: (Select All)
RemoveItem(studydoorkey_1); 

part of the script, studydoorkey_1 is not declared. It should be
PHP Code: (Select All)
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
PHP Code: (Select All)
RemoveItem(studydoorkey_1); 

part of the script, studydoorkey_1 is not declared. It should be
PHP Code: (Select All)
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
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#4
RE: amnesia custom story error?

(02-06-2013, 10:23 AM)nixxx60 Wrote:
(02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: On the
PHP Code: (Select All)
RemoveItem(studydoorkey_1); 

part of the script, studydoorkey_1 is not declared. It should be
PHP Code: (Select All)
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
PHP Code: (Select All)
RemoveItem(studydoorkey_1); 

part of the script, studydoorkey_1 is not declared. It should be
PHP Code: (Select All)
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;
PHP Code: (Select All)
"studydoorkey_1"); 
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."
(This post was last modified: 02-06-2013, 10:28 AM by PutraenusAlivius.)
02-06-2013, 10:26 AM
Find
nixxx60 Offline
Junior Member

Posts: 11
Threads: 2
Joined: Feb 2013
Reputation: 0
#5
RE: amnesia custom story error?

(02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: On the
PHP Code: (Select All)
RemoveItem(studydoorkey_1); 

part of the script, studydoorkey_1 is not declared. It should be
PHP Code: (Select All)
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
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#6
RE: amnesia custom story error?

(02-06-2013, 10:28 AM)nixxx60 Wrote:
(02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: On the
PHP Code: (Select All)
RemoveItem(studydoorkey_1); 

part of the script, studydoorkey_1 is not declared. It should be
PHP Code: (Select All)
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
PHP Code: (Select All)
RemoveItem("studydoorkey_1"); 

"Veni, vidi, vici."
"I came, I saw, I conquered."
02-06-2013, 10:28 AM
Find
nixxx60 Offline
Junior Member

Posts: 11
Threads: 2
Joined: Feb 2013
Reputation: 0
#7
RE: amnesia custom story error?

i made it ("studydoorkey_1");]

but still not workin
02-06-2013, 10:29 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#8
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:
PHP Code: (Select All)
RemoveItem("studydoorkey_1"); 
NOT:
PHP Code: (Select All)
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."
(This post was last modified: 02-06-2013, 10:33 AM by PutraenusAlivius.)
02-06-2013, 10:32 AM
Find
nixxx60 Offline
Junior Member

Posts: 11
Threads: 2
Joined: Feb 2013
Reputation: 0
#9
RE: amnesia custom story error?

ok i fixed it thx
Big Grin
02-06-2013, 10:33 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#10
RE: amnesia custom story error?

(02-06-2013, 10:33 AM)nixxx60 Wrote: ok i fixed it thx
Big Grin
what about my reputation? Sad
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."
(This post was last modified: 02-06-2013, 10:35 AM by PutraenusAlivius.)
02-06-2013, 10:34 AM
Find




Users browsing this thread: 1 Guest(s)