Posts: 8
Threads: 2
Joined: Sep 2015
02-07-2016, 12:23 PM
(This post was last modified: 02-10-2016, 06:23 PM by rippedwithaclaw128.)
So, I'm trying to make a sprite hack of Kirby's Dream Land (which clearly has never been done before, and I'm starting to see why), but so far, the sprites are mixed in with the games code in such a way that makes custom sprites seem almost impossible.
The same situation happens with YY-CHR, the only helpful thing it has is that it can re-arrange the tiles, but still can't tell apart sprites from game data.
I'm dead in the water, but maybe someone out there knows what's really happening right here?
" èù¸ Xˆ¸èè¸ èˆþ¸èèþX"
- A sprite sheet I'm working on
Posts: 515
Threads: 31
Joined: Aug 2014
Looks like some type of compression. Dunno how to decompress.
Posts: 8
Threads: 2
Joined: Sep 2015
02-07-2016, 05:30 PM
(This post was last modified: 02-07-2016, 05:34 PM by rippedwithaclaw128.)
(02-07-2016, 04:56 PM)Raccoon Sam Wrote: They're compressed. The only way to decompress and recompress them is with Devin Acker's Exhal toolset.
I don't know the offsets though.
Ok, I'm glad to know a decompressing tool exists. I think i know where the offset is, it appears to begin where the sprites start coming in? I'm not sure...
(I could atleast try figuring it out in BGB...)
" èù¸ Xˆ¸èè¸ èˆþ¸èèþX"
- A sprite sheet I'm working on
Posts: 8
Threads: 2
Joined: Sep 2015
Can anyone figure out where the offset is, or can someone tell me how to find it?
" èù¸ Xˆ¸èè¸ èˆþ¸èèþX"
- A sprite sheet I'm working on
Posts: 1,864
Threads: 13
Joined: May 2008
Start with the first tile after the 2 black tiles.
Doofenshmirtz: This is a little bit awkward but have you seen my escape jet keys? (Perry nods) What, you have? Well that's great! So where are they? (Perry looks away) You won't tell me? Is this because you don't speak or are you just being a jerk?
~Phineas and Ferb, "One Good Scare Ought to Do It!" (2008)
Posts: 8
Threads: 2
Joined: Sep 2015
(02-07-2016, 07:24 PM)Deathbringer Wrote: Start with the first tile after the 2 black tiles.
You mean $8000? That seemed to work, but how do I get it to decompress the sprites rather than decompress whatever data was mixed in with the sprites?
(I also ran the output file in bgb and got a strange sound. Strange, isn't it?)
" èù¸ Xˆ¸èè¸ èˆþ¸èèþX"
- A sprite sheet I'm working on
Posts: 8
Threads: 2
Joined: Sep 2015
02-09-2016, 09:51 PM
(This post was last modified: 02-09-2016, 09:53 PM by rippedwithaclaw128.)
Due to the awkward silence, I guess I'm on my own on this one.
(atleast i have a starting point)
" èù¸ Xˆ¸èè¸ èˆþ¸èèþX"
- A sprite sheet I'm working on
Posts: 8
Threads: 2
Joined: Sep 2015
(02-10-2016, 03:33 AM)Raccoon Sam Wrote: You probably typed in "8000" while you should've typed "0x8000"
Here's my command line usage:
exhal kirbydreamland.gb 0x8000 graphics.bin
this was spat out:
I'd imagine you can use the inhal program to push the edited graphics in just the same way
Wow, that actually worked! Whelp, should of thought about that, but atleast it worked.
" èù¸ Xˆ¸èè¸ èˆþ¸èèþX"
- A sprite sheet I'm working on
Posts: 609
Threads: 26
Joined: May 2008
02-11-2016, 02:09 AM
(This post was last modified: 02-11-2016, 02:10 AM by Raccoon Sam.)
No problem. It should be noted that that's only one chunk of graphics. I did some testing and apparently new graphics begin usually where the old one ends. After decompressing the graphics from 0x8000 you get a console message:
Compressed size: 2133 bytes.
You must then count {your original offset} + {2133 in hex} to get the next offset. 2133 in hex is 0x855, so because 0x8000 + 0x855 is 0x8855, the next batch of compressed graphics is at 0x8855. I would figure there should be a way to automate this but I'm not smart enough for that.
Game Boy banks are also always 0x4000 bytes, so if you ever feel lost, try starting anew from a new bank. Using YY-CHR or Tile Molester helps a lot too, because usually you can 'see' the compressed graphics and take an educated guess.
Once there was a way to get back homeward