Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

How do I decompress all the THN files at once?

The general place to discuss MOD''ing Freelancer!

Post Tue Sep 18, 2007 6:24 pm

How do I decompress all the THN files at once?

Is there a way to decompress all the THN files at once? The THN decompresser that I found on TLR just does one-at-a-time. Hopefully I missed something.

Please help: it will take me tedious hours to decompile them one-by-one.

Post Thu Sep 20, 2007 12:49 am

I don't know if I'm right, no time to check it for you myself - but can you make a batch file to send each thn file to the decompressor?

You can make a directory listing into a file by opening a dos prompt window in the folder where the thn files are, and entering

"dir *.thn /B/O >> filelist.dat"

/B means "Bare" - filenames only, no filesize etc. and /O means "Ordered" (sorted).

Then just edit out any you don't want in the filelist.dat filenames, and add the path and name of the decompressor in front of each line, so that the clean filename becomes the "input file" parameter. Does the decompressor need an output file name? If so just add one to each line. Then when you have it the way you want it, rename it to "filelist.bat" and run it.

To open a dos prompt window? In explorer, right-click, new... text file, open it, enter "cmd", save it, rename it as "DosPrompt.bat" and run it. 20 seconds.

Any good?

Edited by - StarTrader on 9/20/2007 1:58:30 AM

Post Thu Sep 20, 2007 3:19 am

Thanks StarTrader, but unfortunately the THN decompressor ignores parameters when run from the command prompt (DOS) window. It just invokes the application, which asks you for the input file.

Drag-and-drop doesn't work either: again it ignores what you dragged and only invokes the application, which asks you for the input file.

There's a total of 1456 THN files if I counted correctly, so if there's a trick to get around this problem I'd love to hear!


Edited by - breslin on 9/20/2007 5:57:09 AM

Post Thu Sep 20, 2007 7:06 am

Drop a line to the author [email protected] and tell him what you want to do.

Return to Freelancer General Editing Forum