| |
Credits :
Download :
Look for downloads on external sites:
Pokefinder.org
User Comment Submitted by Count Zero on 2 June 2020
Yieks - nice find KnightRider.
Using this for a while now and also had an issue with the depacker somehow when initially implementing it. | User Comment Submitted by Knight Rider on 31 May 2020 User Comment Submitted by Compyx on 16 March 2007
Why did you write this in 'C++'? Apart from bool (easily changed to int or typedef'ed), variable declarations/definitions halfway and the use of //-style comments, there's nothing C++ in it.
Also consider adding a '\n' to you printf's, otherwise you get lines like these:
usage : rle [infile] [outfile]compyx@athlonbox:~/downloads/sources$
Also some error-checking regarding fputc() and fgetc() would be nice, not to mention ferror() checking when feof() returns true.
I think that's enough criticism for now, sorry ;-)
| User Comment Submitted by Stainless Steel on 16 March 2007
great work. works like a charm!
| User Comment Submitted by WVL on 10 June 2006
mirage : i'll check tomorrow and if i find the same i will update the download links :)
update :
okies, so Mirage was correct and i made a small mistake in the packer. On top of that, I also made another mistake which sometimes caused the packer to encode 1 more byte (so the resulting file after depacking becomes 1 byte bigger).
I removed both these bugs, and on top of that added a postfilter that tries to optimize the data for a little bit more depacking speed (filter tries to minimize jumps from the 2 depack loops without adding bytes)..
have fun :)
note that I replaced all 3 download links! even the depacker has a little (one opcode : inx) change. | User Comment Submitted by Mirage on 9 June 2006
Something goes wrong when it finds a controlbyte with value #$80 (not sure if the problem is with source.cpp or derle.txt)
Can you fix that please so i can continue using it? :)
Edit: fixed it myself...
in source.cpp this line:
while(samebytes < 128 && !(data[counter] == data[counter+1] && data[counter+1] == data[counter+2]) && counter < bytes)
128 should be 127 | User Comment Submitted by WVL on 7 June 2006
I needed something that could depack my data FAST, and this is it. Depacker source can be compiled with 64tass. (feel free to change things as you like, this is only example code!)
to make things a bit clearer :
- rle.exe is the (win32) command-line executable. You can pack files with "rle.exe infile outfile"
- derle.txt is an example sourcecode (in 64tass/tass.exe/turbo assembler format) to unpack the files again.
- source.cpp is the sourcecode of rle.exe |
|
|
|
| Search CSDb |
| Navigate | |
|
| Detailed Info | |
|
| Fun Stuff | |
· Goofs (1)
· Hidden Parts · Trivia
|
|
| Forum | |
|
| Support CSDb | |
|
| |
|