[SCRIPT] Unexpected end to 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: [SCRIPT] Unexpected end to file (/thread-13213.html) |
RE: Unexpected end to file - Your Computer - 02-11-2012 You have a colon where a semi-colon should be in the Intro function. Likewise, you shouldn't redeclare variables that have been declared in the same function (though i don't see why you don't just use asTimer wherever x is). RE: Unexpected end to file - Southlaguna - 02-11-2012 ah fixed that but this is a re creation of last time basically, it says its the last bracket again and even if i remove all the added script it says the same thing. Exact same situation but it wont be solved by the old solution we came to a conclusion on. I do have a difference from last time and that is that i now have two maps in the one custom story. Could that add a whole new issue? RE: Unexpected end to file - Your Computer - 02-11-2012 Well, your issue is unique and i find it really odd that deleting .map_cache files fixed the issue for the other one, since .map_cache files, to my knowledge, do not store anything concerning map scripts. I am really uncertain what the root cause of your issue is, so all i can really provide as help is for things i have experience with. RE: Unexpected end to file - Southlaguna - 02-12-2012 Is there anyone else i may be able to have look into it that may have experienced this kind of this thing? RE: Unexpected end to file - Southlaguna - 02-12-2012 Never mind I think i solved this problem for good, I realized that it must be the custom story pack I downloaded. I deleted the entire hps file they provided and made my own from scratch and it worked. The one provided must've been corrupted or something RE: Unexpected end to file - Southlaguna - 02-13-2012 Fuck me right? Still not fixed, here is the exact segment from the .hpl that goes wrong. Can anybody out there help me solve this problem because i have run out of ideas. There is nothing wrong with this point in the script i have the ending bracket closed. ERROR: Couldn't build script '/Applications/Amnesia.app/Contents/Resources/maps/Training/maps/Dreams.hps'! ------- SCRIPT OUTPUT BEGIN -------------------------- main (58, 1) : ERR : Unexpected end of file ------- SCRIPT OUTPUT END ---------------------------- FATAL ERROR: Could not load script file 'Training/Dreams.hps'! main (58, 1) : ERR : Unexpected end of file RE: Unexpected end to file - oscar1007 - 02-14-2012 Don't think this causes the error but you name a timer "T117" and then use it as "T17". As shown here: AddTimer("T117", 1, "Scare_3"); void Scare_3(string &in asTimer) { string x = asTimer; if (x == "T17") RE: Unexpected end to file - Southlaguna - 02-14-2012 yea i caught that one a while ago -.- RE: Unexpected end to file - xjonx - 03-20-2014 (02-11-2012, 01:46 AM)Your Computer Wrote: Interesting. That's the first time i've seen such an issue. Would you mind attaching the Training folder for me to look at the entire custom story? No, im having the error too, but I have a separate thread for that (2 actually) RE: Unexpected end to file - PutraenusAlivius - 03-20-2014 YC haven't been online for a while I think and besides this is an old thread. |