![]() |
Error Unexpected End of File - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Error Unexpected End of File (/thread-24774.html) Pages:
1
2
|
RE: Error Unexpected End of File - Aglowglint11 - 03-08-2014 (03-08-2014, 03:41 PM)SomethingRidiculous Wrote: void Sound_1(string &in asParent, string &in asChild, int alState)Hey! Thanks I finally got it! Thanks a ton bro! ![]() If there are any more problems I might post them here! Thanks again! ~Skyrimdude111 RE: Error Unexpected End of File - Traggey - 03-08-2014 THis is posted in the wrong section, moved. RE: Error Unexpected End of File - Aglowglint11 - 03-09-2014 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 RE: Error Unexpected End of File - Neelke - 03-09-2014 For a level door, you have change it a little bit. A level door isn't a swing door so use this instead. Code: SetLevelDoorLocked("Stairs_Downstairs", false); Just replace this with SetSwingDoorLocked. RE: Error Unexpected End of File - Fotis - 07-10-2014 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 RE: Error Unexpected End of File - PutraenusAlivius - 07-10-2014 PHP Code: void OnStart() NEVER USE SPACES IN NAMES. USE _. RE: Error Unexpected End of File - Urkle - 07-10-2014 (07-10-2014, 09:37 AM)Fotis Wrote: void OnStart() You have a missing quote just after Teleport_noob and before the , true. RE: Error Unexpected End of File - DnALANGE - 07-10-2014 (03-08-2014, 04:04 PM)Traggey Wrote: THis is posted in the wrong section, moved. COPY PASTED ![]() ![]() ![]() |