lslib icon indicating copy to clipboard operation
lslib copied to clipboard

How to convert LSF to LSX in batches

Open kangsen0426 opened this issue 2 years ago • 6 comments

Now you can only convert one LSF to LSX, how can you achieve batch conversion?

kangsen0426 avatar Dec 27 '23 06:12 kangsen0426

There is "Batch convert" section in "LSX / LSB / LSF / LSJ Tools" :) It recursively convert all files from a root directory and all subdirectories.

kervala avatar Jan 05 '24 10:01 kervala

put this in a file *.bat bg3divine is the path to divine.exe root1 is the path of the mods to converts

------------------------------------------------------------------------- Bat file ------------------------------------ @echo off

set bg3divine=C:\Tools\divine.exe set root1=C:\FULL-RELEASE\

echo on

@echo will convert all LSX (XML) files to Binary LSF @echo using divine.exe

%bg3divine% -g "bg3" -s %root1% -d %root1% -a "convert-resources" -i "lsx" -o "lsf"

pause

SwissFred57 avatar Jan 06 '24 13:01 SwissFred57

put this in a file *.bat bg3divine is the path to divine.exe root1 is the path of the mods to converts

------------------------------------------------------------------------- Bat file ------------------------------------ @echo off

set bg3divine=C:\Tools\divine.exe set root1=C:\FULL-RELEASE\

echo on

@echo will convert all LSX (XML) files to Binary LSF @echo using divine.exe

%bg3divine% -g "bg3" -s %root1% -d %root1% -a "convert-resources" -i "lsx" -o "lsf"

pause

Thanks a lot :) I didn't know there was a command-line tool :) I just tried "ConverterApp.exe" in a command prompt with usual /?, --help and -h options but it never printed any help message :(

kervala avatar Jan 06 '24 13:01 kervala

but i was not able to convert XML to LOCA maybe somebody knows how ?

SwissFred57 avatar Jan 06 '24 13:01 SwissFred57

but i was not able to convert XML to LOCA maybe somebody knows how ?

Even when changing the extension ? You just need to put .xml for the source and .loca for the destination :) It's using the format defined with the extension.

kervala avatar Jan 06 '24 17:01 kervala

not working i think that loca can not be converted in a Batch

SwissFred57 avatar Jan 07 '24 12:01 SwissFred57