Mario Golf: Toadstool Tour (GCN/WIIRD/PAL)

Game Hacks, Trainers, Cheats

Moderator: Ralf@gc-forever

Post Reply
Ralf@gc-forever
Posts: 2939
Joined: Sun Mar 16, 2014 9:31 am

Mario Golf: Toadstool Tour (GCN/WIIRD/PAL)

Post by Ralf@gc-forever » Thu Apr 24, 2014 12:58 pm

Mario Golf: Toadstool Tour [GFTP01]

Code: Select all


(m) [CodeJunkies & Ralf]
C6054F68 800018A8
C6079254 800018A8
21303110 80010014
C7303124 800018A8
E2000001 80008000

Enable 60Hz Mode [Ralf]
0416A434 00000014
0216A43C 000001C0
0216A440 00000010
0216A444 000001C0

16:9 Aspect Ratio (Widescreen) [Ralf]
042EB2D8 3FE38E39
201D43F0 00000001
042EB2D8 3F9BE76D
E2000001 80008000

Ring Attack: All Rings Cleared [Ralf]
204568E4 4182015C
044568E8 3B400000
E2000001 80008000

Ring Attack: Always One Ring To Clear [Ralf]
204568E4 4182015C
044568E8 3B400001
E2000001 80008000

HUD On/Off (Press Z + DPad Up/Down) [Ralf]
282EA728 00000014
024FA9FC 00000000
E2000001 80008000
282EA728 00000018
024FA9FC 00000101
E2000001 80008000


Wind Direction Modifier [Ralf]
044FA930 xxxxxxxx - Wind Direction (IEEE-754 SP Floating-Point Number, 0.00 = 90°, 1.57 = 180°, 3.14 = 270° , 4.71 = 360°)


Wind Speed Modifier [Ralf]
044FA934 xxxxxxxx - Wind Speed m/s (IEEE-754 SP Floating-Point Number)


No Wind [Ralf]
044FA934 00000000

No Rain [Ralf]
044FA938 00000000


Background Music Modifier [Ralf]
04003788 386000xx

xx = Song ID


Song IDs

00 - title
01 - menu
02 - bgm1
03 - bgm2
04 - song1
05 - song2
06 - song3
07 - song4
08 - song5
09 - bgmJan
0A - bgmLake
0B - club
0C - desert
0D - end3
0E - final
0F - kuppa

10 - lesson
11 - mario
12 - mini
13 - pata1
14 - pata2
15 - pata3
16 - replay
17 - resort
18 - ring
19 - rinkan
1A - score
1B - speed
1C - trani
1D - catch
1E - catch1
1F - catch2

20 - catch3
21 - catch4
22 - domi
23 - pabgm
24 - koopacatch
25 - title2


Play Mario Song [Ralf]
04003788 38600011

Ralf@gc-forever
Posts: 2939
Joined: Sun Mar 16, 2014 9:31 am

Re: Mario Golf: Toadstool Tour (GCN/WIIRD/PAL)

Post by Ralf@gc-forever » Wed Aug 31, 2016 6:11 am

Code: Select all


PL1: Enable Perfect Sweet Spot Mode [Ralf]
0050543B 00000001

PL2: Enable Perfect Sweet Spot Mode [Ralf]
0050A63F 00000001

PL3: Enable Perfect Sweet Spot Mode [Ralf]
0050F843 00000001

PL4: Enable Perfect Sweet Spot Mode [Ralf]
00514A47 00000001

PL1: Display Simulation Line Stopping Point [Ralf]
00505435 00000000

PL2: Display Simulation Line Stopping Point [Ralf]
0050A639 00000000

PL3: Display Simulation Line Stopping Point [Ralf]
0050F83D 00000000

PL4: Display Simulation Line Stopping Point [Ralf]
00514A41 00000000

Shot Ignores Bad Terrain [Ralf]
204568E4 4182015C
226E7D80 00000000
226E7D80 00000002
226E7D80 0000000B
046E7D80 00000001
E0000000 80008000

Hole-In-One & Finish Hole (Press R While Ball Is In Air) [Ralf]
282EA728 00000020
046E7E5C 01000100
E2000001 80008000

Game Always Thinks You Land On The Green On/Off (Press Z + DPad Left/Right) [Ralf]
282EA728 00000011
04415524 38000002
E2000001 80008000
282EA728 00000012
04415524 800300B8
E2000001 80008000

No Power Level Error [Ralf]
20417AE8 7C9F2378
04417AD8 38600000
04417ADC 4E800020
E2000001 80008000

Power Level Error Range Modifier [Ralf]
20417AE8 7C9F2378
04417AD8 386000xx
04417ADC 4E800020
E2000001 80008000

xx = Error Range: 00 .. 63 (0 .. 99)

Power Level Error Value Modifier [Ralf]
20417AE8 7C9F2378
04413DB8 3920xxxx
04413DBC 9121001C
E2000001 80008000

xxxx = Error Value: FF9D .. 0000 .. 0063 (-99 .. 0 .. +99)

Crunchewy
Posts: 4
Joined: Sat May 02, 2020 6:54 pm

Re: Mario Golf: Toadstool Tour (GCN/WIIRD/PAL)

Post by Crunchewy » Tue Jun 09, 2020 12:46 am

Does anyone have an NTSC-U Version of the widescreen code? Or any of the other codes. But mostly I want a widescreen code.
User avatar
pofehof
Posts: 4
Joined: Mon Apr 05, 2021 6:14 pm

Re: Mario Golf: Toadstool Tour (GCN/WIIRD/PAL)

Post by pofehof » Mon Apr 12, 2021 6:03 pm

Ralf@gc-forever wrote:
Thu Apr 24, 2014 12:58 pm
Mario Golf: Toadstool Tour [GFTP01]

Code: Select all


(m) [CodeJunkies & Ralf]
C6054F68 800018A8
C6079254 800018A8
21303110 80010014
C7303124 800018A8
E2000001 80008000

Enable 60Hz Mode [Ralf]
0416A434 00000014
0216A43C 000001C0
0216A440 00000010
0216A444 000001C0

16:9 Aspect Ratio (Widescreen) [Ralf]
042EB2D8 3FE38E39
201D43F0 00000001
042EB2D8 3F9BE76D
E2000001 80008000

Ring Attack: All Rings Cleared [Ralf]
204568E4 4182015C
044568E8 3B400000
E2000001 80008000

Ring Attack: Always One Ring To Clear [Ralf]
204568E4 4182015C
044568E8 3B400001
E2000001 80008000

HUD On/Off (Press Z + DPad Up/Down) [Ralf]
282EA728 00000014
024FA9FC 00000000
E2000001 80008000
282EA728 00000018
024FA9FC 00000101
E2000001 80008000


Wind Direction Modifier [Ralf]
044FA930 xxxxxxxx - Wind Direction (IEEE-754 SP Floating-Point Number, 0.00 = 90°, 1.57 = 180°, 3.14 = 270° , 4.71 = 360°)


Wind Speed Modifier [Ralf]
044FA934 xxxxxxxx - Wind Speed m/s (IEEE-754 SP Floating-Point Number)


No Wind [Ralf]
044FA934 00000000

No Rain [Ralf]
044FA938 00000000


Background Music Modifier [Ralf]
04003788 386000xx

xx = Song ID


Song IDs

00 - title
01 - menu
02 - bgm1
03 - bgm2
04 - song1
05 - song2
06 - song3
07 - song4
08 - song5
09 - bgmJan
0A - bgmLake
0B - club
0C - desert
0D - end3
0E - final
0F - kuppa

10 - lesson
11 - mario
12 - mini
13 - pata1
14 - pata2
15 - pata3
16 - replay
17 - resort
18 - ring
19 - rinkan
1A - score
1B - speed
1C - trani
1D - catch
1E - catch1
1F - catch2

20 - catch3
21 - catch4
22 - domi
23 - pabgm
24 - koopacatch
25 - title2


Play Mario Song [Ralf]
04003788 38600011

Hello, is there any way that you can make these codes (or a good amount of them, like HUD On/Off and Song Modifier) for the NTSC-U version of the game? Would appreciate it!
Crunchewy wrote:
Tue Jun 09, 2020 12:46 am
Does anyone have an NTSC-U Version of the widescreen code? Or any of the other codes. But mostly I want a widescreen code.
Here's the widescreen code from Dolphin Wiki:

Code: Select all

16:9 Widescreen
0426C7F8 3FCFDF3B
C203E698 00000004
3C803FAA 6084AAAB
90820000 C2220000
ED110232 ED494024
Really hope to see if someone can make the rest of these codes for NTSC-U as well!
N7Kopper
Posts: 19
Joined: Tue May 12, 2015 2:04 pm

Re: Mario Golf: Toadstool Tour (GCN/WIIRD/PAL)

Post by N7Kopper » Tue Jun 11, 2024 9:19 am

Code: Select all

16:9 Aspect Ratio (Widescreen) [Ralf]
042EB2D8 3FE38E39
201D43F0 00000001
042EB2D8 3F9BE76D
E2000001 80008000
I want to use Devolution to run this at 576p with full support for both Bluetooth controllers and GBA connectivity, but its own widescreen patch for the game is really janky. I tried to use GeckoLoader to bake this widescreen patch into the .dol but it's admittedly somewhat beyond my skills right now to discern where and how I should hook it. Do I need the mastercode? Should I glean a hook address from the mastercode? Both? I tried using GCFT along with a hex editor to find a good place to hook, but no dice. I suppose the auto tools would have done the same thing but faster.

As far as I'm aware nobody's tried this before and it might not even work (bear in mind it was cracked and you can generate those silly verification files for any GCM) but if it does work, it would open up some games to be played on Devo better than they are on Nintendont.

Cross-posted to GBATemp.
SuperrSonic wrote: I would've posted this on gc-forever but I lost the password and the password reset system doesn't email me, and I refuse to post on gbatemp anymore.
Since I already went through the trouble of getting the game and testing it I might as well send it your way.

I don't know about those tools you tried, the widescreen code here is very small and it's a bit overkill to inject the gecko code handler to write and check every frame, or several times a frame depending on the hook. So I decided to breakpoint on the address that's checked by the gecko code, and branch to an asm version of the gecko code. That means the execution of the code only occurs every time the game wants to write to that address. It should effectively work the same way as the gecko code but better, though you never really know without testing the whole game.

From what I gather, the code is always writing to make 3D projection widescreen but if the main menu is active it's switched back to 4:3.

Besides the main.dol, this game loads default.dol from the root of the fst, both are identical so you can apply these changes to both of them. However, default.dol seems to be the only one used by the game.

Here's what you need to do:
- Extract default.dol from the game files.
- Open it in a hex editor like HxD.
- Go to dol address 0x818 and you should see the bytes "93 DF 00 10" change them to "48 1C 7E B8"
- Now go to address 0x1C86D0, you should see some debug text, this space is always unused in GC and Wii games so I like to use it for small hacks like this.
- Starting at 0x1C86D0 overwrite the bytes with: 93DF0010 3D20802E 3C003FE3 60008E39 6129B2D8 90090000 3D60801D 616B43F0 800B0000 2F800001 40BE0010 3C003F9B 6000E76D 90090000 4BE38114

Devolution doesn't remove deflicker when forcing progressive scan, so at address 0x167466 you can replace the bytes with 00 00 15 16 15 00 00 to make the game even sharper.
Thank you SuperrSonic for that, and for indulging my rather fringe needs. :geek: Would it be kosher to distribute an xdelta patch that works with the NKit trimmed version of the iso? I made one just in case.
Post Reply