RE4 GC AR PAL to NTSC/U

Game Hacks, Trainers, Cheats

Moderator: Ralf@gc-forever

Post Reply
RagePotato
Posts: 6
Joined: Mon Feb 16, 2015 5:46 pm

RE4 GC AR PAL to NTSC/U

Post by RagePotato » Mon Feb 16, 2015 7:14 pm

I would like to port a select number of Ralf's Resident Evil 4 GCN PAL codes to NTSC/U.


There are a number of rare PAL codes that I have never been able to find available for my version of RE4.

Comparatively, the NTSC codelist is rather sparse.


The problem is I have no idea what I'm doing. :oops:

Following the tutorial isn't exactly not rocket science for me.

So, I take the PAL code for Infinite Health:
QV9R-WYZA-TN20G
RDU6-G26H-QE721


0682E3A9 18000000
422B7548 27D80960


. .and the NTSC/U code for Infinite Health:
GE6Z-T7QQ-BEPV9
R4MU-C1T7-WUF9K


0656E208 08000000
040CEC10 60000000


Aaaand. . . this is as far as I've gotten. How do I find the offset?
How do I know these two codes are writing the same value?
Are there any known offset values for RE4 GCN PAL/NTSC-U?
Are there any programs that do this automatically?

I'd appreciate any assistance.
q8v08
Posts: 51
Joined: Wed Dec 17, 2014 8:23 pm

Re: RE4 GC AR PAL to NTSC/U

Post by q8v08 » Mon Feb 16, 2015 8:54 pm

For porting codes I find it easiest to use the offeset from item slot / amount or money / score modifiers.

NTSC-U
Max/Infinite Money
04284774 05F5E0FF = 99,999,99,9

PAL
Tons of Cash
042899B4 3B9AC9FF = 999,999,99,9

max value you can write is 4294,967,29,5
FFFFFFFF

PAL NTSC-U
042899B4 - 04284774 = 5240

NTSC-U to PAL = +5420
PAL to NTSC-U = -5420
RagePotato
Posts: 6
Joined: Mon Feb 16, 2015 5:46 pm

Re: RE4 GC AR PAL to NTSC/U

Post by RagePotato » Tue Feb 17, 2015 2:03 am

PAL
Shop Item Slot 1 Modifier [Ralf]
04218454 xxxxyyyy

NTSC
Shop Item Slot 1 Modifier (Y.S.)
04213A70 00XX03E7

04218454 - 04213A70 = 49e4

Now how do I apply this offset?

PAL
Leon Hair Color Modifier (Bomber Jacket) [Ralf]
4C809038 0000000E
04809034 00010001
0480903C 80002F80
04002F80 xxxxyyyy
04002F84 FFFFFFFF


04809034 - 49e4 = 4804650
0480903C - 49e4 = 4804658
04002F80 - 49e4 = 3ffe59c
04002F84 - 49e4 = 3ffe5a0

NTSC-U???
Leon Hair Color Modifier (Bomber Jacket)???
4804650 00010001
4804658 80002F80
3ffe59c xxxxyyyy
3ffe5a0 FFFFFFFF



Am I doing anything correctly? :?

I've been over the RE4 codes from various sites many times, and I have to say that corresponding region-similar codes are rare.
Aside from a few size modifiers, all the codes I've seen are unique to a territory. What I mean is, finding good reference values is probably a lucky break at best.

With that in mind—if this doesn't work—what are my options?
Is it possible to guess new offset values?
Ralf@gc-forever
Posts: 1344
Joined: Sun Mar 16, 2014 9:31 am

Re: RE4 GC AR PAL to NTSC/U

Post by Ralf@gc-forever » Tue Feb 17, 2015 12:52 pm

Unfortunately, the "difference" method doesn't work for ASM codes in general (no constant offsets) and for normal codes only if you have a reference code which is in the same data section as the code you want to port.
In most cases, you'll need at least several RAM dumps of the NTSC-U version and some basic game hacking skills to port these codes over.
RagePotato
Posts: 6
Joined: Mon Feb 16, 2015 5:46 pm

Re: RE4 GC AR PAL to NTSC/U

Post by RagePotato » Tue Feb 17, 2015 4:52 pm

Welp, I tried six different disk drives. RawDump 2.1 doesn't like any of them. :cry:

Guess my project ends here for now.

Thanks for the help, guys.
Ralf@gc-forever
Posts: 1344
Joined: Sun Mar 16, 2014 9:31 am

Re: RE4 GC AR PAL to NTSC/U

Post by Ralf@gc-forever » Tue Feb 17, 2015 8:09 pm

You'll need a RAM dump of the GameCube main memory and not some ISO dump of the Mini-DVD!

A RAM dump of a GameCube game can be made by one of the following methods:

- Nintendo BBA + GCNrd (GameCube only)
- USB Gecko + WiiRD (GameCube & Wii)
- Dolphin Emulator ( http://www.bullywiihacks.com/t2201-maki ... -usb-gecko )
RagePotato
Posts: 6
Joined: Mon Feb 16, 2015 5:46 pm

Re: RE4 GC AR PAL to NTSC/U

Post by RagePotato » Wed Feb 18, 2015 5:52 pm

Well, I now have a file named 'ram' and a file named 'aram.'

You mentioned earlier that I will need "at least several RAM dumps of the NTSC-U version." Why will I need several?
How many will I need? Will I also need dumps of the PAL version?

Lastly, where do you suggest I proceed from here?
Ralf@gc-forever
Posts: 1344
Joined: Sun Mar 16, 2014 9:31 am

Re: RE4 GC AR PAL to NTSC/U

Post by Ralf@gc-forever » Thu Feb 19, 2015 3:47 pm

GameCube games allocate parts of the main memory (Arena Hi) dynamically, meaning that some data structures are loaded into memory only when needed. Example, if you want to port the Leon Hair Color Modifier (Bomber Jacket) code then you'll need a RAM dump with the Leon Bomber Jacket model in it.

A RAM dump of the PAL version could be quite useful, but not really needed because I can give you all the info you need to port the codes.

Anyway, I would suggest that you start with some easy to port RAM write codes:


Laser Pointer Color Modifier

Laser Beam
0467DC8C rrggbbFF

Default = A80000FF (Red)

Laser Dot
0469F04C rrggbbFF

Default = FA1E32FF (Red)

rr = Red (00 .. FF)
gg = Green (00 .. FF)
bb = Blue (00 .. FF)

Green Laser Pointer
0467DC8C 00A800FF
0469F04C 1EFA32FF

Blue Laser Pointer
0467DC8C 0000D8FF
0469F04C 321EFAFF

Yellow Laser Pointer
0467DC8C A8A800FF
0469F04C FAFA32FF

Laser Beam Is Invisible (Only Laser Dot Is Visible)
0467DC8C 00000000

Green Laser Dot
0469F04C 1EFA32FF

Blue Laser Dot
0469F04C 321EFAFF

Yellow Laser Dot
0469F04C FAFA32FF

Code: Select all


Green Laser Dot
0469F04C 1EFA32FF

04                = Code type (32-bit RAM write)
  69F04C          = Address
         1EFA32FF = Value


Make a search for the following byte sequences:

Laser Beam

8067DC70: 00000000 00000000 43480000 43480000
8067DC80: 00000000 00000000 3F800000 A80000FF
8067DC90: 3F800000 3F800000 3F800000 3F800000

Laser Dot

8069EF90: 44AF0000 00000000 00000000 00000000
8069EFA0: 00000000 10000000 00000000 00000000
8069EFB0: 01000800 000000FF 00000000 00000000
8069EFC0: 00000000 00000000 00000000 00000000
8069EFD0: 00000000 00000000 00000000 00000000
8069EFE0: 3F800000 00000000 00000000 00000000
8069EFF0: 00000000 00000000 00000000 00000000
8069F000: 00000000 00000000 00000000 00000000
8069F010: 00000000 00000000 00000000 00000000
8069F020: 00000000 00000000 00000000 00000000
8069F030: 00000000 00000000 428C0000 428C0000
8069F040: 00000000 00000000 3F800000 FA1E32FF
8069F050: 3F800000 3F800000 3F800000 3F800000

Note that these Hex values must be there.

Replace the addresses in the codes above with the ones you found out and test the ported codes. Super simple, eh?


HUD Color Modifier

Basic HUD Illumination
0476EF24 rrggbbFF

Default = B9E1E1FF

HUD Cover
0476EE98 rrggbbFF

Default = AFAFA5FF

HUD Cover (Partner)
0476EB50 rrggbbFF

Default = AFAFA5FF

rr = Red (00 .. FF)
gg = Green (00 .. FF)
bb = Blue (00 .. FF)

Transparent HUD
0476EB50 AFAFA560
0476EE98 AFAFA560
0476EF24 B9E1E160


Basic HUD Illumination

8076EF10: 00000000 00000000 00000000 428C0000
8076EF20: 428C0000 B9E1E1FF 00000000 00000000
8076EF30: 00000000 C1700000 01000000 00000000

HUD Cover

8076EE80: 00000000 00000000 00000000 00000000
8076EE90: 430F0000 42B40000 AFAFA5FF 00000000
8076EEA0: 00000000 00000000 00000000 00000000

HUD Cover (Partner)

8076EB30: 00000000 00000000 00000000 00000000
8076EB40: 00000000 00000000 42CE0000 42C60000
8076EB50: AFAFA5FF 00000000 00000000 00000000
8076EB60: 00000000 00000000 00000000 00000000



No Background Music
040570C4 48000268
04057418 48000060

Background Music Modifier
040570A4 3B8000xx

xx = Song ID (00 .. 7F)

Play Wesker's Mercs Theme
040570A4 3B80003D


BGM

800570A0: 7C7D1B78 7C9C2378 7CB82B78 80090068
800570B0: 7CD43378 7CF73B78 FFE00890 3A600000
800570C0: 74090010 40820268 800D81CC 2C000000
...
80057410: 38600000 74090010 40820060 7D635B78

This Hex value could be different in the US version.
q8v08
Posts: 51
Joined: Wed Dec 17, 2014 8:23 pm

Re: RE4 GC AR PAL to NTSC/U

Post by q8v08 » Thu Feb 19, 2015 5:13 pm

Is it not possible to hack code by running the main game .dol through a disassembler / hexeditor
like ps2 .elfs in ps2dis?
RagePotato
Posts: 6
Joined: Mon Feb 16, 2015 5:46 pm

Re: RE4 GC AR PAL to NTSC/U

Post by RagePotato » Fri Feb 20, 2015 1:16 am

I've tested all of these and they work.

Resident Evil 4 NTSC-U
Game ID: 32B

Code: Select all

Laser Beam Color Modifier
0468DC8C rrggbbFF

Laser Dot Color Modifier
046AF04C rrggbbFF

rr = Red (00 .. FF)
gg = Green (00 .. FF)
bb = Blue (00 .. FF)

Laser Beam (Blue)
WFW7-NU21-0WUK5
5CZ9-3QCP-9A7M1

Laser Dot (Blue)
NREC-TN71-H838C
5WFG-0JZ5-W72J6

Code: Select all

HUD Color Modifier
047754D8 rrggbbFF

HUD Color Modifier (Partner)
04775190 rrggbbFF

Basic HUD Illumination
04775564 rrggbbFF

rr = Red (00 .. FF)
gg = Green (00 .. FF)
bb = Blue (00 .. FF)

Transparent HUD
C8NZ-NDJ4-74823
08MK-GNZQ-5ARTX
EVB8-MKP5-KW88P
3N9U-24RD-1MY41

Code: Select all

Background Music Modifier
040563CC 3B8000xx

xx = Song ID (00 .. 7F)

No Background Music
72N3-WBD5-YJ3MA
M231-PF6F-7KJHU
XHM4-JB4V-EWYTV

Play Wesker's Mercs Theme
RT08-3MG4-HNRMD
BHUN-RN5H-Y6UJ8
Thanks for the help!

Would you be opposed to posting more byte sequences?
There are several codes in your RE4 PAL list that I'd like to port.
Last edited by RagePotato on Fri Feb 20, 2015 4:27 pm, edited 1 time in total.
Ralf@gc-forever
Posts: 1344
Joined: Sun Mar 16, 2014 9:31 am

Re: RE4 GC AR PAL to NTSC/U

Post by Ralf@gc-forever » Fri Feb 20, 2015 12:11 pm

@q8v08: Sometimes it's possible to hack a code only with an assembly dump, but in most cases you need to use a remote debugger (GCNrd/WiiRD).


@RagePotato: Please let me know which codes you want to port and I'll post the appropriate info for you.

BTW, it seems that the 2nd address of the ported No Background Music code is wrong:

No Background Music
040563EC 48000268
04057418 48000060 ; should be 56740
RagePotato
Posts: 6
Joined: Mon Feb 16, 2015 5:46 pm

Re: RE4 GC AR PAL to NTSC/U

Post by RagePotato » Fri Feb 20, 2015 4:07 pm

Oops. It seems when I was assembling that code for the forum I accidentally copied and pasted the PAL address.



Leon Hair Color Modifier [Ralf]
4C815098 0000000E
04815094 00010001
0481509C 80002F80
4C809038 0000000E
04809034 00010001
0480903C 80002F80
4C80B618 0000000E
0480B614 00010001
0480B61C 80002F80
4C80F178 0000000E
0480F174 00010001
0480F17C 80002F80
04002F80 xxxxyyyy
04002F84 FFFFFFFF

xxxx = Color Min (RGB565)
yyyy = Color Max (RGB565)

Duck On/Off (Press X + DPad Left/Right) [Ralf]
5HHF-YF2R-EJUX2
H2WY-2TP8-8NDWQ
67Y1-M1PE-H6T35
GMZ8-B4VG-ACCM9
J8JQ-19T7-T5VC1

Leon Always Wears Bomber Jacket (Disc 1) [Ralf]
W3HQ-JJEP-VFQQU
V4CF-UYKU-5XY71
8N7K-VKRQ-8ZEPP
KEXU-PHPV-9Z4N5
6C8Q-H4NP-8NM5R

Alt. Partner Is Luis Sera (Disc 1) [Ralf]
8V17-KEVQ-WJ9RC
FKPU-EBYN-Y5TCD
RGC2-E6T2-GGX1Q

Have Ashley & Luis As Partner [Ralf]
MZY3-RY62-BJ3HD
FJAE-W2R4-6REMN
06PH-26C0-XZAKA

Enemy Drop Item Modifier (Excluding Key Items) [Ralf]
040D2BC0 4800084C
040D340C 3BE0xxxx
040D3410 3BA0yyyy

xxxx - Item ID
yyyy - Quantity

New Game Equipment Modifier [Ralf]
04018CBC 388000xx
04018D10 60000000
04018CCC 388000gg
04018D1C 386000ii
04018D2C 386000kk
04018D24 388000ll
04018D3C 386000mm
04018D34 388000nn
04018D44 386000pp
04018D48 388000qq

xx = Attache Case (7C = S, 7D = M, 7E = L, 7F = XL)

gg = Weapon ID 1
ii = Weapon ID 2

kk = Item ID 1
ll = Quantity

mm = Item ID 2
nn = Quantity

pp = Item ID 3
qq = Quantity

No Radio Transmissions [Ralf]
KNM7-G997-2DDX3
AZKQ-NU0G-THF9R

Play As Hunk In Main Game (Mercenaries Equipment) [Ralf]
TKTM-W3M4-WAA0A
9AZT-WHAY-5BK2A
QJM7-NUCD-GZJAR
AZKQ-NU0G-THF9R
Z4AD-1D2P-4M76K

Play As Krauser In Main Game (Mercenaries Equipment) [Ralf]
4DT4-17HG-R4KZX
455F-9EHF-F49BF
QJM7-NUCD-GZJAR
AZKQ-NU0G-THF9R
N4KE-GPA2-ZTDDZ

Enemies Always Drop Arrows [Ralf]
DZHU-74HQ-183KM
C9ZJ-V8TB-BTCWK
JT86-B4T6-084NH
FYQJ-9QHA-YXXEB

Krauser Can Always Use Slash Attack [Ralf]
TB75-AWKX-6TA1D
5E5U-78MK-K97XN
AYAC-QRG0-5UWBX
908M-RCUD-DHVN4

Play As Wesker In Main Game (Mercenaries Equipment) [Ralf]
D9U8-ZGE7-GJKYB
GBQC-QWN9-2K0BN
QJM7-NUCD-GZJAR
AZKQ-NU0G-THF9R
GDT4-4XZK-PHFZ1

Censorship Modifier (Saves to memory card!) [Ralf]
0028D0A1 000000xx

00 - Censored Game (Japan)
01 ... 06 - Uncensored Game (USA/Europe)

Most Enemies Don't Attack & Most Dead Enemies Don't Disappear [Ralf]
26J8-XUZX-83BUZ
F9E0-MK46-2704Y

Crows Are Replaced With Island Security (Disc 1) [Ralf]
NHAG-H84R-14E98
0APM-8H88-YQQCQ
EBA8-TM9T-QV6NJ

Chickens Are Replaced With Island Security (Disc 1) [Ralf]
Y189-KH4K-56E41
R309-C34Y-HBNY1
MQ70-Z874-8Q267

Cows Are Replaced With Island Security (Disc 1) [Ralf]
4MU1-CRKA-BY41W
NDVG-2G8C-3HH05
MZE6-HXUK-JWRN9


What method do you use to create new codes? I have a basic knowledge of porting codes now, but how would I go about creating and discovering brand new codes?
Ralf@gc-forever
Posts: 1344
Joined: Sun Mar 16, 2014 9:31 am

Re: RE4 GC AR PAL to NTSC/U

Post by Ralf@gc-forever » Sat Feb 21, 2015 1:09 pm

Have Ashley & Luis As Partner
04144370 48000060
041443E0 4BFFFFAC

80144360: FFC00890 2C000000 408201A8 2C030001
80144370: 4182001C 4081000C 2C030002 41820054
...
801443E0: 7C7F1B78 2C1F0000 40800014 3C0082FF


No Radio Transmissions
0405B4DC 4800013C

8005B4D0: 39200000 554A0084 7D205379 4082013C


Duck On/Off (Press X + DPad Left/Right)
0A28D0DE 00000401
0413FD70 39200011
0A28D0DE 00000402
0413FD70 39200002

28D0DE = PAL Joker address

NTSC-U Joker address: 287E9E

8013FD60: 550C07BC 7D606379 41820024 38000000
8013FD70: 39200002 981E00FF 38600001 993E00FD


Enemy Drop Item Modifier (Excluding Key Items)
040D2BC0 4800084C
040D340C 3BE0xxxx
040D3410 3BA0yyyy

Enemies Always Drop Arrows
040D2BC0 4800084C
040D340C 3BE00072
040D3410 3BA00014

800D2BB0: 7C9B2378 7CBA2B78 7CD83378 7C7E1B78
800D2BC0: 3FA051EB 4807989D 63BD851F 7C03E816
...
800D3400: 48079061 3BA003DE 7060000F 41820008
800D3410: 3BA0014A 93FB0000 38600001 93BA0000

These Hex values could be different in the US version.


New Game Equipment Modifier
04018CBC 388000xx
04018D10 60000000
04018CCC 388000gg
04018D1C 386000ii
04018D2C 386000kk
04018D24 388000ll
04018D3C 386000mm
04018D34 388000nn
04018D44 386000pp
04018D48 388000qq

80018CB0: 3880007F 7FE3FB78 48002511 3880007C
80018CC0: 38A00000 7FE3FB78 48001C6D 38800023
80018CD0: 38A00001 7FE3FB78 48001C5D 817F0018
80018CE0: 38000002 7FE3FB78 980B000A 7D645B78
80018CF0: 9BAB000B 9BCB000C 9BAB000D 48002ECD
80018D00: 812D8B28 3D290001 88098360 28000003
80018D10: 41810048 38800001 38A00000 3860002C
80018D20: 48131C09 38800001 38A00000 38600005
80018D30: 48131BF9 38800014 38A00000 38600004
80018D40: 48131BE9 38600018 3880000F 38A00000

These Hex values could be different in the US version.


Play As Hunk In Main Game (Mercenaries Equipment)
04018C70 38800003
04018C74 480003D0
0405B4DC 4800013C
002899D4 00000003

Play As Krauser In Main Game (Mercenaries Equipment)
04018C70 38800004
04018C74 480003D0
0405B4DC 4800013C
002899D4 00000004

Play As Wesker In Main Game (Mercenaries Equipment)
04018C70 38800005
04018C74 480003D0
0405B4DC 4800013C
002899D4 00000005

05B4DC = No Radio Transmissions
2899D4 = PAL Character Modifier

NTSC-U Character Modifier: 284794

80018C70: 9421FFD0 7C0802A6 BF810020 90010034
80018C80: 7C7F1B78 7C9C2378 3880007C 4800253D


Censorship Modifier
0028D0A1 000000xx

PAL Joker address: 28D0DE
NTSC-U Joker address: 287E9E

d = 28D0DE - 287E9E = 5240

NTSC-U Censorship Modifier address: 28D0A1 - 5240 = 287E61


Krauser Can Always Use Slash Attack
482899D4 00000004
42283160 04520000
42283160 04530000

283160 = Pointer address (Krauser active? yes: 8xxxxxxx, no: 00000000)
2899D4 = PAL Character Modifier

NTSC-U Character Modifier: 284794

80283100: 00800004 00010100 01000000 01010100
80283110: 01000100 01000000 01000101 00000100
80283120: 01000001 00000000 00000000 00000000
80283130: 00000000 00000000 00000000 00000000
80283140: 00000000 00000000 00000000 00000000
80283150: 00000000 00000000 00000000 00000000
80283160: ???????? 00000000 00000DE0 02000000


The following codes already exists for the US version:

- Partner Is Luis Sera (Disc 1)
- Cows/Crows/Chickens Are Replaced With Island Security (Disc 1)
- Leon Always Wears Bomber Jacket (Disc 1)

e.g.

Partner Is Luis Sera (Disc 1) [Y.S.]
7VBW-4QDC-UJTNF
9JTB-2ZYJ-3EGQ9
1GPF-36B9-R1FHT

Cows Are Replaced With Island Security (Disc 1) [Jay007]
FQUW-D192-0YU53
NHQ5-2BYQ-HD81A
5C65-EMXC-NAU8X
Jahwork
Posts: 2
Joined: Sat Nov 02, 2019 11:49 pm

Re: RE4 GC AR PAL to NTSC/U

Post by Jahwork » Sun Nov 03, 2019 12:49 pm

Please help me i dont know to use this codes in US version... help me please

I want this codes converted to RE4 NTSC/U Version

Play As Hunk In Main Game (Mercenaries Equipment)
04018C70 38800003
04018C74 480003D0
0405B4DC 4800013C
002899D4 00000003

Play As Krauser In Main Game (Mercenaries Equipment)
04018C70 38800004
04018C74 480003D0
0405B4DC 4800013C
002899D4 00000004

Play As Wesker In Main Game (Mercenaries Equipment)
04018C70 38800005
04018C74 480003D0
0405B4DC 4800013C
002899D4 00000005

No Radio Transmissions
0405B4DC 4800013C
Post Reply