You are not logged in.
Pages: 1
The dimensions of a sprite are refered to in the basestats of each Pokémon, i.e. 5 by 5 tiles for abra. When replacing the png-file with a 7 by 7 tile picture and making no alterations in the basestats.asm-file, pokered.gbc is put together without any errors and the larger sprite can be loaded correctly. Do I really need the info (in the basestat-file) in the first place or are the dimensions of each *.PNG to be included evaluated at some point of the reassembly routine?
Offline
The dimensions of the pic are included as the first byte (55, 66, 77) of the compressed pic in the game's compression format. Although, this byte is rarely (or never?) used by the game.
Like you said, the dimensions are grabbed from the base stats rather than grabbed from the first byte of the pic.
To make this easier, we edited the base stats files to dump the first byte of the pic file.
In the example of Abra, data/baseStats/abra.asm includes this line:
INCBIN "pic/bmon/abra.pic",0,1 ; 55, sprite dimensions
This way, if you replace the Abra pic and give it new dimensions, the base stats file will be correctly updated.
Offline
Maybe it's cause I'm doin somethin wrong, but I don't see any information about sprite dimensions in the base stats files
Can someone please help me to resize sprites
Offline
Assuming that you are using modern pokered, the dimensions are not specified explicitly in the base stats file.
Instead the dimensions are extracted from the pokemon's pic file directly:
INCBIN "gfx/pokemon/front/abra.pic", 0, 1 ; sprite dimensions
(the `0, 1` means extract just the first byte from the file - not the whole file.)
So, if you replace replace a pic with a pic of different dimensions, the base stats will be updated automatically.
Offline
I'm still kinda unsure of how to do this tbh. I don't know how to change pic files
Sorry, I know I've probably bothered you alot already with these questions, and i know they probably have simple solutions, I'm just new to doing this stuff so I still get very lost and confused easily
Offline
ChickenMan, maybe your question is about how to use an image editor, like Photoshop, gimp, paint.net, MS paint etc to open a sprite file and change its dimensions?
Offline
Oh, wait. It's just resizin it in MS paint???
Lmao i thought it would be alot more complicated and would require downloading something,
Since i already tried MS paint to change the sprite dimensions but it gave an error.
Guess I'm still doin somethin wrong. Sorry.
Offline
What was the error you got?
Offline
error: layout.link(82): Sections would extend past the end of ROMX ($8031 > $7fff)
make: *** [Makefile:108: pokered.gbc] Error 1
Offline
So it looks like the problem is not the image's dimensions per se. It is that an image with increased dimensions carries more data. And the ROM does not have enough space to include all the data of the image you're trying to feed it.
Last edited by nightbringer (2022-01-11 05:17:17)
Offline
Pages: 1