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
Southlaguna Offline
Member

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

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

02-11-2012, 01:19 AM
Find Reply
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#22
RE: Unexpected end to file

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?

Tutorials: From Noob to Pro
(This post was last modified: 02-11-2012, 01:27 AM by Your Computer.)
02-11-2012, 01:25 AM
Website Find Reply
Southlaguna Offline
Member

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

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.

02-11-2012, 01:41 AM
Find Reply
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#24
RE: Unexpected end to file

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?

Tutorials: From Noob to Pro
02-11-2012, 01:46 AM
Website Find Reply
Southlaguna Offline
Member

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

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

02-11-2012, 02:31 AM
Find Reply
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#26
RE: Unexpected end to file

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

Tutorials: From Noob to Pro
02-11-2012, 02:36 AM
Website Find Reply
Southlaguna Offline
Member

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


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...


Attached Files
.cfg   custom_story_settings.cfg (Size: 175 bytes / Downloads: 32)
.zip   stuff.zip (Size: 382.54 KB / Downloads: 16)
.zip   Training.zip (Size: 182.3 KB / Downloads: 22)

(This post was last modified: 02-11-2012, 02:49 AM by Southlaguna.)
02-11-2012, 02:40 AM
Find Reply
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#28
RE: Unexpected end to file

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.

Tutorials: From Noob to Pro
02-11-2012, 03:02 AM
Website Find Reply
Southlaguna Offline
Member

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

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!!!

(This post was last modified: 02-11-2012, 03:19 AM by Southlaguna.)
02-11-2012, 03:15 AM
Find Reply
Southlaguna Offline
Member

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

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()
{

}


Attached Files
.log   hpl.log (Size: 2.93 KB / Downloads: 10)

02-11-2012, 09:42 PM
Find Reply




Users browsing this thread: 1 Guest(s)