Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2017-03-29 20:15:11

Shararamosh
Member
Registered: 2016-08-25
Post 13/24

Some questions about Pokered

It's been a while since I visited the forum, so up to this time I have some questions:
1. Where is charmap for text_box.png?
2. Where does game use AB.png and p_tile.png?
3. How to edit the order of gamefreak_intro.png tiles on title screen?

Offline

#2 2017-03-29 20:52:21

Rangi
Member
Registered: 2016-05-09
Post 586/870

Re: Some questions about Pokered

GitHub's search function in the top-right can help answer your questions.

Shararamosh wrote:

1. Where is charmap for text_box.png?

There isn't one. text_box.2bpp is defined as TextBoxGraphics by main.asm:177, and TextBoxGraphics is loaded by home.asm:3106 and engine/menu/start_sub_menus.asm:556. The places that reference its tiles, like here and here, do so with raw tile IDs.

Shararamosh wrote:

2. Where does game use AB.png and p_tile.png?

AB.2bpp is defined as ABTiles by main.asm:166, and p_tile.1bpp is defined as PTile by engine/menu/status_screen.asm:244. ABTiles is not referenced anywhere, and as far as I can tell that graphic data is unused. PTile is referenced by c44171/engine/menu/status_screen.asm; it's the P for PP, tile $72.

Note that plenty of tiles in gfx/font.png are unused, so you could add the bold P to it, give it an alias like "[PPP]" in charmap.asm, and remove all the code for loading p_tile.1bpp. Same goes for the subset of tiles in gfx/text_box.png that are actually used; many are not. (As Danny-E explains in that thread, getting rid of gfx/text_box.png also frees up 25 more tiles that can be used by maps.)

Shararamosh wrote:

3. How to edit the order of gamefreak_intro.png tiles on title screen?

gamefreak_intro.2bpp is defined as GameFreakIntro by engine/intro.asm:433 and referenced by LoadIntroGraphics. The order is defined by engine/titlescreen.asm:379 ("©'95.'96.'98 Nintendo / ©'95.'96.'98 Creatures inc. / ©'95.'96.'98 GAME FREAK inc.") and engine/gamefreak.asm:215 ("GAME FREAK PRESENTS" and their logo). (I think that only the original Red+Green had the "PRESENTS" text.)

Last edited by Rangi (2017-03-29 21:10:38)


Pokémon Polished Crystal (GitHub) — version 2.2.0 released
Pokémon Red★ and Blue★: Space World Edition (GitHub) — updated August 19!
Polished Map: pokered+pokecrystal map, tileset, and palette editor — version 3.5.1 released!

Offline

Board footer

Powered by FluxBB