Jump to content

Recommended Posts

Posted (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

box 1.pb4..rar

Edited by Delta Blast Burn
typo

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...