Author Topic: Chrono Cross Toolsets  (Read 17927 times)

utunnels

  • Guru of Reason Emeritus
  • Zurvan Surfer (+2500)
  • *
  • Posts: 2797
    • View Profile
Re: Chrono Cross Toolsets
« Reply #30 on: July 17, 2016, 09:26:44 pm »
OK, so it is not the size that matters.

This is the modified lzss tool (it has a cygwin dll because on current pc I don't have other compilers installed).

prizvel

  • Guru of Time Emeritus
  • Guardian (+100)
  • *
  • Posts: 118
  • Our planet's dream is not over yet
    • View Profile
Re: Chrono Cross Toolsets
« Reply #31 on: July 18, 2016, 05:08:48 pm »
OK, so it is not the size that matters.

This is the modified lzss tool (it has a cygwin dll because on current pc I don't have other compilers installed).

This tool works perfect. Thank you.

Schala Zeal

  • Radical Dreamer (+2000)
  • *
  • Posts: 2147
  • 7th Elemental Innate, and vtuber
    • View Profile
Re: Chrono Cross Toolsets
« Reply #32 on: July 19, 2016, 03:23:14 am »
What are the changes you made?

utunnels

  • Guru of Reason Emeritus
  • Zurvan Surfer (+2500)
  • *
  • Posts: 2797
    • View Profile
Re: Chrono Cross Toolsets
« Reply #33 on: July 19, 2016, 03:50:53 am »
Some unnecessary check for ring buffer length while searching the longest matching pattern.


while(l<LZSS_CHAINE && pos+l<LZSS_BUFFER && p%LZSS_BUFFER<LZSS_BUFFER-2
&& buffer[(p+l)%LZSS_BUFFER]==buffer[(pos+l)%LZSS_BUFFER]) {

utunnels

  • Guru of Reason Emeritus
  • Zurvan Surfer (+2500)
  • *
  • Posts: 2797
    • View Profile
Re: Chrono Cross Toolsets
« Reply #34 on: July 31, 2016, 11:45:32 pm »
Just wrote a tool that imports tim files into vram so you can use a vram viewer to check their positions.

This was originally designed to construct battle field textures, but in theory it can be used for any tim files.

How?
Select all tim files and drag-drop them on the exe. The output file is vram.bin
« Last Edit: July 31, 2016, 11:53:59 pm by utunnels »

utunnels

  • Guru of Reason Emeritus
  • Zurvan Surfer (+2500)
  • *
  • Posts: 2797
    • View Profile
Re: Chrono Cross Toolsets
« Reply #35 on: July 31, 2016, 11:48:22 pm »
Similar tool but imports egfx file int vram. Useful when finding element textures (for example, starky's mecha)

prizvel

  • Guru of Time Emeritus
  • Guardian (+100)
  • *
  • Posts: 118
  • Our planet's dream is not over yet
    • View Profile
Re: Chrono Cross Toolsets
« Reply #36 on: September 26, 2016, 04:31:08 am »
utunnels If you have time, could you make a tool to pack/unpack drp? Your unpackdrp good, but it ignores unreadable characters. It would be nice if the name of the decompressed file looked like this: "01.000a.7A697A31.zip1" where:
01 - the number of the file
000a - file type
7A697A31 - file name byte(7A 69 7A 31 - for packing with the same name)
zip1 - file name

I'd love to do it myself, but I don't know any programming language :oops:

utunnels

  • Guru of Reason Emeritus
  • Zurvan Surfer (+2500)
  • *
  • Posts: 2797
    • View Profile
Re: Chrono Cross Toolsets
« Reply #37 on: September 26, 2016, 05:37:03 am »
I'll see what I can do when I get home.
Maybe files and list.txt is a better solution, if not all characters can be used to name a file.

prizvel

  • Guru of Time Emeritus
  • Guardian (+100)
  • *
  • Posts: 118
  • Our planet's dream is not over yet
    • View Profile
Re: Chrono Cross Toolsets
« Reply #38 on: September 26, 2016, 05:53:51 am »
I'll see what I can do when I get home.
Maybe files and list.txt is a better solution, if not all characters can be used to name a file.

Maybe. I recently came across a file named "1" (31 00 00 00)

utunnels

  • Guru of Reason Emeritus
  • Zurvan Surfer (+2500)
  • *
  • Posts: 2797
    • View Profile
Re: Chrono Cross Toolsets
« Reply #39 on: September 26, 2016, 05:55:42 am »
But "1" is legal file name.

utunnels

  • Guru of Reason Emeritus
  • Zurvan Surfer (+2500)
  • *
  • Posts: 2797
    • View Profile
Re: Chrono Cross Toolsets
« Reply #40 on: September 26, 2016, 06:31:44 am »
https://drive.google.com/open?id=0B5GvuiubpnUZYi1DMUk2R0pNZkk

By the way, I had a unpackcpt.exe and a cpt.exe in this folder, which I used to test the weapon pack (.weap files).

Usage:
Drag and drop the .weap (or maybe other cpt file) on unpackcpt.exe to unpack it.

Drag and drop all output files onto cpt.exe to repack it (the file will be save to outut.cpt).

Note, on windows, it seems the file order is determined by the first file you dragged, so it is safe to select the first one of all files.
« Last Edit: September 26, 2016, 06:33:40 am by utunnels »

prizvel

  • Guru of Time Emeritus
  • Guardian (+100)
  • *
  • Posts: 118
  • Our planet's dream is not over yet
    • View Profile
Re: Chrono Cross Toolsets
« Reply #41 on: September 26, 2016, 06:47:13 am »
https://drive.google.com/open?id=0B5GvuiubpnUZYi1DMUk2R0pNZkk

By the way, I had a unpackcpt.exe and a cpt.exe in this folder, which I used to test the weapon pack (.weap files).

Usage:
Drag and drop the .weap (or maybe other cpt file) on unpackcpt.exe to unpack it.

Drag and drop all output files onto cpt.exe to repack it (the file will be save to outut.cpt).

Note, on windows, it seems the file order is determined by the first file you dragged, so it is safe to select the first one of all files.

Oh, thank you, I'm tired of counting everything in the hex editor

utunnels

  • Guru of Reason Emeritus
  • Zurvan Surfer (+2500)
  • *
  • Posts: 2797
    • View Profile
Re: Chrono Cross Toolsets
« Reply #42 on: September 26, 2016, 11:28:03 am »
drp.exe has been added.
Usage is the same as cpt.exe

prizvel

  • Guru of Time Emeritus
  • Guardian (+100)
  • *
  • Posts: 118
  • Our planet's dream is not over yet
    • View Profile
Re: Chrono Cross Toolsets
« Reply #43 on: September 26, 2016, 12:28:29 pm »
drp.exe has been added.
Usage is the same as cpt.exe

How to unpack? unpackdrp is not required?

utunnels

  • Guru of Reason Emeritus
  • Zurvan Surfer (+2500)
  • *
  • Posts: 2797
    • View Profile
Re: Chrono Cross Toolsets
« Reply #44 on: September 26, 2016, 12:39:46 pm »
It is needed.