Contents |
RGZ is the archive file format used by Ragnarok Online Patcher to distribute new files, like Music, etc.
RGZ files are files that are made by a RAT file compressed with zlib algorithm. The description below applies to RAT files, which are simply decompressed RGZ files. RGZ stands for RAT + GZip
Every RGZ have the following header (After decompression, of course). For each file/directory inside RGZ, you have a new header.
struct RGZ_Entry {
char type;
int8 filenameLength;
char filename[filenameLength];
RGZ_File fileData;
};
Structure that hold the data an entry, inside a RGZ file.
struct RGZ_File {
int32 length;
char data[length];
}
Note: To finish the file, we have a "e" type on header, a "\x04" value on length and a "end\x00" on data