SCARZIP (SCARZ Information Pane)
Sonic Stadium
Green Hill Zone


THE 10 CULTMANDMENTS | THE IDIOT'S GUIDE TO POSTING AT SCARZ
Sonic Online
Sonic Dimension


Welcome Guest ( Log In | Register )

3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> [Up: 08/26/04] TSDC V2.2, KENS V1.4 + Source, Bugs fixed !
Magus
post Sep 2 2003, 10:49 AM
Post #1


The lazy but efficient programmer !

Group Icon

Group: CulT Member
Posts: 117
Joined: 25-August 03
Member No.: 419
Gender: Male



-----------------------------------------------------------------

IMPORTANT NOTE

Note 1) At the moment, you can only get KENS and TSDC at SourceForge (there, you may donate too *shot*). The reason for this is that SSRG is down (EDIT: was down, I'm now uploading the files to SSRG) for some reason, and the Sonik Team mirror is not available either (can't access my FTP account, does not seem to be there anymore anyway).

Note 2) The Kosinski DLL has experimental "Local" functions. You'll have more details about them in the README.TXT file. You should only use these functions only if you really need them, as they might simply disappear soon (merged with the original ones). These functions solve a speed issue when the source or destination files are on a remote computer.

Note 3) I might have some new features for the next release.

-----------------------------------------------------------------

LATEST UPDATES

KENS V1.4 RC1
* Corrected a bug in the Enigma Decompression algorithm. Thanks to Stealth for reporting and Nemesis
for helping in fixing it.
* Added "Local" Kosinski functions, which copy the file to the Windows temporary directory before
compressing or decompressing. This fixes a speed issue when the source or destination files are on a
remote computer. Thanks to Stealth for finding out this issue (we spent hours trying to find out why
it was so slow) and helping in fixing it (although I used a different method from the one used in
the unofficial version that he released).
* Edited the headers and units to reflect the changes in the Kosinski functions

TSDC V2.2 RC1
- Repacked with version 1.4 of the KENS DLLs

-----------------------------------------------------------------

Hello my friends !

Here's the last release of The Sega Data Compressor. It fully supports both compression and decompression of Kosinski, Engima, Nemesis and Saxman formats. TSDC should no longer be updated (but could be repacked with newer versions of the DLLs), unless there's a new compression format.

As for KENS, it is a pack that contains 4 DLLs, each of them featuring compression and decompression of a format. They are distributed under LGPL, so you have access to their source code. These DLLs can be used by both standard (AKA C/C++ :D), Visual Basic and Game Maker applications. Using these DLLs instead of having the code written in the application allows to correct bugs in the algorithm without having to recompile the application. I made these DLLs because I had several applications using the algorithms, and it was a pain to update all of them each time I changed something in an algorithm. Though, the very first time I compiled them, it was for Beta, but I then realized they would be extremely useful for everybody, me included. TSDC uses these DLLs.

If you need help reusing these DLLs in your applications, don't hesitate to ask me for help.

TSDC-V2.2-RC1 (ACE - 91 KB) [Sonik Team Mirror]
TSDC-V2.2-RC1 (SFX ACE - 153 KB) [Sonik Team Mirror]
TSDC-V2.2-RC1 (ZIP - 226 KB) [Sonik Team Mirror]

KENS-V1.4-RC1 (ACE - 67 KB) [Sonik Team Mirror]
KENS-V1.4-RC1 (ZIP - 118 KB) [Sonik Team Mirror]

KENS-V1.4-RC1-Source (ACE - 42 KB) [Sonik Team Mirror]
KENS-V1.4-RC1-Source (ZIP - 66 KB) [Sonik Team Mirror]

Also available on SourceForge.

As I heard that some people were asking how that tool works, here are some basic explanations:

- In order to decompress a file, open one of the decompression tool, and choose the ROM from which you want to extract data, using the first "Set" button. Then, choose a file that will receive the decompressed data, using the second "Set" button. Then, you can either choose a location from the list or typing one yourself (in that case, you MUST write it in hex, and without the 0x prefix). Finally, press the "Decompress" button. The status line should say "Processing..." for a very short time (usually 2 or 3 ms, unless it's a big archive), and then "Done !".

- Now, compression: run one of the compression tools, and choose the file containing the data which you want to compress, using the first "Set" button. Then, choose a file that will receive the compressed data, using the second "Set" button. All you have to do now is clicking the "Compress" button. The status line should say "Processing..." for a few seconds, and then "Done !".

- Specific options:
* Enigma: when compressing or decompressing, you can choose to add and remove padding. This option should only be used when compressing or decompressing a S1 Special Stage. If you added padding when decompressing the Special Stage, then you will have to remove it when recompressing.
* Kosinski: when compressing or decompressing, you can choose whether the archive is moduled or not. Be very careful when using this. Moduled archives can't be used in place of standard archive and vice versa. In the decompressor, this option is semi-automatic: whenever you click a location line ending by (M), the checkbox will automatically be checked. Do remember to recompress these archives using the moduled option.
* Kosinski (2): when compressing, you can change the sliding window and maximum recurrence length. This does not have any real use for end-users, but it might be interresting for hackers. If you do not know what I'm talking about, then you will not need these options.

- Warning: Enigma and Nemesis compression formats are data-type specific. You CAN'T use the Enigma and Nemesis compression / decompression tools for archiving. You could use the Kosinski tools however, but this is pointless, as the compression process is quite long, and the compression ratio not interresting enough. As for the Saxman compression format, it can only compress very small files, and the maximum size of a compressed file is 64 K (I think).

- Difficulties downloading: if you can't download the files, try opening the FTP folder instead of clicking that link, then drag-drop the file you want to download from your IE window to the desktop or on any folder.

This post has been edited by Magus: Aug 27 2004, 03:01 PM


--------------------
Previously known as the original Chaos

The Chaos Homepage (BACK !!!)

Shadowsoft-Games.com



A new style.

Go to the top of the page
 
+Quote Post
SMTP
post Sep 2 2003, 12:46 PM
Post #2


3 emeralds

Group Icon

Group: CulT Member
Posts: 334
Joined: 21-August 03
Member No.: 143
Gender: Male



Heh, I'm pretty sure ENWT will like to see this! :P


--------------------
Shadowsoft-Games.com



A new style.

Go to the top of the page
 
+Quote Post
Hivebrain
post Sep 2 2003, 02:31 PM
Post #3


The Thing

Group Icon

Group: CulT Family
Posts: 618
Joined: 21-August 03
From: Eggmanland
Member No.: 117
Gender: Male
Country: United Kingdom



Are you going to add a decompressor for that nameless compression format used in Sonic Crackers?


--------------------
Go to the top of the page
 
+Quote Post
Sonic McTails
post Sep 2 2003, 04:55 PM
Post #4


My group changes more often then your custom title.

Group Icon

Group: CulT Member
Posts: 66
Joined: 22-August 03
From: Project Nemesis Control Room
Member No.: 321
Gender: Male



Fast note: The Mac version only works on Mac OS X and is Command LIne. I was susposed to create a package installer and manual files, but didn't do it.


--------------------
Insert 25 cents to get a new signature ...
The Nemesis Commander is back in action again !
Go to the top of the page
 
+Quote Post
Nemesis
post Sep 2 2003, 06:39 PM
Post #5


There's no such thing as 2

Group Icon

Group: CulT Family
Posts: 957
Joined: 20-August 03
From: Sydney, Australia
Member No.: 4
Gender: Male



>> QUOTE(Hivebrain @ Sep 3 2003, 05:31 AM)
>> 
Are you going to add a decompressor for that nameless compression format used in Sonic Crackers?

I don't believe I released the source for that one. Some of the more obscure formats like that one I plan to hold onto for a little while longer. I have some plans for something, and I want to have something new left to incorporate into it :).


--------------------
Go to the top of the page
 
+Quote Post
OrdosAlpha
post Sep 2 2003, 10:25 PM
Post #6


Rotate motherfucker! ROTATE!

Group Icon

Group: CulT Family
Posts: 780
Joined: 22-August 03
From: Glasgow, Scotland
Member No.: 261
Gender: Male
Country: Scotland



Again, Magus, you have done excellent work.

*downloads*


--------------------
My Staff banner owns you all! Bow down to it's greatness and beg for mercy!


Hacking Cult
Come on over and join the party!
Go to the top of the page
 
+Quote Post
Hivebrain
post Sep 2 2003, 10:58 PM
Post #7


The Thing

Group Icon

Group: CulT Family
Posts: 618
Joined: 21-August 03
From: Eggmanland
Member No.: 117
Gender: Male
Country: United Kingdom



I've added a few things to two of the data files, including Sega logo and title screen mappings, which are Enigma-compressed.

http://sonicology.fateback.com/E-Locations.txt

http://sonicology.fateback.com/K-Locations.txt


--------------------
Go to the top of the page
 
+Quote Post
Magus
post Sep 3 2003, 04:50 AM
Post #8


The lazy but efficient programmer !

Group Icon

Group: CulT Member
Posts: 117
Joined: 25-August 03
Member No.: 419
Gender: Male



Thanks for this, man. :)

I think I'm gonna change the format of these files a bit... Currently, the 6 first characters of each line must be an offset (even the section headers). Crappy eh ? :lol:


--------------------
Previously known as the original Chaos

The Chaos Homepage (BACK !!!)

Shadowsoft-Games.com



A new style.

Go to the top of the page
 
+Quote Post
Magus
post Sep 3 2003, 08:17 AM
Post #9


The lazy but efficient programmer !

Group Icon

Group: CulT Member
Posts: 117
Joined: 25-August 03
Member No.: 419
Gender: Male



OK, I just uploaded it again. This update only changes the way locations files are handled. It no longer requires the 0's in front of comment lines: if a line starts with an invalid hex digit, the offset is just considered as 0. Well, if you want to make comment lines that start with an hex digit, just put a space at the begining of the line for example. As for lines containing offsets, you are not forced to write exactly 6 characters. You can write less... or more. In fact, when reading the offset, the program simply stops at the first invalid hex digit. Don't try using more than 8 characters though. Also, remember you mustn't put the 0x prefix. It would simply be interpreted as 0 (for the reason I explained two lines ago...).

BTW, may I ask for this topic to be pinned, please ? -> EDIT: Thanks

EDIT: This update also contains the location files updated by Hivebrain

This post has been edited by Magus: Sep 3 2003, 09:13 AM


--------------------
Previously known as the original Chaos

The Chaos Homepage (BACK !!!)

Shadowsoft-Games.com



A new style.

Go to the top of the page
 
+Quote Post
Magus
post Sep 4 2003, 03:32 PM
Post #10


The lazy but efficient programmer !

Group Icon

Group: CulT Member
Posts: 117
Joined: 25-August 03
Member No.: 419
Gender: Male



Yes, again, an update. Support for moduled Kosinski added. Enjoy ! :D


--------------------
Previously known as the original Chaos

The Chaos Homepage (BACK !!!)

Shadowsoft-Games.com



A new style.

Go to the top of the page
 
+Quote Post
Nemesis
post Sep 4 2003, 09:51 PM
Post #11


There's no such thing as 2

Group Icon

Group: CulT Family
Posts: 957
Joined: 20-August 03
From: Sydney, Australia
Member No.: 4
Gender: Male



For anyone who doesn't know, the moduled Kozinski format is used in S3 and S&K. There's some info on it in my S3 hacking guide I believe.


--------------------
Go to the top of the page
 
+Quote Post
Magus
post Sep 5 2003, 05:04 AM
Post #12


The lazy but efficient programmer !

Group Icon

Group: CulT Member
Posts: 117
Joined: 25-August 03
Member No.: 419
Gender: Male



It's mainly used for level art, according to your guide. I say "mainly" because I do not want to check if it's used for something else. I'm too lazy. :lol:


--------------------
Previously known as the original Chaos

The Chaos Homepage (BACK !!!)

Shadowsoft-Games.com



A new style.

Go to the top of the page
 
+Quote Post
Nemesis
post Sep 6 2003, 04:06 AM
Post #13


There's no such thing as 2

Group Icon

Group: CulT Family
Posts: 957
Joined: 20-August 03
From: Sydney, Australia
Member No.: 4
Gender: Male



Hell, I can't remember either. It's used for stuff in general. That's good enough for me.


--------------------
Go to the top of the page
 
+Quote Post
perfect chaos
post Sep 6 2003, 06:33 AM
Post #14

*laughing*

Group Icon

Group: Unwanted
Posts: 76
Joined: 21-August 03
Member No.: 248
Gender: Male



thank god it compresses moduled tiles. i used to have to split the 8x8 tiles my self and it was a pain in the ass.
Go to the top of the page
 
+Quote Post
Magus
post Sep 6 2003, 10:54 AM
Post #15


The lazy but efficient programmer !

Group Icon

Group: CulT Member
Posts: 117
Joined: 25-August 03
Member No.: 419
Gender: Male



Just remember the modulated tiles support hasn't been really tested. I just tryed it on AIZ1 tiles, and as it worked, I assumed it had no bug. Well, it should not have bug, but who knows ? :D


--------------------
Previously known as the original Chaos

The Chaos Homepage (BACK !!!)

Shadowsoft-Games.com



A new style.

Go to the top of the page
 
+Quote Post
OrdosAlpha
post Sep 6 2003, 06:56 PM
Post #16


Rotate motherfucker! ROTATE!

Group Icon

Group: CulT Family
Posts: 780
Joined: 22-August 03
From: Glasgow, Scotland
Member No.: 261
Gender: Male
Country: Scotland



>> QUOTE(Magus @ Sep 6 2003, 04:54 PM)
>> 
Just remember the modulated tiles support hasn't been really tested. I just tryed it on AIZ1 tiles, and as it worked, I assumed it had no bug. Well, it should not have bug, but who knows ? :D

Superior beta testing by Magus at its best. XD


--------------------
My Staff banner owns you all! Bow down to it's greatness and beg for mercy!


Hacking Cult
Come on over and join the party!
Go to the top of the page
 
+Quote Post
Magus
post Sep 7 2003, 01:33 AM
Post #17


The lazy but efficient programmer !

Group Icon

Group: CulT Member
Posts: 117
Joined: 25-August 03
Member No.: 419
Gender: Male



XD

No, really, it shouldn't have bugs. I only had to add 2 blocks of code to my compression and decompression algorithms (one before the algorithm starts, and one when the compression / decompression of a module is complete). If it works for one level art 'archive', it should work with all the others too.


--------------------
Previously known as the original Chaos

The Chaos Homepage (BACK !!!)

Shadowsoft-Games.com



A new style.

Go to the top of the page
 
+Quote Post
Hivebrain
post Sep 11 2003, 06:35 PM
Post #18


The Thing

Group Icon

Group: CulT Family
Posts: 618
Joined: 21-August 03
From: Eggmanland
Member No.: 117
Gender: Male
Country: United Kingdom



I've updated the loactions files:

http://sonicology.fateback.com/E-Locations.txt
(more mappings stuff for Sonic 1 & 2)

http://sonicology.fateback.com/K-Locations.txt
(added 1 piece of compressed art in Sonic 1)

http://sonicology.fateback.com/N-Locations.txt
(fixed a typo in one of the addresses)

It seems odd to me that they'd use Kosinski compression for a single piece of art in Sonic 1.


--------------------
Go to the top of the page
 
+Quote Post
Magus
post Sep 12 2003, 01:19 PM
Post #19


The lazy but efficient programmer !

Group Icon

Group: CulT Member
Posts: 117
Joined: 25-August 03
Member No.: 419
Gender: Male



WTF ? K-Compression in Sonic 1 ? Wow...

Anyways, thanks for updating the location files.


--------------------
Previously known as the original Chaos

The Chaos Homepage (BACK !!!)

Shadowsoft-Games.com



A new style.

Go to the top of the page
 
+Quote Post
Hivebrain
post Sep 13 2003, 09:18 PM
Post #20


The Thing

Group Icon

Group: CulT Family
Posts: 618
Joined: 21-August 03
From: Eggmanland
Member No.: 117
Gender: Male
Country: United Kingdom



I used the Enigma compressor to replace SBZ 16x16 tiles with modified tiles, but it causes the game to crash as soon as SBZ loads. Didn't someone else mention the same problem replacing GHZ 16x16 tiles?


--------------------
Go to the top of the page
 
+Quote Post

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
3 Pages V   1 2 3 >
Start new topic

 

Lo-Fi Version Time is now: 11th December 2017 - 03:43 PM