SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: Phobos on October 09, 2014, 09:36:25 PM

Title: Munge Logging
Post by: Phobos on October 09, 2014, 09:36:25 PM
I want to append a simple command to log all of the munge.bat command prompt display to a text file in the same folder as munge and clean batch files.

This would log all the munge errors since CMD cuts off after so many lines. Any ideas for adding this to imp.lvl munger?

@cd _BUILD_PC
@call munge.bat IMP
@pause


del /q Sides\%1\munged\*.*
@setlocal
@set PATH="%CD%"\..\ToolsFL\Bin;%PATH%
@REM copy common binary format data from source root \Common
copy ..\Sides\%1\munged\*.*  Sides\%1\munged\

odfmunge -sourcedir ..\Sides\%1 -platform pc -inputfile !*.odf -outputdir Sides\%1\munged\ -continue
modelmunge -sourcedir ..\Sides\%1 -platform pc -inputfile !*.msh -outputdir Sides\%1\munged\ -maxbones 16 -keep collision -continue -righthanded
texturemunge -sourcedir ..\Sides\%1 -platform pc -inputfile !*.tga !*.pic -outputdir Sides\%1\munged\ -continue
configmunge -sourcedir ..\Sides\%1 -platform pc -inputfile effects\*.fx -outputdir Sides\%1\munged\ -continue

levelpack -sourcedir ..\Sides\%1 -platform pc -inputdir Sides\%1\munged\ -outputdir Sides\%1\munged\ -inputfile REQ\*.req -continue
levelpack -sourcedir ..\Sides\%1 -platform pc -inputdir Sides\%1\munged\ -outputdir ..\_LVL_PC\SIDE\ -inputfile %1.req -continue

@endlocal

Title: Re: Munge Logging
Post by: Led on October 10, 2014, 12:34:33 AM
You can always redirect screen output to a file (this is called piping).

Use:

whatever.bat > filename.txt


This works for any "DOS" command.  Try this:

dir > filelist.txt  to see what I mean.
Title: Re: Munge Logging
Post by: Phobos on October 10, 2014, 02:10:48 AM
thanks Led, ill add this feature to the new toolbox builders by default.
EhPortal 1.34 © 2025, WebDev