Delta Blast Burn Posted April 4, 2012 Posted April 4, 2012 (edited) Hey Codr I may have thought of a useful way to store entire boxes at the smallest size possible. Basically the way it keeps the file size down is with a buffer similar to the sprite buffer in gsc. the way it keeps size down is it stores the Pokemon IDs as 2 byte words up to the the number of pokemon + the number of blank spaces between them folllowed by four bytes of 0xFF if there are no more pokemon in the box i.e. Say there are only two pokemon in a box seperated by empty spaces perhaps mewtwo in spot 1 and snorlax in spot 12, then the buffer would be 96 ff 0a 8f ff ff ff ff Of course if there are only single spaces it's easier to store as "00" instead of "ff 01" so there should be a minimum repeat value of "ff 03" P.S. I may edit this post to clarify, or if I think of an easier way to do something. P.P.S Attached is an example. box 1.pb4..rar Edited April 4, 2012 by Delta Blast Burn typo
Codr Posted April 5, 2012 Posted April 5, 2012 I realize you're trying to help, but if I actually add this feature, I already know what needs to be done.
Codr Posted April 5, 2012 Posted April 5, 2012 I mean that I have full knowledge of ways of using as little data as possible in a file format. The amount of extra data we're talking about here is beyond insignificant, however.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now