Page 1 of 1
Munging Problem/Problem reading common script LUAs [Solved]
Posted: Tue Dec 08, 2009 8:44 pm
by shogun65
Using the BF2 mod tools Ive created a new mod with the visualmunge tool in the data folder. Then when I munge the common data using the visualmunge in my new mod folder all these errors come up like this:
**** ERROR: luac returned -1
ERROR reading processed script
(something).lua
in the PC_MungeLog:
ERROR[scriptmunge scripts\(something).lua]:Could not read input file.ERROR[scriptmunge scripts\(something).lua]:Could not read input file. [continuing]
I get 164 of these errors and it seems to be all the LUA files in the Common\scripts
folder.
I have made sure that these files are present both in the data folder and the newly created mod folder.
Does anyone know why this is happening and what I could do to fix this?
Re: Munging Problem/Problem reading common script LUAs/need help
Posted: Tue Dec 08, 2009 8:52 pm
by genaral_mitch
You're .lua is messed up. It has to be completely perfect or it crashes.
So, find what's wrong with your .lua or post it here.
Re: Munging Problem/Problem reading common script LUAs/need help
Posted: Tue Dec 08, 2009 8:57 pm
by DarthHamster
shogun65 wrote:Using the BF2 mod tools Ive created a new mod
What exactly did you do to the lua when making this mod. Because like genaral_mitch says leave out a coma and it all crashes.
Re: Munging Problem/Problem reading common script LUAs/need help
Posted: Tue Dec 08, 2009 9:21 pm
by Maveritchell
genaral_mitch wrote:You're .lua is messed up. It has to be completely perfect or it crashes.
I get 164 of these errors and it seems to be all the LUA files in the Common\scripts
folder.
Those don't get "messed up" unless he manually edited errors into each one of them.
Re: Munging Problem/Problem reading common script LUAs/need help
Posted: Tue Dec 08, 2009 9:23 pm
by genaral_mitch

Thanks for correcting me. That's exacly what I meant.
Re: Munging Problem/Problem reading common script LUAs/need help
Posted: Wed Dec 09, 2009 12:29 am
by [RDH]Zerted
What operating system are you using? Where did you install the mod tools? And what exactly are the errors (post them)?
Re: Munging Problem/Problem reading common script LUAs/need help
Posted: Wed Dec 09, 2009 10:46 am
by shogun65
Maveritchell wrote:genaral_mitch wrote:You're .lua is messed up. It has to be completely perfect or it crashes.
I get 164 of these errors and it seems to be all the LUA files in the Common\scripts
folder.
Those don't get "messed up" unless he manually edited errors into each one of them.
Yes and I did not edit any of these files.
EDIT
[RDH]Zerted wrote:What operating system are you using? Where did you install the mod tools? And what exactly are the errors (post them)?
I am using 32 bit Vista. I installed the mod tools on the same harddrive as my battlefront ii game folder but this is not the system harddrive (C:) (i dont know if this matters). The errors that occur are all the same. It says something about not being able to read input file.
This is what it says while munging with visualmunge:
**** ERROR: luac returned -1
ERROR reading processed script
(something).lua
and these are all the errors that appear in the PC_MungeLog:
Re: Munging Problem/Problem reading common script LUAs/need help
Posted: Wed Dec 09, 2009 2:00 pm
by Maveritchell
Where Zerted may or may not be going with this (and the reason I asked you something similar earlier in a different thread) is that the tools on Vista sometimes don't create/use the batch files properly. Take a look at this thread:
http://www.gametoast.com/forums/viewtop ... 73#p295373
...and see if it seems applicable and/or helps you out.
Re: Munging Problem/Problem reading common script LUAs/need help
Posted: Wed Dec 09, 2009 11:55 pm
by shogun65
Maveritchell wrote:Where Zerted may or may not be going with this (and the reason I asked you something similar earlier in a different thread) is that the tools on Vista sometimes don't create/use the batch files properly. Take a look at this thread:
http://www.gametoast.com/forums/viewtop ... 73#p295373
...and see if it seems applicable and/or helps you out.
I had already tried that before posting this thread, and I did make sure that I created a new mod so it would be taken into effect.
Sorry I should have mentioned it.
I also forgot to mention that once the munging is finished and the message "All done - Go play Battlefront II" comes up and I press OK. Then when I close visualmunge Windows tells me that the program "test1 module" located in ModTools VisualMunge.exe was not run properly.
Also the addme script in the mod folder in GameData/addons is always empty, but that might be unrelated.
EDIT
THANKS, FIGURED OUT WHAT WAS WRONG
I wasnt running visualmunge as administrator.
stupid mistake
