SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: Kit Fisto on April 24, 2025, 09:43:22 AM

Title: Error When Munging Battlebelk's Mission.lvl Tool
Post by: Kit Fisto on April 24, 2025, 09:43:22 AM
When attempting to munge Battlebelk's mission.lvl tool I keep getting the below error. Any ideas on how to fix it?
I've been digging around the internet but can't find a solution.
I downloaded the tool and clicked munge to test it. I haven't moved any of the files within the download around or anything like that.

C:\Users\x\Downloads\mission.lvl_PC_swbf1>cd Bin\

C:\Users\x\Downloads\mission.lvl_PC_swbf1\bin>scriptmunge -sourcedir ..\Scripts -platform pc -inputfile !*.lua -outputdir ..\munged\ -continue
Munging bes1a.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\bes1a.script for output. DOS reports:
No such file or directory
 [continuing]
Munging bes1a_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\bes1a_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging bes1r.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\bes1r.script for output. DOS reports:
No such file or directory
 [continuing]
Munging bes2a.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\bes2a.script for output. DOS reports:
No such file or directory
 [continuing]
Munging bes2a_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\bes2a_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging bes2r.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\bes2r.script for output. DOS reports:
No such file or directory
 [continuing]
Munging end1a.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\end1a.script for output. DOS reports:
No such file or directory
 [continuing]
Munging end1a_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\end1a_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging GEO1r.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\GEO1r.script for output. DOS reports:
No such file or directory
 [continuing]
Munging GEO1r_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\GEO1r_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging hot1i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\hot1i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging hot1i_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\hot1i_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging kam1c.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\kam1c.script for output. DOS reports:
No such file or directory
 [continuing]
Munging kam1c_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\kam1c_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging kas1c.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\kas1c.script for output. DOS reports:
No such file or directory
 [continuing]
Munging kas1c_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\kas1c_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging kas1i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\kas1i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging kas2c.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\kas2c.script for output. DOS reports:
No such file or directory
 [continuing]
Munging kas2c_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\kas2c_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging kas2i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\kas2i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging NAB1c.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\NAB1c.script for output. DOS reports:
No such file or directory
 [continuing]
Munging NAB1c_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\NAB1c_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging NAB1i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\NAB1i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging nab2a.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\nab2a.script for output. DOS reports:
No such file or directory
 [continuing]
Munging nab2c.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\nab2c.script for output. DOS reports:
No such file or directory
 [continuing]
Munging nab2c_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\nab2c_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging rhn1i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\rhn1i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging rhn1r.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\rhn1r.script for output. DOS reports:
No such file or directory
 [continuing]
Munging rhn1r_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\rhn1r_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging rhn2a.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\rhn2a.script for output. DOS reports:
No such file or directory
 [continuing]
Munging rhn2a_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\rhn2a_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging rhn2c.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\rhn2c.script for output. DOS reports:
No such file or directory
 [continuing]
Munging tat1i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\tat1i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging tat1i_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\tat1i_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging tat1r.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\tat1r.script for output. DOS reports:
No such file or directory
 [continuing]
Munging tat2i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\tat2i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging tat2i_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\tat2i_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging tat2r.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\tat2r.script for output. DOS reports:
No such file or directory
 [continuing]
Munging tat3a.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\tat3a.script for output. DOS reports:
No such file or directory
 [continuing]
Munging tat3c.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\tat3c.script for output. DOS reports:
No such file or directory
 [continuing]
Munging yav1c.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\yav1c.script for output. DOS reports:
No such file or directory
 [continuing]
Munging yav1i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\yav1i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging yav1i_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\yav1i_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging yav2i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\yav2i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging yav2i_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\yav2i_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging yav2r.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\yav2r.script for output. DOS reports:
No such file or directory
 [continuing]

C:\Users\x\Downloads\mission.lvl_PC_swbf1\bin>levelpack -sourcedir ..\reqs\sub_lvls\ -platform pc -inputdir ..\munged\ -outputdir ..\munged\ -inputfile *.req
Munging bes1a.req
Error: Could not open (null) for output. DOS reports:
Could not open ..\munged\bes1a.lvl for output. DOS reports:
No such file or directory

Error: Could not open ..\munged\bes1a.lvl for output. DOS reports:
No such file or directory


C:\Users\x\Downloads\mission.lvl_PC_swbf1\bin>levelpack -sourcedir ..\reqs\ -platform pc -inputdir ..\munged\ -outputdir ..\_lvl_pc\ -inputfile MISSION.req
Munging mission.req
Error: Could not open (null) for output. DOS reports:
Could not open ..\_lvl_pc\mission.lvl for output. DOS reports:
No such file or directory

Error: Could not open ..\_lvl_pc\mission.lvl for output. DOS reports:
No such file or directory
Title: Re: Error When Munging Battlebelk's Mission.lvl Tool
Post by: Led on April 24, 2025, 02:44:52 PM
Not sure if this will completely fix the issue, but don't use a windows created folder for munging.

Use something like:

C:\missions

as your folder and put the munge tool in there.  Make sure there are no spaces in the folder names.
Title: Re: Error When Munging Battlebelk's Mission.lvl Tool
Post by: Kit Fisto on April 25, 2025, 03:40:10 PM
Hmm, still the same issue.

C:\missions>cd Bin\

C:\missions\bin>scriptmunge -sourcedir ..\Scripts -platform pc -inputfile !*.lua -outputdir ..\munged\ -continue
Munging bes1a.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\bes1a.script for output. DOS reports:
No such file or directory
 [continuing]
Munging bes1a_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\bes1a_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging bes1r.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\bes1r.script for output. DOS reports:
No such file or directory
 [continuing]
Munging bes2a.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\bes2a.script for output. DOS reports:
No such file or directory
 [continuing]
Munging bes2a_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\bes2a_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging bes2r.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\bes2r.script for output. DOS reports:
No such file or directory
 [continuing]
Munging end1a.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\end1a.script for output. DOS reports:
No such file or directory
 [continuing]
Munging end1a_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\end1a_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging GEO1r.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\GEO1r.script for output. DOS reports:
No such file or directory
 [continuing]
Munging GEO1r_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\GEO1r_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging hot1i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\hot1i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging hot1i_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\hot1i_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging kam1c.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\kam1c.script for output. DOS reports:
No such file or directory
 [continuing]
Munging kam1c_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\kam1c_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging kas1c.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\kas1c.script for output. DOS reports:
No such file or directory
 [continuing]
Munging kas1c_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\kas1c_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging kas1i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\kas1i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging kas2c.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\kas2c.script for output. DOS reports:
No such file or directory
 [continuing]
Munging kas2c_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\kas2c_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging kas2i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\kas2i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging NAB1c.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\NAB1c.script for output. DOS reports:
No such file or directory
 [continuing]
Munging NAB1c_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\NAB1c_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging NAB1i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\NAB1i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging nab2a.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\nab2a.script for output. DOS reports:
No such file or directory
 [continuing]
Munging nab2c.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\nab2c.script for output. DOS reports:
No such file or directory
 [continuing]
Munging nab2c_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\nab2c_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging rhn1i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\rhn1i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging rhn1r.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\rhn1r.script for output. DOS reports:
No such file or directory
 [continuing]
Munging rhn1r_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\rhn1r_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging rhn2a.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\rhn2a.script for output. DOS reports:
No such file or directory
 [continuing]
Munging rhn2a_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\rhn2a_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging rhn2c.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\rhn2c.script for output. DOS reports:
No such file or directory
 [continuing]
Munging tat1i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\tat1i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging tat1i_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\tat1i_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging tat1r.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\tat1r.script for output. DOS reports:
No such file or directory
 [continuing]
Munging tat2i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\tat2i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging tat2i_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\tat2i_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging tat2r.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\tat2r.script for output. DOS reports:
No such file or directory
 [continuing]
Munging tat3a.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\tat3a.script for output. DOS reports:
No such file or directory
 [continuing]
Munging tat3c.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\tat3c.script for output. DOS reports:
No such file or directory
 [continuing]
Munging yav1c.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\yav1c.script for output. DOS reports:
No such file or directory
 [continuing]
Munging yav1i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\yav1i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging yav1i_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\yav1i_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging yav2i.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\yav2i.script for output. DOS reports:
No such file or directory
 [continuing]
Munging yav2i_h.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\yav2i_h.script for output. DOS reports:
No such file or directory
 [continuing]
Munging yav2r.lua
Error: Could not open (null) for output. DOS reports:

Error: Could not open ..\munged\yav2r.script for output. DOS reports:
No such file or directory
 [continuing]

C:\missions\bin>levelpack -sourcedir ..\reqs\sub_lvls\ -platform pc -inputdir ..\munged\ -outputdir ..\munged\ -inputfile *.req
Munging bes1a.req
Error: Could not open (null) for output. DOS reports:
Could not open ..\munged\bes1a.lvl for output. DOS reports:
No such file or directory

Error: Could not open ..\munged\bes1a.lvl for output. DOS reports:
No such file or directory


C:\missions\bin>levelpack -sourcedir ..\reqs\ -platform pc -inputdir ..\munged\ -outputdir ..\_lvl_pc\ -inputfile MISSION.req
Munging mission.req
Error: Could not open (null) for output. DOS reports:
Could not open ..\_lvl_pc\mission.lvl for output. DOS reports:
No such file or directory

Error: Could not open ..\_lvl_pc\mission.lvl for output. DOS reports:
No such file or directory
Title: Re: Error When Munging Battlebelk's Mission.lvl Tool
Post by: Led on April 25, 2025, 06:02:44 PM
what version of windows are you using?
Title: Re: Error When Munging Battlebelk's Mission.lvl Tool
Post by: Kit Fisto on April 25, 2025, 10:32:41 PM
Windows 11 Home
Title: Re: Error When Munging Battlebelk's Mission.lvl Tool
Post by: {AR}MetalKiller on April 26, 2025, 12:16:40 AM
What happens if you run the most simple command?
...\bin>ScriptMunge.exe -inputfile ..\scripts\BES\bes1a.lua -outputdir .
Title: Re: Error When Munging Battlebelk's Mission.lvl Tool
Post by: Led on April 26, 2025, 04:46:50 AM
Quote from: Kit Fisto on April 25, 2025, 10:32:41 PMWindows 11 Home

the DOS error indicates that the initial file cannot be created.  Make sure that the folder is not write protected.  Try creating a simple text file in that folder and see if it works.

Also, just to be sure--you are using a PC and not a tablet or Mac or a non-x86 processor?

Title: Re: Error When Munging Battlebelk's Mission.lvl Tool
Post by: Kit Fisto on April 29, 2025, 09:22:00 AM
Quote from: {AR}MetalKiller on April 26, 2025, 12:16:40 AMWhat happens if you run the most simple command?
...\bin>ScriptMunge.exe -inputfile ..\scripts\BES\bes1a.lua -outputdir .

How do I run this command? When I try to run it in command prompt it won't work.

Quote from: Led on April 26, 2025, 04:46:50 AMthe DOS error indicates that the initial file cannot be created.  Make sure that the folder is not write protected.  Try creating a simple text file in that folder and see if it works.

Also, just to be sure--you are using a PC and not a tablet or Mac or a non-x86 processor?

Yes, I'm using a laptop PC.
Title: Re: Error When Munging Battlebelk's Mission.lvl Tool
Post by: Led on April 29, 2025, 10:24:17 AM
Let me know if you can create a new text file in that folder.  Thanks
Title: Re: Error When Munging Battlebelk's Mission.lvl Tool
Post by: Kit Fisto on April 29, 2025, 02:33:53 PM
Whoops sorry thought I responded to that question. I can create a text file in the folder.
EhPortal 1.34 © 2025, WebDev