Editing Wikifang:Telefang 1 Translation Patch/NatsumeGB compression
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
Malias compression is the compression used in numerous Natsume games, namely, at least Telefang and Medarot. It is a modified implementation of the LZ77 algorithm, which works by referencing previously decompressed data using length-distance pairs. [http://en.wikipedia.org/wiki/LZ77_and_LZ78_%28algorithms%29 Wikipedia] has a good description of the algorithm. | |||
Malias compression is named after [http://s15.zetaboards.com/Tulunk_Village/topic/515644/ Malias], the person who wrote the first decompresser. | |||
Implementation of the | Implementation of the Malias compression in pseudocode: | ||
<pre>compressed = readbyte() | <pre>compressed = readbyte() | ||
Line 20: | Line 20: | ||
else: # Insert mode | else: # Insert mode | ||
data += readbyte()</pre> | data += readbyte()</pre> | ||
== Games that use the compression == | == Games that use the compression == | ||
* Keitai Denjuu Telefang | * Keitai Denjuu Telefang |