The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Other Making 16 Color Image 256 (https://www.pokecommunity.com/showthread.php?t=364103)

PokéMew February 28th, 2016 3:13 PM

Making 16 Color Image 256
 
This may or may not be an obvious answer, but how would I make an already inserted 16 color image, say, the titlescreen charizard, support 256 colors? I made a custom palette table, and simply pointing there doesn't seem to do the trick (it uses 16 of those colors cause it only supports 16). Basically I just overwrote all pointers of EAD5E8 (charizards original palette) with my custom palette table's offset, and the above result was the outcome. Suggestions?

Thanks

esperance February 28th, 2016 9:16 PM

If you want to make a titlescreen image that supports 256 (well the FireRed titlescreen can only be 240 because of how it was programmed), you can replace the "Pokemon" logo tileset and tilemap with your new image. It will cover up the other stuff (although you may want to replace those with blank images) and will be in 256 color mode.

PokéMew February 29th, 2016 4:22 AM

Quote:

Originally Posted by Lostelle (Post 9140322)
If you want to make a titlescreen image that supports 256 (well the FireRed titlescreen can only be 240 because of how it was programmed), you can replace the "Pokemon" logo tileset and tilemap with your new image. It will cover up the other stuff (although you may want to replace those with blank images) and will be in 256 color mode.

Yeah I know, but for what i'm trying to do I need charizard's sprite to support 256 colors.

Blah February 29th, 2016 3:35 PM

Quote:

Originally Posted by PokéMew (Post 9140630)
Yeah I know, but for what i'm trying to do I need charizard's sprite to support 256 colors.

Try doing this:

At 083BFB74:
E5 11 00 00 F0 09 00 00 DA 21 00 00 CF 31 00 00

At 080789F2:
20 22 00 00 D0 21

At 08078A1C:
01 49 00 F0 00 F8 08 47 XX XX XX 08

XX XX XX is
Code:

.text
.align 2
.thumb
.thumb_func

main:
        mov r1, #0xD0
        lsl r1, r1, #0x1
        mov r2, #0x20
        ldr r4, =(0x80703EC +1)
        bl linker
        ldr r1, =(0x8EAD608)
        mov r4, #0x0
        ldr r0, =(0x8078A26 +1)
        bx r0

linker:
        bx r4

.align 2


This SHOULD preserve the 4 BGs while switching BG1 and BG0's pal allocations. If it doesn't work, welp, it's untested :D

PokéMew February 29th, 2016 8:20 PM

Quote:

Originally Posted by FBI (Post 9141454)
Try doing this:

At 083BFB74:
E5 11 00 00 F0 09 00 00 DA 21 00 00 CF 31 00 00

At 080789F2:
20 22 00 00 D0 21

At 08078A1C:
01 49 00 F0 00 F8 08 47 XX XX XX 08

XX XX XX is
Code:

.text
.align 2
.thumb
.thumb_func

main:
        mov r1, #0xD0
        lsl r1, r1, #0x1
        mov r2, #0x20
        ldr r4, =(0x80703EC +1)
        bl linker
        ldr r1, =(0x8EAD608)
        mov r4, #0x0
        ldr r0, =(0x8078A26 +1)
        bx r0

linker:
        bx r4

.align 2


This SHOULD preserve the 4 BGs while switching BG1 and BG0's pal allocations. If it doesn't work, welp, it's untested :D

Wow thanks! I appreciate your efforts toward the problem :D
However, when applying these changes to a clean FireRed, it results in a black screen on the titlescreen. Have any ideas? (even though a black screen could mean just about anything XD)

Blah February 29th, 2016 9:00 PM

Quote:

Originally Posted by PokéMew (Post 9141829)
Wow thanks! I appreciate your efforts toward the problem :D
However, when applying these changes to a clean FireRed, it results in a black screen on the titlescreen. Have any ideas? (even though a black screen could mean just about anything XD)

Yep, that's because the hook bytes I posted were completely wrong lol.

Try
At 08078A1C:
00 49 08 47 XX XX XX 08

instead of the other thing

PokéMew March 1st, 2016 5:33 PM

Quote:

Originally Posted by FBI (Post 9141878)
Yep, that's because the hook bytes I posted were completely wrong lol.

Try
At 08078A1C:
00 49 08 47 XX XX XX 08

instead of the other thing

Don't know what to tell you but I got the same result.. :/


All times are GMT -8. The time now is 2:23 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.