Your Computer
SCAN ME!
Posts: 3,235
Joined: Jul 2011
Reputation: 215
|
RE: Unexpected end to file
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).
(This post was last modified: 02-11-2012 09:59 PM by Your Computer.)
|
|
| 02-11-2012 09:58 PM |
|
Southlaguna
Junior Member
Posts: 45
Joined: Jan 2012
Reputation: 0
|
RE: Unexpected end to file
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?
(This post was last modified: 02-11-2012 10:14 PM by Southlaguna.)
|
|
| 02-11-2012 10:07 PM |
|
Your Computer
SCAN ME!
Posts: 3,235
Joined: Jul 2011
Reputation: 215
|
RE: Unexpected end to file
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.
|
|
| 02-11-2012 10:29 PM |
|
Southlaguna
Junior Member
Posts: 45
Joined: Jan 2012
Reputation: 0
|
RE: Unexpected end to file
Is there anyone else i may be able to have look into it that may have experienced this kind of this thing?
(This post was last modified: 02-12-2012 06:39 AM by Southlaguna.)
|
|
| 02-12-2012 05:33 AM |
|
Southlaguna
Junior Member
Posts: 45
Joined: Jan 2012
Reputation: 0
|
RE: Unexpected end to file
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
|
|
| 02-12-2012 06:59 AM |
|
Southlaguna
Junior Member
Posts: 45
Joined: Jan 2012
Reputation: 0
|
RE: Unexpected end to file
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
(This post was last modified: 02-13-2012 10:49 PM by Southlaguna.)
|
|
| 02-13-2012 10:48 PM |
|
oscar1007
Member
Posts: 65
Joined: Oct 2011
Reputation: 0
|
RE: Unexpected end to file
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")
|
|
| 02-14-2012 07:32 AM |
|
Southlaguna
Junior Member
Posts: 45
Joined: Jan 2012
Reputation: 0
|
RE: Unexpected end to file
yea i caught that one a while ago -.-
|
|
| 02-14-2012 08:39 PM |
|