Qhimm.com Forums

Miscellaneous Forums => Tools => Misc. Tools => Topic started by: myst6re on 2014-06-29 17:24:59

Title: [FF7/FF8/Squaresoft Games] lzs command line tool - qt-lzs (1.3)
Post by: myst6re on 2014-06-29 17:24:59
For a long time I used homemade tools that I will now share. The first one, qt-lzs, is a simple command-line tool to compress/uncompress lzs files.
My implementation is based on Haruhiko Okumura code, which is really fast. But it is also not designed for large files.

I provide the source code on GitHub, and I hope that some people will help.
Contribute on GitHub (https://github.com/myst6re/qt-lzs)
Download it on GitHub (https://github.com/myst6re/qt-lzs/releases/latest)
Title: Re: [FF7/FF8/Squaresoft Games] lzs command line tool - qt-lzs (1.0)
Post by: halkun on 2014-07-27 23:06:24
myst6re, Can you add a command-line switch to qt-lzs so I can decompress "Another Mind" style LZS files. (The ones with the "CC FF" in the header)

Better yet, if it detects "C3 FF" at the beginning of the file to ignore them and decompress the rest. It's a pain to edit several hundred files one at a time to remove those two bytes.
Title: Re: [FF7/FF8/Squaresoft Games] lzs command line tool - qt-lzs (1.0)
Post by: myst6re on 2014-07-28 11:31:07
Yup, some options like "--offset" and "--size", I'll do that!
Title: Re: [FF7/FF8/Squaresoft Games] lzs command line tool - qt-lzs (1.1)
Post by: myst6re on 2014-07-28 20:33:16
And it's done! Version 1.1 is released, look at the first post to download it.

@halkun:

To decompress a tiz file, here is the command:

Code: [Select]
unlzs -p 2 --no-header-test foobar.tiz
Title: Re: [FF7/FF8/Squaresoft Games] lzs command line tool - qt-lzs (1.1)
Post by: halkun on 2014-07-29 00:34:28
neato burrito!

Aww, It's not working right :/

I can't do the following...

Code: [Select]
unlzs -p 2 --no-header-test *.tiz

...to mass decompress. Also the output data is not correct. I'm investigating.
Title: Re: [FF7/FF8/Squaresoft Games] lzs command line tool - qt-lzs (1.1)
Post by: myst6re on 2014-07-29 22:06:20
Oh, that's right, I can add a wildcard parser for that (I've already done that for Vincent Tim).
Meanwhile, bash (or other programming language) is your friend.
Title: Re: [FF7/FF8/Squaresoft Games] lzs command line tool - qt-lzs (1.2)
Post by: myst6re on 2014-07-31 19:58:43
Done! You can now use "*" to select several files, and if the last argument is a directory output files will be moved in it.

https://sourceforge.net/projects/qtlzs/files/v1.2/
Title: .
Post by: Jenova's Witness on 2014-09-06 02:10:30
.
Title: Re: [FF7/FF8/Squaresoft Games] lzs command line tool - qt-lzs (1.2)
Post by: sithlord48 on 2014-09-06 14:23:13
Qt projects are easy to build on either system just install QtCreator.
Title: Re: [FF7/FF8/Squaresoft Games] lzs command line tool - qt-lzs (1.2)
Post by: myst6re on 2014-09-06 16:57:36
There is a Windows build (http://sourceforge.net/projects/qtlzs/files/v1.2/qt-lzs-1.2.zip/download) in SourceForge.
Title: .
Post by: Jenova's Witness on 2014-09-07 03:59:59
.
Title: Re: [FF7/FF8/Squaresoft Games] lzs command line tool - qt-lzs (1.2)
Post by: Vehek on 2014-09-07 04:02:13
There's no installer, so nothing can be bundled, if that's what you're referring to. It's just an archive file containing the precompiled binaries and required dlls.
Title: .
Post by: Jenova's Witness on 2014-09-07 04:04:12
.
Title: Re: [FF7/FF8/Squaresoft Games] lzs command line tool - qt-lzs (1.3)
Post by: myst6re on 2021-03-24 09:19:22
New version available with a fix for big files.