Author Topic: [FF7/FF8/Squaresoft Games] lzs command line tool - qt-lzs (1.3)  (Read 18698 times)

myst6re

  • *
  • Posts: 650
  • Light King of the Savegame - Field Master - FF8.fr
    • View Profile
    • FF8.fr
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
Download it on GitHub
« Last Edit: 2021-03-24 09:18:54 by myst6re »

halkun

  • Global moderator
  • *
  • Posts: 2097
  • NicoNico :)
    • View Profile
    • Q-Gears Homepage
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.

myst6re

  • *
  • Posts: 650
  • Light King of the Savegame - Field Master - FF8.fr
    • View Profile
    • FF8.fr
Yup, some options like "--offset" and "--size", I'll do that!

myst6re

  • *
  • Posts: 650
  • Light King of the Savegame - Field Master - FF8.fr
    • View Profile
    • FF8.fr
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
« Last Edit: 2014-07-28 20:43:12 by myst6re »

halkun

  • Global moderator
  • *
  • Posts: 2097
  • NicoNico :)
    • View Profile
    • Q-Gears Homepage
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.
« Last Edit: 2014-07-29 10:05:48 by halkun »

myst6re

  • *
  • Posts: 650
  • Light King of the Savegame - Field Master - FF8.fr
    • View Profile
    • FF8.fr
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.

myst6re

  • *
  • Posts: 650
  • Light King of the Savegame - Field Master - FF8.fr
    • View Profile
    • FF8.fr
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/

Jenova's Witness

  • Right Wing Safety Squads
  • *
  • Posts: 471
  • I ♥ SCIENCE
    • View Profile
.
« Reply #7 on: 2014-09-06 02:10:30 »
.
« Last Edit: 2015-11-16 07:50:18 by Jenova's Witness »

sithlord48

  • *
  • Posts: 1640
  • Dark Lord of the Savegame
    • View Profile
    • Blackchocobo
Qt projects are easy to build on either system just install QtCreator.

myst6re

  • *
  • Posts: 650
  • Light King of the Savegame - Field Master - FF8.fr
    • View Profile
    • FF8.fr
There is a Windows build in SourceForge.

Jenova's Witness

  • Right Wing Safety Squads
  • *
  • Posts: 471
  • I ♥ SCIENCE
    • View Profile
.
« Reply #10 on: 2014-09-07 03:59:59 »
.
« Last Edit: 2015-11-16 07:50:06 by Jenova's Witness »

Vehek

  • *
  • Posts: 216
    • View Profile
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.

Jenova's Witness

  • Right Wing Safety Squads
  • *
  • Posts: 471
  • I ♥ SCIENCE
    • View Profile
.
« Reply #12 on: 2014-09-07 04:04:12 »
.
« Last Edit: 2015-11-16 07:49:55 by Jenova's Witness »

myst6re

  • *
  • Posts: 650
  • Light King of the Savegame - Field Master - FF8.fr
    • View Profile
    • FF8.fr
New version available with a fix for big files.