Munging Problem/Problem reading common script LUAs [Solved]

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
shogun65
Recruit Womprat Killer
Posts: 5
Joined: Tue Dec 08, 2009 6:57 pm

Munging Problem/Problem reading common script LUAs [Solved]

Post 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?
genaral_mitch
Jedi
Jedi
Posts: 1056
Joined: Fri Aug 14, 2009 12:32 am

Re: Munging Problem/Problem reading common script LUAs/need help

Post 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.
User avatar
DarthHamster
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 300
Joined: Wed Nov 18, 2009 9:09 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: Orlando, Florida
Contact:

Re: Munging Problem/Problem reading common script LUAs/need help

Post 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.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Munging Problem/Problem reading common script LUAs/need help

Post 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.
genaral_mitch
Jedi
Jedi
Posts: 1056
Joined: Fri Aug 14, 2009 12:32 am

Re: Munging Problem/Problem reading common script LUAs/need help

Post by genaral_mitch »

:oops: Thanks for correcting me. That's exacly what I meant.
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: Munging Problem/Problem reading common script LUAs/need help

Post by [RDH]Zerted »

What operating system are you using? Where did you install the mod tools? And what exactly are the errors (post them)?
shogun65
Recruit Womprat Killer
Posts: 5
Joined: Tue Dec 08, 2009 6:57 pm

Re: Munging Problem/Problem reading common script LUAs/need help

Post 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:
Hidden/Spoiler:
ERROR[scriptmunge scripts\Ambush.lua]:Could not read input file.ERROR[scriptmunge scripts\Ambush.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\error_popup.lua]:Could not read input file.ERROR[scriptmunge scripts\error_popup.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\gametype_capture.lua]:Could not read input file.ERROR[scriptmunge scripts\gametype_capture.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\gametype_conquest.lua]:Could not read input file.ERROR[scriptmunge scripts\gametype_conquest.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\game_interface.lua]:Could not read input file.ERROR[scriptmunge scripts\game_interface.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\globals.lua]:Could not read input file.ERROR[scriptmunge scripts\globals.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifelem_animationmgr.lua]:Could not read input file.ERROR[scriptmunge scripts\ifelem_animationmgr.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifelem_borderrect.lua]:Could not read input file.ERROR[scriptmunge scripts\ifelem_borderrect.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifelem_button.lua]:Could not read input file.ERROR[scriptmunge scripts\ifelem_button.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifelem_buttonwindow.lua]:Could not read input file.ERROR[scriptmunge scripts\ifelem_buttonwindow.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifelem_editbox.lua]:Could not read input file.ERROR[scriptmunge scripts\ifelem_editbox.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifelem_flatbutton.lua]:Could not read input file.ERROR[scriptmunge scripts\ifelem_flatbutton.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifelem_form.lua]:Could not read input file.ERROR[scriptmunge scripts\ifelem_form.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifelem_helptext.lua]:Could not read input file.ERROR[scriptmunge scripts\ifelem_helptext.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifelem_hslider.lua]:Could not read input file.ERROR[scriptmunge scripts\ifelem_hslider.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifelem_listmanager.lua]:Could not read input file.ERROR[scriptmunge scripts\ifelem_listmanager.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifelem_popup.lua]:Could not read input file.ERROR[scriptmunge scripts\ifelem_popup.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifelem_roundbutton.lua]:Could not read input file.ERROR[scriptmunge scripts\ifelem_roundbutton.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifelem_segline.lua]:Could not read input file.ERROR[scriptmunge scripts\ifelem_segline.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifelem_shellscreen.lua]:Could not read input file.ERROR[scriptmunge scripts\ifelem_shellscreen.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifelem_tabmanager.lua]:Could not read input file.ERROR[scriptmunge scripts\ifelem_tabmanager.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifelem_titlebar.lua]:Could not read input file.ERROR[scriptmunge scripts\ifelem_titlebar.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_awardstats.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_awardstats.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_careerstats.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_careerstats.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_charselect.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_charselect.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_fakeconsole.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_fakeconsole.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_mapselect.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_mapselect.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_movietrans_game.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_movietrans_game.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_mpgs_friends.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_mpgs_friends.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_mpxl_feedback.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_mpxl_feedback.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_mpxl_friends.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_mpxl_friends.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_mpxl_voicemail.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_mpxl_voicemail.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_mp_lobby.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_mp_lobby.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_opt_controller_mode.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_opt_controller_mode.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_opt_controller_vehunit.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_opt_controller_vehunit.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_opt_general.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_opt_general.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_opt_mp.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_opt_mp.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_opt_pccontrols.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_opt_pccontrols.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_opt_pckeyboard.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_opt_pckeyboard.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_opt_pcvideo.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_opt_pcvideo.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_opt_sound.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_opt_sound.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_opt_top.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_opt_top.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_pausemenu.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_pausemenu.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_pc_spawnselect.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_pc_spawnselect.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_pc_spectator.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_pc_spectator.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_personalstats.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_personalstats.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_readyselect.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_readyselect.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_saveop.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_saveop.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_sideselect.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_sideselect.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_stats.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_stats.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_teamstats.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_teamstats.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifs_teaser.lua]:Could not read input file.ERROR[scriptmunge scripts\ifs_teaser.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ifutil_mouse.lua]:Could not read input file.ERROR[scriptmunge scripts\ifutil_mouse.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\interface_util.lua]:Could not read input file.ERROR[scriptmunge scripts\interface_util.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\LinkedDestroyables.lua]:Could not read input file.ERROR[scriptmunge scripts\LinkedDestroyables.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\LinkedShields.lua]:Could not read input file.ERROR[scriptmunge scripts\LinkedShields.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\LinkedTurrets.lua]:Could not read input file.ERROR[scriptmunge scripts\LinkedTurrets.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\MultiObjectiveContainer.lua]:Could not read input file.ERROR[scriptmunge scripts\MultiObjectiveContainer.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\Objective.lua]:Could not read input file.ERROR[scriptmunge scripts\Objective.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ObjectiveAssault.lua]:Could not read input file.ERROR[scriptmunge scripts\ObjectiveAssault.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ObjectiveConquest.lua]:Could not read input file.ERROR[scriptmunge scripts\ObjectiveConquest.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ObjectiveCTF.lua]:Could not read input file.ERROR[scriptmunge scripts\ObjectiveCTF.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ObjectiveGoto.lua]:Could not read input file.ERROR[scriptmunge scripts\ObjectiveGoto.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ObjectiveOneFlagCTF.lua]:Could not read input file.ERROR[scriptmunge scripts\ObjectiveOneFlagCTF.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ObjectiveSpaceAssault.lua]:Could not read input file.ERROR[scriptmunge scripts\ObjectiveSpaceAssault.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\ObjectiveTDM.lua]:Could not read input file.ERROR[scriptmunge scripts\ObjectiveTDM.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\PlayMovieWithTransition.lua]:Could not read input file.ERROR[scriptmunge scripts\PlayMovieWithTransition.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\points.lua]:Could not read input file.ERROR[scriptmunge scripts\points.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\popups_common.lua]:Could not read input file.ERROR[scriptmunge scripts\popups_common.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\popups_lobby.lua]:Could not read input file.ERROR[scriptmunge scripts\popups_lobby.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\popup_ab.lua]:Could not read input file.ERROR[scriptmunge scripts\popup_ab.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\popup_busy.lua]:Could not read input file.ERROR[scriptmunge scripts\popup_busy.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\popup_loadsave2.lua]:Could not read input file.ERROR[scriptmunge scripts\popup_loadsave2.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\popup_ok.lua]:Could not read input file.ERROR[scriptmunge scripts\popup_ok.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\popup_vote.lua]:Could not read input file.ERROR[scriptmunge scripts\popup_vote.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\popup_yesno.lua]:Could not read input file.ERROR[scriptmunge scripts\popup_yesno.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\popup_yesno_large.lua]:Could not read input file.ERROR[scriptmunge scripts\popup_yesno_large.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\setup_teams.lua]:Could not read input file.ERROR[scriptmunge scripts\setup_teams.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\SoundEvent_ctf.lua]:Could not read input file.ERROR[scriptmunge scripts\SoundEvent_ctf.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\unused.lua]:Could not read input file.ERROR[scriptmunge scripts\unused.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\JDI\JDIc_con.lua]:Could not read input file.ERROR[scriptmunge scripts\JDI\JDIc_con.lua]:Could not read input file. [continuing]
ERROR[scriptmunge scripts\JDI\JDIg_con.lua]:Could not read input file.ERROR[scriptmunge scripts\JDI\JDIg_con.lua]:Could not read input file. [continuing]
164 Errors 0 Warnings

ERROR[levelpack mission.req]:Expecting bracket, but none was found.
File : munged\pc\ambush.script.req(1)...

ucft <--
ERROR[levelpack mission.req]:Expecting bracket, but none was found.
File : munged\pc\ambush.script.req(1)...

ucft <--
[continuing]
2 Errors 0 Warnings
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Munging Problem/Problem reading common script LUAs/need help

Post 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.
shogun65
Recruit Womprat Killer
Posts: 5
Joined: Tue Dec 08, 2009 6:57 pm

Re: Munging Problem/Problem reading common script LUAs/need help

Post 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 :thumbs:

I wasnt running visualmunge as administrator.
stupid mistake :oops:
Post Reply