Scripting Munge Error...I'm at a loss

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
xwingguy

Scripting Munge Error...I'm at a loss

Post by xwingguy »

I don't have a clue what <eof> means...hopefully someone else does

Code: Select all

C:\BF2_ModTools\ToolsFL\Bin\luac.exe: ..\..\common\scripts\TST\TSTg_Diet Dr. Pepper.lua:126: <eof> expected near `end'
Hebes24
Sith Master
Sith Master
Posts: 2594
Joined: Sat Jun 03, 2006 5:15 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: In An Epic Space Battle!
Contact:

RE: Scripting Munge Error...I

Post by Hebes24 »

I have no idea what that is either.

Hey! my map is TST as well...Uh-oh :shock: !! that might be bad!!!
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: Scripting Munge Error...I

Post by [RDH]Zerted »

eof = end of function or end of file

In this case, I'm guessing its: end of function
xwingguy

Post by xwingguy »

I've lowered the problem down to these 2 functions:

Code: Select all

function BRAnim()
	branimtimer = CreateTimer("branimtimer")
	SetTimerValue(branimtimer, 178.0)
	StartTimer(branimtimer)
	OnTimerElapse(RestartBRAni, branimtimer)	
end
RestartBRAni()
	PauseAnimation("boc1anim")
	SetAnimationStartPoint("boc1anim")
	PlayAnimation("boc1anim")
	SetTimerValue(branimtimer, 178.0)
	StartTimer(branimtimer)
end
Is the munger trying to tell me that I've put myself in an infinite loop? I don't believe that the debugger can tell that though...
Astute
Rebel Colonel
Rebel Colonel
Posts: 566
Joined: Tue Apr 12, 2005 7:03 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Astute »

Well, the error is reading that either your missing and end, you've placed your function in the wrong place, or your missing something else here. Try putting semicolons after each of your functions. Just something to try.

EOF = end of function?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

What is RestartBRAni()? As its written, its a call to some fuction you have coded somewhere else. The last end doesn't end anything. Or did you mean to put function RestartBRAni()?
xwingguy

Post by xwingguy »

whoops......(slaps himself)
Post Reply