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
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.
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
what version of windows are you using?
Windows 11 Home
What happens if you run the most simple command?
...\bin>ScriptMunge.exe -inputfile ..\scripts\BES\bes1a.lua -outputdir .
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?
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.
Let me know if you can create a new text file in that folder. Thanks
Whoops sorry thought I responded to that question. I can create a text file in the folder.
Quote from: Kit Fisto on April 29, 2025, 09:22:00 AMHow do I run this command? When I try to run it in command prompt it won't work.
Using the command with CMD inside the binary folder produces a *.script file for me.
Maybe start fresh with a plain mission_lvl folder?
Another thing you could try is running your initial command in an admin CMD.
Ok I tried running the code from within the folder with both Command Prompt and Windows Power Shell, I got these errors.
I've also attached a screenshot of my folder. The test file was from me testing that I could write to the folder.
Command Prompt
C:\missions>...\bin>ScriptMunge.exe -inputfile ..\scripts\BES\bes1a.lua -outputdir
'...\bin' is not recognized as an internal or external command,
operable program or batch file.
Power Shell
PS C:\missions> ...\bin>ScriptMunge.exe -inputfile ..\scripts\BES\bes1a.lua -outputdir .
...\bin>ScriptMunge.exe : The term '...\bin>ScriptMunge.exe' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ ...\bin>ScriptMunge.exe -inputfile ..\scripts\BES\bes1a.lua -outputdi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (...\bin>ScriptMunge.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
... /bin is supposed to be a placeholder to the bin folder.
Just cd into the bin folder and then run the command.
Ah got it. Well now I get a different error saying "This app can't run on your PC." I tried running command prompt as an administrator but same result.
I wonder if my PC is just new enough that it can't run this app anymore?
C:\missions>Quote
'Quote' is not recognized as an internal or external command,
operable program or batch file.
Quote from: Kit Fisto on May 01, 2025, 08:53:13 AMAh got it. Well now I get a different error saying "This app can't run on your PC." I tried running command prompt as an administrator but same result.
I wonder if my PC is just new enough that it can't run this app anymore?
C:\missions>Quote
'Quote' is not recognized as an internal or external command,
operable program or batch file.
You have tried to run the command called "quote" which is not a command.
That's what it spat out at the end after I attempted to run the command, not sure why. I also get an access is denied even though I run command prompt as an administrator.
Here's a screenshot attached of what I see.
It's probably a win 11 problem. Last idea I have would be to run the cmd in compatability mode