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

myst6re

  • Freak
  • *
  • Posts: 511
  • Karma: 56
  • Light King of the Savegame - Field Master
    • View Profile
    • WikiSquare
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 SourceForge
« Last Edit: 2014-07-31 19:58:52 by myst6re »

halkun

  • Global moderator
  • No life
  • *
  • Posts: 2111
  • Karma: 20
  • 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

  • Freak
  • *
  • Posts: 511
  • Karma: 56
  • Light King of the Savegame - Field Master
    • View Profile
    • WikiSquare
Yup, some options like "--offset" and "--size", I'll do that!

myst6re

  • Freak
  • *
  • Posts: 511
  • Karma: 56
  • Light King of the Savegame - Field Master
    • View Profile
    • WikiSquare
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
  • No life
  • *
  • Posts: 2111
  • Karma: 20
  • 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

  • Freak
  • *
  • Posts: 511
  • Karma: 56
  • Light King of the Savegame - Field Master
    • View Profile
    • WikiSquare
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

  • Freak
  • *
  • Posts: 511
  • Karma: 56
  • Light King of the Savegame - Field Master
    • View Profile
    • WikiSquare
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/

Science Is Bigoted

  • Right Wing Safety Squads
  • Insane poster
  • *
  • Posts: 479
  • Karma: 7
  • 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

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

myst6re

  • Freak
  • *
  • Posts: 511
  • Karma: 56
  • Light King of the Savegame - Field Master
    • View Profile
    • WikiSquare
There is a Windows build in SourceForge.

Science Is Bigoted

  • Right Wing Safety Squads
  • Insane poster
  • *
  • Posts: 479
  • Karma: 7
  • 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

  • Crazy poster
  • *
  • Posts: 218
  • Karma: 9
    • 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.

Science Is Bigoted

  • Right Wing Safety Squads
  • Insane poster
  • *
  • Posts: 479
  • Karma: 7
  • 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 »