Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2017-12-10 21:49:14

NitroHedgehog
Member
Registered: 2017-06-25
Post 12/38

(PokéRed) QUESTION - Change the logo from RED to GREEN?

Hi! I noticed something odd while viewing the files of a PokéRed dissassembly. There is the BLUE logo and the RED one. But the RED logo also has the GREEN logo in it... I was wondering how I could make the output ROM  show "GREEN VERSION" at the title screen rather than the RED one. 'Cause this gave me an idea for a rather unique set of ROM Hacks :)

Offline

#2 2017-12-12 22:54:27

Danny-E 33
Administrator
Registered: 2012-06-09
Post 1,047/1,119

Re: (PokéRed) QUESTION - Change the logo from RED to GREEN?

You need to change the tile map "VersionOnTitleScreenText" at the bottom of engine/titlescreen.asm

Offline

#3 2017-12-27 18:38:36

RadonUsedMimic
Member
From: Texas
Registered: 2016-11-22
Post 68/127
Website

Re: (PokéRed) QUESTION - Change the logo from RED to GREEN?

NitroHedgehog wrote:

Hi! I noticed something odd while viewing the files of a PokéRed dissassembly. There is the BLUE logo and the RED one. But the RED logo also has the GREEN logo in it... I was wondering how I could make the output ROM  show "GREEN VERSION" at the title screen rather than the RED one. 'Cause this gave me an idea for a rather unique set of ROM Hacks :)

Like Danny-E 33 said, go to the "VersionOnTitleScreen" text in engine/titlescreen.asm. Then type in the following:

VersionOnTitleScreenText:
IF DEF(_RED)
    db $60,$61,$7F,$65,$66,$67,$68,$69,"@" ; "Red Version"
ENDC

[IF DEF(_GREEN)
    db $62,$63,$64,$7F,$65,$66,$67,$68,$69,"@" ; "Green Version"
ENDC] (Don't type in the brackets surrounding the code.)

IF DEF(_BLUE)
    db $61,$62,$63,$64,$65,$66,$67,$68,"@" ; "Blue Version"
ENDC

Above it is a function called:

PrintGameVersionOnTitleScreen:
    coord hl, 7, 8
    ld de, VersionOnTitleScreenText
    jp PlaceString

Replace "coord up, 7, 8" with:

IF DEF(_GREEN)
    coord hl, 6, 8
ELSE
    coord hl, 7, 8
ENDC

This is so the "Green Version" tile can stay aligned in the center like Red's and Blue's does.

Then, go into "main.asm" and you'll find a bank called  "SECTION "bank1A",ROMX,BANK[$1A]"

Type the following in between:

Version_GFX:
IF DEF(_RED)
    INCBIN "gfx/red/redgreenversion.1bpp" ; 10 tiles
ENDC

[IF DEF(_GREEN)
    INCBIN "gfx/green/redgreenversion.1bpp" ; 10 tiles
ENDC] (Again, don't type in the brackets surrounding this line of code.)

IF DEF(_BLUE)
    INCBIN "gfx/blue/blueversion.1bpp" ; 8 tiles
ENDC
Version_GFXEnd:

This tells the game where to look for the "Green Version" tile, if any.

That's pretty much it.

Last edited by RadonUsedMimic (2017-12-27 23:29:25)


Caramba! I hate it when there’s a lot of hair on the floor! Here, I’ll go clean up!
Woo! Feels good when the floor is clean, doesn’t it? Let’s groove.

Offline

#4 2018-03-06 00:39:33

NitroHedgehog
Member
Registered: 2017-06-25
Post 17/38

Re: (PokéRed) QUESTION - Change the logo from RED to GREEN?

Ok. Sorry if I am bumping a dead thread, but when I try to export a Green version, I get the following error:

make: *** No rule to make target 'green'.  Stop.

How can I fix this to export a Green version?

EDIT : Got a new error that does the same if I try to export a Yellow Version...

$ make green
make: Nothing to be done for 'green'.

$ make yellow
make: Nothing to be done for 'yellow'.

The files originally came from a dead project that I do not remember where it came from, but it would allow one to output all 4 versions... if I can get it working...

Last edited by NitroHedgehog (2018-03-06 01:12:36)

Offline

Board footer

Powered by FluxBB