Giga Universe
Working on a tool.
- 121
- Posts
- 17
- Years
- South Africa
- Seen Sep 30, 2012
I just made a new patching format. Its got quite a simple format, and is very speedy. Plus its got built in compression. I'm probably leaving this as a command line application, as I'm integrating the source into something else. It currently uses the QuickLZ library for compression, but I can change that if someone has another library to suggest. The tool is programmed in C++ and I have included a win32 binary and the source in the attachment.
Run from cmd:
I did a small speed test: I took a FireRed ROM as the base, and a Ruby ROM as the modified file, and here are graphs showing the comparison in size, and the time it took to create and apply the patch. I know, the file size sucks, but I'm still looking for a good compression algorithm thats fast and has a reasonable compression ratio. Here are the results anyway:
If anyone is curious as to how it works, read the source... There is some documentation in there.
Run from cmd:
cpspc [m|a] baserom patchout [modifiedrom]
m: Make a patch
a: Apply a patch
baserom: the rom to use as a base
patchout: output name for the patch file
modifiedrom: the modified rom (Only use with the 'm' switch)
m: Make a patch
a: Apply a patch
baserom: the rom to use as a base
patchout: output name for the patch file
modifiedrom: the modified rom (Only use with the 'm' switch)
I did a small speed test: I took a FireRed ROM as the base, and a Ruby ROM as the modified file, and here are graphs showing the comparison in size, and the time it took to create and apply the patch. I know, the file size sucks, but I'm still looking for a good compression algorithm thats fast and has a reasonable compression ratio. Here are the results anyway:
![[PokeCommunity.com] New Patching Format (CPS) [PokeCommunity.com] New Patching Format (CPS)](https://i53.tinypic.com/et8fns.png)
If anyone is curious as to how it works, read the source... There is some documentation in there.