Page 1 of 1

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

Posted: Mon Jul 31, 2006 6:07 pm
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'

RE: Scripting Munge Error...I

Posted: Mon Jul 31, 2006 6:17 pm
by Hebes24
I have no idea what that is either.

Hey! my map is TST as well...Uh-oh :shock: !! that might be bad!!!

RE: Scripting Munge Error...I

Posted: Mon Jul 31, 2006 6:28 pm
by [RDH]Zerted
eof = end of function or end of file

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

Posted: Mon Jul 31, 2006 6:57 pm
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...

Posted: Tue Aug 01, 2006 10:46 am
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?

Posted: Tue Aug 01, 2006 2:23 pm
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()?

Posted: Tue Aug 01, 2006 5:30 pm
by xwingguy
whoops......(slaps himself)