Frictional Games Forum (read-only)
Unexpected end of file STILL... - 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: Unexpected end of file STILL... (/thread-19435.html)



Unexpected end of file STILL... - ryan1431 - 12-04-2012

This is what i have in my .hps file.

void papermusic_01(string &in asEntity)
{
PlayGameMusic(01_paper_self.ogg, 1, 0, 0, 0);
SetTimer("paper_01_music", 25, "paper_01_music");
}

void paper_01_music(string &in asTimer)
{
StopGameMusic(1, 0);
}


Okay so the papermusic_01 is the name of the callbackfunc ...

Every time i try to "quickmapreload" using debug, it says this...

Main (49,2) : ERR : Unexpected end of file

At first i didn't put a ';' after StopGameMusic(1,0) but that doesn't seem to be the problem.

(Btw 49,2 -> refers to the line 'StopGameMusic(1,0);'



RE: Unexpected end of file STILL... - FlawlessHappiness - 12-04-2012

You cannot refer to anything when it says "Unexpected end of file".
It only shows where... well, where the file ends.
Means it's somewhere inside your script that you forgot to close these "" these () or these { }


RE: Unexpected end of file STILL... - The chaser - 12-04-2012

(12-04-2012, 02:50 AM)ryan1431 Wrote: This is what i have in my .hps file.

void papermusic_01(string &in asEntity)
{
PlayMusic("01_paper_self.ogg", 1, 0, 0, 0);
AddTimer("paper_01_music", 25, "paper_01_music");
}

void paper_01_music(string &in asTimer)
{
StopMusic(1, 0);
}


Okay so the papermusic_01 is the name of the callbackfunc ...

Every time i try to "quickmapreload" using debug, it says this...

Main (49,2) : ERR : Unexpected end of file

At first i didn't put a ';' after StopGameMusic(1,0) but that doesn't seem to be the problem.

(Btw 49,2 -> refers to the line 'StopGameMusic(1,0);'


If you don't mark the music you want, the script will turn mad and will not know what to do.


RE: Unexpected end of file STILL... - GoranGaming - 12-04-2012

Please don't make new threads, if you get a new problem you could write in your old post from earlier today.