Frictional Games Forum (read-only)
[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)

Pages: 1 2 3 4 5


RE: Unexpected end to file - Southlaguna - 02-11-2012

Yes its for Training.hps i have no other custom story in progress on the mac


RE: Unexpected end to file - Your Computer - 02-11-2012

Well, i don't own a Mac and have no experience with one, so this is pretty much as far as my help goes. All i can say, which you should have already picked up, is that the original file isn't being updated. I don't know where the changes are being saved to, but obviously not where needed. Though i should probably also ask, what editor are you using to edit your scripts?


RE: Unexpected end to file - Southlaguna - 02-11-2012

text wrangler, but i transfered all my stuff to my pc and notepad ++ to see if it would work their and i got the same error so its not just a mac error. The thing is that i did frequent tests on my script and this didnt start until a small addition i made with "void ScaredShitless" but even if i removed that script and every other one the error proceeded, i tried both on mac and pc.


RE: Unexpected end to file - Your Computer - 02-11-2012

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?


RE: Unexpected end to file - Southlaguna - 02-11-2012

Is there an email or a different way i can send this file because it is apparently to large


RE: Unexpected end to file - Your Computer - 02-11-2012

Too big? Well, you can use online file hosting services, like mediafire, sendspace, etc.


RE: Unexpected end to file - Southlaguna - 02-11-2012


Ill just attatch the files piece by piece cuz i have no idea how to use those types of things
this is the very poorly made extra english and the other anon stuff
map and hps
map and hps
I cant post my cache because its 23.3mb
I guess in hindsight thats all i needed to do was remove the cache...


RE: Unexpected end to file - Your Computer - 02-11-2012

Well, i tried it out and the game didn't crash, and it loaded the custom story just fine. Not sure what's wrong in your system that's preventing you from progressing.


RE: Unexpected end to file - Southlaguna - 02-11-2012

OMG I GOT IT!!!! I NEED TO REMOVE THE CACHE!!!! ill let you know in a minute!
Consider this problem solved. The cache was corrupted or something idk, but after removing it my Extra English.lang began to work and the custom story loaded with no issues pre and post in game. wow i feel like a dumbass XD. thanks for the help man to get this shit SOLVED!!!


RE: Unexpected end to file - Southlaguna - 02-11-2012

I dont know why but now this is happening on my PC version and ive already removed the cache with no improved results... Tell me if theres a way to get rid of this issue i included my log at the bottom.


////////////////////////////
// BEGIN

void Intro(string &in asTimer)
{
string x = asTimer;
if (x == "T1")
{
FadeIn(3);
SetPlayerActive(true);
SetPlayerMoveSpeedMul(0.35f);
SetPlayerRunSpeedMul(0);
SetPlayerLookSpeedMul(0.5);
FadeImageTrailTo(2,1);
FadePlayerRollTo(12, 0.3f,0.7f);
FadePlayerFOVMulTo(0.7, 0.05);
}
string x =asTimer:
if (x=="T2")
{
FadeOut(3);
FadeGlobalSoundVolume(0, 3);
}
string x =asTimer:
if (x=="T3")
{
FadeIn(3);
FadeGlobalSoundVolume(2, 3);
}
}

////////////////////////////
// Run when starting map
void OnStart()

//----INTRO----//
{
AddTimer("T1, 1, "Intro");
AddTimer("T2, 3, "Intro");
AddTimer("T3, 6, "Intro");
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}
////////////////////////////
// Run when leaving map
void OnLeave()
{

}