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
Script Help Unexpected end to file
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#31
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).

Tutorials: From Noob to Pro
(This post was last modified: 02-11-2012, 09:59 PM by Your Computer.)
02-11-2012, 09:58 PM
Website Find
Southlaguna Offline
Member

Posts: 70
Threads: 21
Joined: Jan 2012
Reputation: 0
#32
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
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#33
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.

Tutorials: From Noob to Pro
02-11-2012, 10:29 PM
Website Find
Southlaguna Offline
Member

Posts: 70
Threads: 21
Joined: Jan 2012
Reputation: 0
#34
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
Find
Southlaguna Offline
Member

Posts: 70
Threads: 21
Joined: Jan 2012
Reputation: 0
#35
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
Find
Southlaguna Offline
Member

Posts: 70
Threads: 21
Joined: Jan 2012
Reputation: 0
#36
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
Find
oscar1007 Offline
Member

Posts: 64
Threads: 24
Joined: Oct 2011
Reputation: 0
#37
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")

Money can't buy you happiness. But I rather cry in my ferrari.

PROJECT:
http://www.moddb.com/mods/oscar1007
02-14-2012, 07:32 AM
Find
Southlaguna Offline
Member

Posts: 70
Threads: 21
Joined: Jan 2012
Reputation: 0
#38
RE: Unexpected end to file

yea i caught that one a while ago -.-

02-14-2012, 08:39 PM
Find
xjonx Offline
Junior Member

Posts: 15
Threads: 7
Joined: Feb 2014
Reputation: 0
#39
RE: Unexpected end to file

(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)
03-20-2014, 12:25 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#40
RE: Unexpected end to file

YC haven't been online for a while I think and besides this is an old thread.

"Veni, vidi, vici."
"I came, I saw, I conquered."
03-20-2014, 12:35 AM
Find




Users browsing this thread: 1 Guest(s)