Aglowglint11
Junior Member
Posts: 31
Threads: 8
Joined: Mar 2014
Reputation:
0
|
RE: Error Unexpected End of File
(03-08-2014, 03:41 PM)SomethingRidiculous Wrote: void Sound_1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_breath1.ogg", "Player", 0, false);
} Hey! Thanks I finally got it! Thanks a ton bro!
If there are any more problems I might post them here! Thanks again!
~Skyrimdude111
|
|
03-08-2014, 03:44 PM |
|
Traggey
is mildly amused
Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation:
185
|
RE: Error Unexpected End of File
THis is posted in the wrong section, moved.
|
|
03-08-2014, 04:04 PM |
|
Aglowglint11
Junior Member
Posts: 31
Threads: 8
Joined: Mar 2014
Reputation:
0
|
RE: Error Unexpected End of File
So, I'm back! This time there are no errors but something ins't working and I'm wondering if I forgot one line in the scripting or something. So, I have a level door that's locked and you have to go through another level door to get the key, so when you return to the original place to unlock the door, you use the key and it makes the unlocking noise, gets rid of the key, but the door is still locked! I'm just wondering if I messed up a script or something, I have the .hps into the first room where the locked door is, It looks like this.
_______________________________________________________________________________________
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "SoundArea_1", "Sound_1", true, 1);
AddEntityCollideCallback("Player", "fallarea", "fall", true, 1);
AddEntityCollideCallback("Player", "SoundArea_2", "Sound_2", true, 1);
AddEntityCollideCallback("Player", "SoundArea_3", "Sound_3", true, 1);
AddUseItemCallback("", "Stairs_Key", "Stairs_Downstairs", "UsedKeyonDoor", true);
}
void fall(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("2", true);
SetEntityActive("3", true);
SetEntityActive("4", true);
SetEntityActive("5", true);
SetEntityActive("6", true);
}
void Sound_1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_breath1.ogg", "Player", 0, false);
}
void UsedKeyonDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Stairs_Downstairs", false, true);
PlaySoundAtEntity("", "unlock_door", "Stairs_Downstairs", 0, false);
RemoveItem("Stairs_Key");
}
void Sound_2(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "general_thunder1.ogg", "Player", 0, false);
}
void Sound_3(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "amb_idle_whimp01.ogg", "Player", 0, false);
}
_______________________________________________________________________________________
I think I'm missing a line of script. Aren't I? Please find the problem if you can.
(New At Scripting)
~Skyrimdude111
N00B
|
|
03-09-2014, 01:35 PM |
|
Neelke
Senior Member
Posts: 668
Threads: 82
Joined: Apr 2013
Reputation:
26
|
RE: Error Unexpected End of File
For a level door, you have change it a little bit. A level door isn't a swing door so use this instead.
SetLevelDoorLocked("Stairs_Downstairs", false);
Just replace this with SetSwingDoorLocked.
|
|
03-09-2014, 02:16 PM |
|
Fotis
Junior Member
Posts: 1
Threads: 0
Joined: Jul 2014
Reputation:
0
|
RE: Error Unexpected End of File
Guys i have the same problem with this script for teleport mans
thats the script:
void OnStart()
{
AddEntityCollideCallback("Player", "Teleport Script", "Teleport_noob, true, 1);
}
void Teleport_noob(string &in asParent, string &in asChild, int alStates)
{
SetEntityActive("Guy_1", true);
AddPropForce("Guy_1", 1, 1, -10000, "world");
}
and it write:
FATAL ERROR
FATAL ERROR: Could not load script file 'custom_stories/Amnesia Custom story pack/custom_stories/Amnesia Custom story pack/maps/C:/Program Files (x86)/Amnesia - The Dark Descent/redist/custom_stories/Amnesia Custom story pack/maps/02 map.hps'!
main (9, 2) : ERR : Unexpected end of file
pls help me
Guys i have the same problem with this script for teleport mans
thats the script:
void OnStart()
{
AddEntityCollideCallback("Player", "Teleport Script", "Teleport_noob, true, 1);
}
void Teleport_noob(string &in asParent, string &in asChild, int alStates)
{
SetEntityActive("Guy_1", true);
AddPropForce("Guy_1", 1, 1, -10000, "world");
}
FATAL ERROR
FATAL ERROR: Could not load script file 'custom_stories/Amnesia Custom story pack/custom_stories/Amnesia Custom story pack/maps/C:/Program Files (x86)/Amnesia - The Dark Descent/redist/custom_stories/Amnesia Custom story pack/maps/02 map.hps'!
main (9, 2) : ERR : Unexpected end of file
(This post was last modified: 07-10-2014, 09:40 AM by Fotis.)
|
|
07-10-2014, 09:37 AM |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: Error Unexpected End of File
void OnStart() { AddEntityCollideCallback("Player", "TeleportArea", "Teleport_noob", true, 1); } void Teleport_noob(string &in asParent, string &in asChild, int alState) //int alState, not int alStates. { SetEntityActive("Guy_1", true); AddPropForce("Guy_1", 1, 1, -10000, "world"); }
NEVER USE SPACES IN NAMES. USE _.
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
07-10-2014, 11:28 AM |
|
Urkle
FG - Associate
Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation:
21
|
RE: Error Unexpected End of File
(07-10-2014, 09:37 AM)Fotis Wrote: void OnStart()
{
AddEntityCollideCallback("Player", "Teleport Script", "Teleport_noob, true, 1);
}
void Teleport_noob(string &in asParent, string &in asChild, int alStates)
{
SetEntityActive("Guy_1", true);
AddPropForce("Guy_1", 1, 1, -10000, "world");
}
You have a missing quote just after Teleport_noob and before the , true.
Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
|
|
07-10-2014, 02:48 PM |
|
DnALANGE
Banned
Posts: 1,549
Threads: 73
Joined: Jan 2012
|
|
07-10-2014, 06:38 PM |
|
|