Hello, and thanks for reading this post.
I have been using uModel for some years now (for modding).
I was able to export complete games before with a batch file.
Exporting: Static Mesh, Animated Mesh, Animations, Textures and Sounds.
@echo off
:: Command file for batch export using the umodel
::-----------------------------------------------
:: Settings
:: For additional information look here:
:: http://www.gildor.org/smf/index.php/topic,1099.0.html
:: -----------------------------------------------
:: Feel free to override options below. You may fully comment the line or
:: use blank values ("set option=") here.
:: Specify game override. Use empty value for autodetection.
set game=
:: Specify directory with game files. May be either relative or absolute path.
:: Do not use quotes here!
set game_dir=
:: Specify file masks to export. Note: usully Unreal package has extensions
:: whith starts with 'U' letter (*.u, *.ukx, *.upk), plus cooked packages
:: by default has extension *.xxx. Feel free to add other extensions here.
set file_mask=*.u* *.xxx *.bsm *.pcc *.gpk
:: Specify compatibility options here - such as
:: -sounds -3rdparty -nomesh -noanim -nostat -notex -lzo -lzx -zlib
set compat=-sounds
:: Other umodel options
set options=-export -uncook -groups
:: Where to write exported contect. May be either relative or absolute path.
:: Do not use quotes here!
set out=..\ExportOutput
set log=%out%\output.log
set umodel=umodel.exe
:: End of settings block
::-----------------------------------------------
:: Debug
::set umodel=echo umodel
:: Prepare some options
if not "%game%" == "" set game_opt=-game=%game%
if not "%out%" == "" set out_opt=-out="%out%"
if "%file_mask%" == "" set file_mask=*.*
if not "%game_dir%" == "" (
set path_opt=-path="%game_dir%"
if not exist "%game_dir%" (
echo ERROR: game directory "%game_dir%" is not valid
exit
)
)
:: export from the current directory by default
if "%game_dir%" == "" set game_dir=.
if not "%log%" == "" (
set log_opt=-log="%log%"
if exist "%log%" del %log%
)
:: Process ...
for /r "%game_dir%" %%a in (%file_mask%) do call :process "%%a"
goto :eof
::-----------------------------------------------
:: Function to process single package
::-----------------------------------------------
:process
echo Processing %1 ...
%umodel% %path_opt% %options% %compat% %game_opt% %out_opt% %log_opt% %1
With the new uModel this batch is not working and I don't know how to make it work.
I have been reading and the tools provided and Batch files are old like mine.
Sorry if I'm being stupid and miss something here. Will keep checking and if I find the solution will update this post.
Again: need a batch file to export .psk / .pskx / .psa / textures / sounds
Thank you.