Chrono Compendium Welcome, Guest. Please login or register.Did you miss your activation email? 1 Hour 1 Day 1 Week 1 Month Forever Login with username, password and session length News: Home Help Search Login Register Chrono Compendium » Kajar Laboratories - Fan Works and Submissions » Chrono Cross Modification » Chrono Cross Toolsets « previous next » Print Pages: 1 [2] 3 4 Author Topic: Chrono Cross Toolsets (Read 24840 times) utunnels Guru of Reason Emeritus Zurvan Surfer (+2500) Posts: 2797 Re: Chrono Cross Toolsets « Reply #15 on: July 15, 2016, 11:34:55 pm » Speaking of relzss, can the 4 bytes of unknown data be removed?Quote from: https://www.chronocompendium.com/Term/Lzss.html4. LZSS File HeaderChrono Cross presents LZSS files with a twelve-byte header, which can be divided into 4-byte sections.The first four bytes are always 73 73 7A 6C—"sszl".The next four bytes are the expected length in bytes of the decoded file, presented as a little-endian value. Experimentation suggests that this number may not be 100% accurate.The purpose of the next four bytes is currently unknown. Logged Schala Zeal Radical Dreamer (+2000) Posts: 2149 I like pop tarts Re: Chrono Cross Toolsets « Reply #16 on: July 16, 2016, 03:51:06 am » I think the unknown 4 bytes may be a CRC32 sum Logged utunnels Guru of Reason Emeritus Zurvan Surfer (+2500) Posts: 2797 Re: Chrono Cross Toolsets « Reply #17 on: July 16, 2016, 04:04:54 am » It doesn't match any checksum or crc generated by hexworkshop.But if so it is a good thing because none of the known mods have encountered a problem, means the game ignores the number. Logged prizvel Guru of Time Emeritus Guardian (+100) Posts: 118 Our planet's dream is not over yet Re: Chrono Cross Toolsets « Reply #18 on: July 16, 2016, 05:08:55 am » Quote from: utunnels on July 16, 2016, 04:04:54 amIt doesn't match any checksum or crc generated by hexworkshop.But if so it is a good thing because none of the known mods have encountered a problem, means the game ignores the number.About lzss. For example this file after delzss - relzss stops working Logged utunnels Guru of Reason Emeritus Zurvan Surfer (+2500) Posts: 2797 Re: Chrono Cross Toolsets « Reply #19 on: July 16, 2016, 05:58:12 am » Quote from: prizvel on July 16, 2016, 05:08:55 amAbout lzss. For example this file after delzss - relzss stops workingWhat if you add the original 4 bytes back? Logged prizvel Guru of Time Emeritus Guardian (+100) Posts: 118 Our planet's dream is not over yet Re: Chrono Cross Toolsets « Reply #20 on: July 16, 2016, 06:45:49 am » Quote from: utunnels on July 16, 2016, 05:58:12 amWhat if you add the original 4 bytes back?The header of both files are the same, but the new file is 4 bytes longer than the original. Logged utunnels Guru of Reason Emeritus Zurvan Surfer (+2500) Posts: 2797 Re: Chrono Cross Toolsets « Reply #21 on: July 16, 2016, 07:29:20 am » Well if the length is changed, the cpt file and the cd need to be rebuild. A simple ppf may not work. Perhaps it is not just this file, when you edit a script, you can't grant it is smaller than original. Logged prizvel Guru of Time Emeritus Guardian (+100) Posts: 118 Our planet's dream is not over yet Re: Chrono Cross Toolsets « Reply #22 on: July 16, 2016, 09:01:03 am » Quote from: utunnels on July 16, 2016, 07:29:20 amWell if the length is changed, the cpt file and the cd need to be rebuild. A simple ppf may not work. Perhaps it is not just this file, when you edit a script, you can't grant it is smaller than original.I'm doing a full rebild iso, then prolblem in something else. Logged utunnels Guru of Reason Emeritus Zurvan Surfer (+2500) Posts: 2797 Re: Chrono Cross Toolsets « Reply #23 on: July 16, 2016, 10:16:27 am » That is strange. What relzss tool did you use?Terminus Traduction should have their version. Mine were based on some generic lzss code found on internet. Logged Danetta Guru of Time Emeritus Porrean (+50) Posts: 51 So where is it going? Re: Chrono Cross Toolsets « Reply #24 on: July 16, 2016, 10:29:20 am » I saw tons of lzss variants and still have no idea how engine can unpack different lzss files even if they contain the same files inside. Sometimes it works, sometimes no, but seems to be okay with excuses for terrible design, lol. Logged alfadorredux Entity Mystical Knight (+700) Posts: 746 Just a purple cat Re: Chrono Cross Toolsets « Reply #25 on: July 16, 2016, 10:43:29 am » Quote from: prizvel on July 15, 2016, 04:33:07 pmQuote from: alfadorredux on July 03, 2016, 12:48:53 pm...Known problems: the README was only partly updated, filebuilder.pl was never actually written, relzss.pl never worked properly (it's okay for short files, IIRC, but I screwed up on "what you do when you hit the end of the buffer"), some scripts don't work properly on Windows even though they're okay on Linux. I have a set of corrections someone on Triple-Tech gave me that I never got around to incorporating.One of the reasons this: the Windows version of Python in the output file adds extra bytes "0D" before each byte "0A"The problem here isn't the difference in line endings between *NIX and Windows (Perl redefines the bytewise representation of "\n", the end-of-line marker, according to the system it's running on)--it's file mode. Perl under Windows differentiates between opening files in "text mode" and opening them in "binary mode". Because I was working in Linux, I neglected to invoke the binmode command at any point. Logged alfadorredux Entity Mystical Knight (+700) Posts: 746 Just a purple cat Re: Chrono Cross Toolsets « Reply #26 on: July 16, 2016, 10:52:10 am » Quote from: utunnels on July 16, 2016, 10:16:27 amThat is strange. What relzss tool did you use?Terminus Traduction should have their version. Mine were based on some generic lzss code found on internet.If he's using the one in Purple Cat Tools, it's likely to result in larger-than-original files even if the source file was small enough not to invoke the broken part of the script. I think it had to do with the script failing to backtrack into parts of the buffer that hadn't been written to yet. The resulting compression is still valid, it's just that it outputs literals rather than buffer pointers in that one particular case, making for a slightly bigger file. Logged prizvel Guru of Time Emeritus Guardian (+100) Posts: 118 Our planet's dream is not over yet Re: Chrono Cross Toolsets « Reply #27 on: July 16, 2016, 11:01:56 am » Quote from: utunnels on July 16, 2016, 10:16:27 amThat is strange. What relzss tool did you use?Terminus Traduction should have their version. Mine were based on some generic lzss code found on internet.Mostly I'll use your utility lzss and 95% of the cases it works without problems, although after repacking the files are noticeably different. A few files I failed to Repack any of the listed programs Logged utunnels Guru of Reason Emeritus Zurvan Surfer (+2500) Posts: 2797 Re: Chrono Cross Toolsets « Reply #28 on: July 16, 2016, 10:39:22 pm » Quote from: prizvel on July 16, 2016, 06:45:49 amThe header of both files are the same, but the new file is 4 bytes longer than the original.You can test this if you like, which one of them works (if any)?z1.sszl - result after I changed the compress code slightlyz12.sszl - remove last 4 bytes from z1.sszl z13.sszl - remove last 4 bytes from old result Logged prizvel Guru of Time Emeritus Guardian (+100) Posts: 118 Our planet's dream is not over yet Re: Chrono Cross Toolsets « Reply #29 on: July 17, 2016, 05:51:50 pm » Quote from: utunnels on July 16, 2016, 10:39:22 pmYou can test this if you like, which one of them works (if any)?z1.sszl - result after I changed the compress code slightlyz12.sszl - remove last 4 bytes from z1.sszl z13.sszl - remove last 4 bytes from old resultz1.sszl - workz12.sszl - workz13.sszl - not work Logged Print Pages: 1 [2] 3 4 « previous next » Chrono Compendium » Kajar Laboratories - Fan Works and Submissions » Chrono Cross Modification » Chrono Cross Toolsets