Paper Mario: The Thousand Year Door (GCN/WIIRD/NTSC-U)

Game Hacks, Trainers, Cheats

Moderator: Ralf@gc-forever

User avatar
danielle-e.
Posts: 16
Joined: Sat Dec 12, 2020 9:21 am

Re: Paper Mario: The Thousand Year Door (GCN/WIIRD/NTSC-U)

Post by danielle-e. » Thu Dec 17, 2020 9:53 pm

Zephiles wrote:
Thu Dec 17, 2020 3:02 am
Figured I would post my own version of this code, as mine uses marioPartyEntry instead of marioPartyHello, which allows it to not have to check a bunch of extra stuff to spawn the partner/follower, and also allows it to not have to call partyKill2 to despawn the previous partner/follower:

Code: Select all

$Spawn Any Partner/Follower (L + D-Pad Up) [Zephiles]
C20BC58C 0000000D
806D90B0 80831328
70840048 2C040048
40A20054 80831338
70840048 41A20048
386000xx 3883FFFF
28040012 41810038
3C808014 608412FC
7C8803A6 4E800021
2C030000 41800020
5463103A 388D1BB8
7C64182E 3C80800B
6084ECDC 7C8803A6
4E800021 00000000

xx = Partner/Follower ID

01 = Goombella
02 = Koops
03 = Bobbery
04 = Yoshi
05 = Flurrie
06 = Vivian
07 = Ms. Mowz
08 = Yoshi Egg
09 = Flavio
0A = Punio
0B = Frankly
0C = Gus
0D = Goombella (Follower)
0E = Koops (Follower)
0F = Bobbery (Follower)
10 = Yoshi (Follower)
11 = Flurrie (Follower)
12 = Vivian (Follower)
13 = Ms. Mowz (Follower)
Thanks for the reply and effort Zephiles! I am going to try this code out once we are done with our midterm exams :D i will also try to think of more ideas and suggestions. :) hope i can learn how to do this someday too... :)
User avatar
danielle-e.
Posts: 16
Joined: Sat Dec 12, 2020 9:21 am

Re: Paper Mario: The Thousand Year Door (GCN/WIIRD/NTSC-U)

Post by danielle-e. » Thu Dec 17, 2020 10:00 pm

Ralf@gc-forever wrote:
Wed Dec 16, 2020 10:38 am

Code: Select all


Follower Modifier v1 [Ralf]
06003490 00000040
3BE000xx 806D1BBC
28030000 41820018
88630031 7C1F1840
41820024 38600001
480BB0E5 7FE3FB78
4813DD95 806D1BBC
28030000 41820008
480BB815 480B90C4
040BC58C 4BF46F04

xx = Follower ID

00 - None
08 - Yoshi Egg
09 - Flavio
0A - Punio
0B - Frankly
0C - Gus
0D - Goombella
0E - Koops
0F - Bobbery
10 - Yoshi
11 - Flurrie
12 - Vivian
13 - Ms. Mowz


Follower Modifier v2 (Press L + DPad Left/Right/Up/Down) [Ralf]
20003490 00000000
04003490 3BE00000
E2000001 80008000
06003494 0000003C
806D1BBC 28030000
41820018 88630031
7C1F1840 41820024
38600001 480BB0E5
7FE3FB78 4813DD95
806D1BBC 28030000
41820008 480BB815
480B90C4 00000000
040BC58C 4BF46F04
283CA398 00000041
04003490 3BE000vv
E2000001 80008000
283CA398 00000042
04003490 3BE000ww
E2000001 80008000
283CA398 00000048
04003490 3BE000xx
E2000001 80008000
283CA398 00000044
04003490 3BE000yy
E2000001 80008000

vv = Follower ID 1 (L + DPad Left)
ww = Follower ID 2 (L + DPad Right)
xx = Follower ID 3 (L + DPad Up)
yy = Follower ID 4 (L + DPad Down)

00 - None
08 - Yoshi Egg
09 - Flavio
0A - Punio
0B - Frankly
0C - Gus
0D - Goombella
0E - Koops
0F - Bobbery
10 - Yoshi
11 - Flurrie
12 - Vivian
13 - Ms. Mowz


Yoshi Egg Follower Character Model Modifier [Ralf]
04314528 8xxxxxxx

xxxxxxx = Character Model ID (Default: 02CB1A8 - c_babyyoshi)

Flavio Follower Character Model Modifier [Ralf]
04314550 8xxxxxxx

xxxxxxx = Character Model ID (Default: 02E5EB4 - c_marco)

Punio Follower Character Model Modifier [Ralf]
04314578 8xxxxxxx

xxxxxxx = Character Model ID (Default: 02E5594 - c_pguide)

Frankly Follower Character Model Modifier [Ralf]
043145A0 8xxxxxxx

xxxxxxx = Character Model ID (Default: 02E51C8 - c_kuri_h)

Gus Follower Character Model Modifier [Ralf]
043145C8 8xxxxxxx

xxxxxxx = Character Model ID (Default: 02E50AC - c_monban)

Goombella Follower Character Model Modifier [Ralf]
043145F0 8xxxxxxx

xxxxxxx = Character Model ID (Default: 0421B70 - c_pkr)

Koops Follower Character Model Modifier [Ralf]
04314618 8xxxxxxx

xxxxxxx = Character Model ID (Default: 0421B8C - c_pnk)

Bobbery Follower Character Model Modifier [Ralf]
04314640 8xxxxxxx

xxxxxxx = Character Model ID (Default: 02E5F7C - c_bomt_n)

Yoshi Follower Character Model Modifier [Ralf]
04314668 8xxxxxxx

xxxxxxx = Character Model ID (Default: 02CB1A8 - c_babyyoshi)

Flurrie Follower Character Model Modifier [Ralf]
04314690 8xxxxxxx

xxxxxxx = Character Model ID (Default: 02E4C98 - c_windy)

Vivian Follower Character Model Modifier [Ralf]
043146B8 8xxxxxxx

xxxxxxx = Character Model ID (Default: 02E4AEC - c_vivian)

Ms. Mowz Follower Character Model Modifier [Ralf]
043146E0 8xxxxxxx

xxxxxxx = Character Model ID (Default: 02E4A48 - c_tyutyu)


Remove Follower [Ralf]
04003490 38600001
04003494 480BB101
04003498 480B90F8
040BC58C 4BF46F04

Have Punio As Follower [Ralf]
06003490 00000040
3BE0000A 806D1BBC
28030000 41820018
88630031 7C1F1840
41820024 38600001
480BB0E5 7FE3FB78
4813DD95 806D1BBC
28030000 41820008
480BB815 480B90C4
040BC58C 4BF46F04

Have Luigi As Follower [Ralf]
06003490 00000040
3BE0000A 806D1BBC
28030000 41820018
88630031 7C1F1840
41820024 38600001
480BB0E5 7FE3FB78
4813DD95 806D1BBC
28030000 41820008
480BB815 480B90C4
040BC58C 4BF46F04
04314578 802E4EB8

Follower Modifier (Press L + DPad Left/Right/Up/Down) [Ralf]
20003490 00000000
04003490 3BE00000
E2000001 80008000
06003494 0000003C
806D1BBC 28030000
41820018 88630031
7C1F1840 41820024
38600001 480BB0E5
7FE3FB78 4813DD95
806D1BBC 28030000
41820008 480BB815
480B90C4 00000000
040BC58C 4BF46F04
283CA398 00000041
04003490 3BE0000A
E2000001 80008000
283CA398 00000042
04003490 3BE0000B
E2000001 80008000
283CA398 00000048
04003490 3BE0000C
E2000001 80008000
283CA398 00000044
04003490 3BE00000
E2000001 80008000

L + DPad Left  = Punio
L + DPad Right = Frankly
L + DPad Up    = Gus
L + DPad Down  = None

Replace Gus Follower Character Model With Waitress Model [Ralf]
043145C8 802E610C

Replace Punio Follower Character Model With Shop Puni Model [Ralf]
04314578 802E560C

Again, Thank you! I really enjoy the codes in this forum haha. :D I definitely will have fun making Luigi also follow me around :) :D
User avatar
danielle-e.
Posts: 16
Joined: Sat Dec 12, 2020 9:21 am

i finally remembered my other ideas!

Post by danielle-e. » Thu Dec 17, 2020 11:25 pm

it was a possible audience throw any items/badges code. saw this one on of fatguy703 videos about the 100-pit. it was really cool and amusing haha :D
the second one is luigi is always in the audience. its nice to see luigi in the audience all the time.
last one i can remember mario being possibly the shadow mario (the stolen mario identity, the violet blank mario). a actually liked mario being a shadow more :lol:

and um...thats about it for now. maybe i'll be able to think of other ideas next time. Thanks again to who ever can make this! :)
User avatar
Zephiles
Posts: 23
Joined: Sat Jun 27, 2015 8:39 pm
Contact:

Re: Paper Mario: The Thousand Year Door (GCN/WIIRD/NTSC-U)

Post by Zephiles » Fri Dec 18, 2020 1:20 am

danielle-e. wrote:
Thu Dec 17, 2020 9:53 pm
Zephiles wrote:
Thu Dec 17, 2020 3:02 am
Figured I would post my own version of this code, as mine uses marioPartyEntry instead of marioPartyHello, which allows it to not have to check a bunch of extra stuff to spawn the partner/follower, and also allows it to not have to call partyKill2 to despawn the previous partner/follower:

Code: Select all

$Spawn Any Partner/Follower (L + D-Pad Up) [Zephiles]
C20BC58C 0000000D
806D90B0 80831328
70840048 2C040048
40A20054 80831338
70840048 41A20048
386000xx 3883FFFF
28040012 41810038
3C808014 608412FC
7C8803A6 4E800021
2C030000 41800020
5463103A 388D1BB8
7C64182E 3C80800B
6084ECDC 7C8803A6
4E800021 00000000

xx = Partner/Follower ID

01 = Goombella
02 = Koops
03 = Bobbery
04 = Yoshi
05 = Flurrie
06 = Vivian
07 = Ms. Mowz
08 = Yoshi Egg
09 = Flavio
0A = Punio
0B = Frankly
0C = Gus
0D = Goombella (Follower)
0E = Koops (Follower)
0F = Bobbery (Follower)
10 = Yoshi (Follower)
11 = Flurrie (Follower)
12 = Vivian (Follower)
13 = Ms. Mowz (Follower)
Thanks for the reply and effort Zephiles! I am going to try this code out once we are done with our midterm exams :D i will also try to think of more ideas and suggestions. :) hope i can learn how to do this someday too... :)
I just fixed a bug with this code, in which it wouldn't spawn a partner that wasn't in the pause menu. You'll wanna go review the code again, as the quote apparently does not update from the original post.
TTYD Speedrunner
User avatar
Zephiles
Posts: 23
Joined: Sat Jun 27, 2015 8:39 pm
Contact:

Re: NPCs to follow Mario everywhere?

Post by Zephiles » Fri Dec 18, 2020 1:23 am

danielle-e. wrote:
Sat Dec 12, 2020 10:05 am
My request or suggestion (for science!) :lol: :

The 101 Punies can follow you if you spawn them outside the tree and in other places. Imagine Mario running around Glitzville, The Poshley Stage, or even the Moon and Palace of Shadow chapters with all 101 Punies following him everywhere. Can also be separated to 1 Puni like the generic Puni, Petuni, Puniper, Jabble, or Elder. Maybe a Jabbi version too would be nice. I dunno if this means the Puni counter on the side would also appear, but hopefully won't be there to block the side of the screen. Maybe you guys could just go all out if you had enough free time too and add the Hidden Shop Puni Guy (forgot his name sorry) and the 100-Pit Mover Puni Guy. Hell, pretty much any or every NPC. :lol: I just think its so fun to have NPCs following Mario everywhere. :lol: Especially in the worst possible places

So far this is the only one in my mind right now since it already seems like a tough code to make in my opinion. Hopefully this forum isn't dead yet because I really love TTYD and all the hacking shenanigans happening here. If were just done in school and had more time to learn how to do modding and hacking, I would love to practice someday. Gotta finish studies first (near graduating)

Anyone who is also available to try out my suggestion is ok. I just wanna know if this is possible. Sorry for the long wall of text and thanks in advance :lol: :D
Having the punies follow you anywhere would likely not be a simple task. The code for them is stored within a rel file that is only used for the Great Tree, and it is unloaded from memory when you leave the tree. It is possible to keep it loaded when leaving the tree, but even then someone would need to look into how the punies work in general, and figure out what functions need to run to keep them loaded.
TTYD Speedrunner
User avatar
Zephiles
Posts: 23
Joined: Sat Jun 27, 2015 8:39 pm
Contact:

Re: i finally remembered my other ideas!

Post by Zephiles » Fri Dec 18, 2020 2:47 am

danielle-e. wrote:
Thu Dec 17, 2020 11:25 pm
it was a possible audience throw any items/badges code. saw this one on of fatguy703 videos about the 100-pit. it was really cool and amusing haha :D

Code: Select all

$Audience Throws Random Items/Badges [Zephiles]
041A5410 2C00007E
041A541C 60000000
C21A5C70 00000007
386000D5 3C808000
60845DA0 7C8803A6
4E800021 3883FF92
28040003 40A1FFE4
3863007E 90660010
7F83E378 38800007
60000000 00000000
C21A5424 00000007
80180010 2C0000EC
41A00024 3C60800D
60635738 7C6803A6
4E800021 2C0300C8
38600001 41A00008
38600000 2C030000
60000000 00000000
TTYD Speedrunner
Ralf@gc-forever
Posts: 1858
Joined: Sun Mar 16, 2014 9:31 am

Re: Paper Mario: The Thousand Year Door (GCN/WIIRD/NTSC-U)

Post by Ralf@gc-forever » Fri Dec 18, 2020 8:52 pm

Code: Select all


Very Excited Audience [Ralf]
0419289C 60000000
041928A0 38600048

Same Audience Characters [Ralf]
041A64C0 60000000

Mixed Audience Characters [Ralf]
041A64C0 4800000C

Luigi Is Almost In The Audience [Ralf]
041A6900 48000010

User avatar
danielle-e.
Posts: 16
Joined: Sat Dec 12, 2020 9:21 am

Re: NPCs to follow Mario everywhere?

Post by danielle-e. » Sun Dec 20, 2020 3:47 am

Zephiles wrote:
Fri Dec 18, 2020 1:23 am
danielle-e. wrote:
Sat Dec 12, 2020 10:05 am
My request or suggestion (for science!) :lol: :

The 101 Punies can follow you if you spawn them outside the tree and in other places. Imagine Mario running around Glitzville, The Poshley Stage, or even the Moon and Palace of Shadow chapters with all 101 Punies following him everywhere. Can also be separated to 1 Puni like the generic Puni, Petuni, Puniper, Jabble, or Elder. Maybe a Jabbi version too would be nice. I dunno if this means the Puni counter on the side would also appear, but hopefully won't be there to block the side of the screen. Maybe you guys could just go all out if you had enough free time too and add the Hidden Shop Puni Guy (forgot his name sorry) and the 100-Pit Mover Puni Guy. Hell, pretty much any or every NPC. :lol: I just think its so fun to have NPCs following Mario everywhere. :lol: Especially in the worst possible places

So far this is the only one in my mind right now since it already seems like a tough code to make in my opinion. Hopefully this forum isn't dead yet because I really love TTYD and all the hacking shenanigans happening here. If were just done in school and had more time to learn how to do modding and hacking, I would love to practice someday. Gotta finish studies first (near graduating)

Anyone who is also available to try out my suggestion is ok. I just wanna know if this is possible. Sorry for the long wall of text and thanks in advance :lol: :D
Having the punies follow you anywhere would likely not be a simple task. The code for them is stored within a rel file that is only used for the Great Tree, and it is unloaded from memory when you leave the tree. It is possible to keep it loaded when leaving the tree, but even then someone would need to look into how the punies work in general, and figure out what functions need to run to keep them loaded.
Derp, i knew it, i guess the 101 punies really cant get out of their tree haha :lol: had a bit of a hunch too. Hopefully when i am working in the future and have enough time and/or money, maybe i can try to find a short course (online or physical) about coding and stuff. My course has nothing to do with computer programming and related subjects so knowing the basics about coding would be extremely important. Thanks again for doing my requests :D
User avatar
danielle-e.
Posts: 16
Joined: Sat Dec 12, 2020 9:21 am

Re: i finally remembered my other ideas!

Post by danielle-e. » Sun Dec 20, 2020 3:55 am

Zephiles wrote:
Fri Dec 18, 2020 2:47 am
danielle-e. wrote:
Thu Dec 17, 2020 11:25 pm
it was a possible audience throw any items/badges code. saw this one on of fatguy703 videos about the 100-pit. it was really cool and amusing haha :D

Code: Select all

$Audience Throws Random Items/Badges [Zephiles]
041A5410 2C00007E
041A541C 60000000
C21A5C70 00000007
386000D5 3C808000
60845DA0 7C8803A6
4E800021 3883FF92
28040003 40A1FFE4
3863007E 90660010
7F83E378 38800007
60000000 00000000
C21A5424 00000007
80180010 2C0000EC
41A00024 3C60800D
60635738 7C6803A6
4E800021 2C0300C8
38600001 41A00008
38600000 2C030000
60000000 00000000
thank you, now i wont have to worry about the crowd throwing trash at me :lol:
Ralf@gc-forever
Posts: 1858
Joined: Sun Mar 16, 2014 9:31 am

Re: Paper Mario: The Thousand Year Door (GCN/WIIRD/NTSC-U)

Post by Ralf@gc-forever » Sun Dec 20, 2020 9:52 am

Code: Select all


Stage Hazard Codes

Enable Falling Over Stage Set (Foreground) [Ralf]
0410551C 3BA00001

Disable Falling Over Stage Set (Foreground) [Ralf]
04105604 48000008

Enable Falling Over Stage Set (Background) [Ralf]
041055D4 48000014

Disable Falling Over Stage Set (Background) [Ralf]
0410561C 48000008

Enable Falling Over Stage Set (Edges) [Ralf]
04105514 3B800001

Disable Falling Over Stage Set (Edges) [Ralf]
04105610 48000008

Enable Stage Sprayer Targeting [Ralf]
04105634 48000014

Disable Stage Sprayer Targeting [Ralf]
04105648 60000000

Enable Fog & Stage Sprayer Hazards [Ralf]
0410565C 48000014

Disable Fog & Stage Sprayer Hazards [Ralf]
04105674 60000000

Enable Falling Down Objects [Ralf]
041056D4 60000000

Disable Falling Down Objects [Ralf]
041056D4 48000008

Enable All Stage Hazards [Ralf]
04105514 3B800001
0410551C 3BA00001
041055D4 48000014
04105634 48000014
0410565C 48000014
04105688 48000014
041056D4 60000000

Disable All Stage Hazards [Ralf]
04105604 48000008
04105610 48000008
0410561C 48000008
04105648 60000000
04105674 60000000
0410569C 60000000
041056D4 48000008

Lesser Rate Of Stage Hazards [Ralf]
C2105530 00000002
7C641A14 1C630002
60000000 00000000
041055C4 386000C8
04105624 386000C8
0410564C 386000C8
04105678 386000C8
041056C4 386000C8

Higher Rate Of Stage Hazards [Ralf]
C2105530 00000002
7C641A14 38000002
7C6303D6 00000000
041055C4 38600032
04105624 38600032
0410564C 38600032
04105678 38600032
041056C4 38600032

User avatar
danielle-e.
Posts: 16
Joined: Sat Dec 12, 2020 9:21 am

Re: Paper Mario: The Thousand Year Door (GCN/WIIRD/NTSC-U)

Post by danielle-e. » Tue Dec 22, 2020 9:05 am

more ideas and suggestions (finally it is our school xmas vacation :lol: )

1. audience always throwing stuff (different from the already available "audience throwing badges and items instead of trash" by Zephiles, and will be fun to use together)

2. no more intro - slot save selection will be the starting place when the game is first played? because the intro does take more time to load all the time. especially when trying out new codes. kinda reminds me of the other game silly melee (smash bros melee mod) where when you open the game in dolphin it is already immediately in character selection mode :lol: (only if possible though)

3. i cant find the character id for peach with ponytail. i tried to find it but it doesn't seem to be there? if anyone has free time, please post it here. been looking for it for a while but i cant find it.

4.maybe please help me with the japanese character id names too. doesnt have to be the exact name, just need a rough english name to distinguish which is which.

so far these were the character ids i tried and saw the sprite already: (the codes are not mine btw, just trying to place an english label so we can figure out who is who :lol: )

modifier npc (also, sorry they are not in order...i just tried randomly besides the first peach ones but still cant find ponytail peach)

17F8CF3 - peach beta shadow queen
02E645C - peach face down
02E4FBC - peach
02c1c40 - peach back
02E64A0 - shadow peach
17f9d66 - peach the poster
02E5584 - adult jabbies
02E55DC - jabble baby
02E6E5C - yellow daisy
02e4d98 - xnaut
02E5620 - mover puni
02E444C - toad kid
02E4848 - dupree
02E4430 - toad fem purple
02E604C - fat toad
02E61A0 - Common penguin
02E6034 - toodles
02E51A4 - Francesca
02E55AC - petuni
02E5574 - common puni
02E622C - bow boo
02c18b4 - mario sitting
02C1C30 - 2Bit mario
02E5918 - pink travel TOAD sister
02e64c0 - shadow queen ending cutscene
02e5cd4 - doopmario
02E6B94 - black swoop bat
041FD6C - tiny yellow star with black eyes
02f3fa8 - mario normal
02E7254 - xnaut
02e4de4 - xnaut phd
02E4D98 - plain xnaut
02E5DE4 - atomic boo
17F96CF - goombario
02E5CD4 - dooplimario (doopliss as mario)
02E5264 - rougeport sewer toad bartender
02E6BD0 - green swoop bat
02F9B28 - BOBBERY TINY BOMB SQUAD attack bomb (unlighted)
02E7148 - YUX green
02E57C0 - jolene juice shop
02E56B4 - rawk hawk

i just used notepad so i can write this down and my controls in dolphin has caps as one of the gamecube control buttons, so capslock kinda just happens when i type :lol: i will also try to update this list once i tried more character ids so it can help others too. in english, the character ids might be easier to differetiate. then i will just see if i can alphabetize them once completed. please just post the ponytail peach char. id here i kinda got impatient trying to find it haha :lol:

5. last idea/request/suggestion as of today, mario is a shadow (the chapter 4 mario where he is just a blank shadow) because he looked cooler to me that way. :D

thanks again and have a nice day :)

edit: i made a file in excel to make the list organized but i dunno how to attach the file. there doesn't seem to be any button for it here. is it even possible here (attach file or image from pc)? so you guys have a copy of what i did
User avatar
danielle-e.
Posts: 16
Joined: Sat Dec 12, 2020 9:21 am

what programming software you guys use?

Post by danielle-e. » Wed Dec 23, 2020 12:39 am

what programming software do you guys use anyway? i downloaded this program called visual basic 2019 because really wanna learn how to make my own codes just like you guys too but programming is not even my course. still want to learn though, so i downloaded it anyway. this way i can learn how to do stuff too just like you guys and contribute a little here too.

if you guys have some basic tips as well, let us know here haha. this way anyone who would like to read them (i certainly do too) can have a good idea how to start or do the basics. thanks again
User avatar
Zephiles
Posts: 23
Joined: Sat Jun 27, 2015 8:39 pm
Contact:

Re: Paper Mario: The Thousand Year Door (GCN/WIIRD/NTSC-U)

Post by Zephiles » Wed Dec 23, 2020 3:14 am

danielle-e. wrote:
Tue Dec 22, 2020 9:05 am
2. no more intro - slot save selection will be the starting place when the game is first played? because the intro does take more time to load all the time. especially when trying out new codes. kinda reminds me of the other game silly melee (smash bros melee mod) where when you open the game in dolphin it is already immediately in character selection mode :lol: (only if possible though)
There's a bunch of stuff that occurs during the intro, including the screen being repositioned. Skipping all of that isn't exactly a simple task, as someone would need to figure out the proper way to do all of that stuff before booting to the title screen.
TTYD Speedrunner
User avatar
Zephiles
Posts: 23
Joined: Sat Jun 27, 2015 8:39 pm
Contact:

Re: what programming software you guys use?

Post by Zephiles » Wed Dec 23, 2020 3:21 am

danielle-e. wrote:
Wed Dec 23, 2020 12:39 am
what programming software do you guys use anyway? i downloaded this program called visual basic 2019 because really wanna learn how to make my own codes just like you guys too but programming is not even my course. still want to learn though, so i downloaded it anyway. this way i can learn how to do stuff too just like you guys and contribute a little here too.

if you guys have some basic tips as well, let us know here haha. this way anyone who would like to read them (i certainly do too) can have a good idea how to start or do the basics. thanks again
Most of my work is done in a text editor, specifically Notepad++. For viewing the game's code, I usually use Dolphin's debugger to view the assembly, and also an incomplete Ghidra decomp if I want a hint at what a function would look like. Both of these also benefit a lot from symbol maps, which basically tell where functions and variables are in memory. Symbol maps for this game specifically were found on a JP demo disc and later diffed to retail, so we have most of the function and variable names in the game (there are some additional functions/variables in retail that were not in the demo, so we don't have names for those). So combining the symbol maps with Dolphin's debugger and/or Ghidra makes for a good environment for reverse engineering the game, and thus figuring out what needs to be changed to make certain things happen.

If you're looking to get the symbol maps and whatnot, then you should PM me, as it would be easier to discuss stuff in a social messaging app such as Discord.
Last edited by Zephiles on Wed Dec 23, 2020 3:23 am, edited 1 time in total.
TTYD Speedrunner
User avatar
danielle-e.
Posts: 16
Joined: Sat Dec 12, 2020 9:21 am

Re: Paper Mario: The Thousand Year Door (GCN/WIIRD/NTSC-U)

Post by danielle-e. » Wed Dec 23, 2020 3:23 am

heres a chart i did of the onces i tried already. from excel btw. this way we know which chacter is which: (codes not made by me. i think ralf@gc-forever made them) just trying to identify which npc model is which



CHARACTER ID CODE JAPANESE ID LABEL
02E6AEC c_sinnosuke GREY BALD CLEFT
02E6B94 c_cyuru BLACK SWOOP BAT
02E7674 c_giant VIOLET GIANT BOB-OMB
02E7330 c_uranoko SHADY KOOPA
02E6BD0 c_basabasa_g GREEN SWOOP BAT
02E64A0 c_b_peach_b SHADOW QUEEN PEACH
02E4FBC c_peach PEACH
02E645C c_peach_f PEACH PRONE ON FLOOR
02c1c40 c_peach_r PEACH BACK VIEW
17F8CF3 c_b_peach BETA SHADOW PEACH
02e64c0 c_q_kage SHADOW QUEEN DEFEATED CUTSCENE
17f9d66 c_p_peach PEACH THE POSTER
02F2A94 c_q_kage_m SHADOW QUEEN SPIRIT
02E55DC c_tchibi JABBLE THE BABY JABBI
02E5620 c_pjoho 100-PIT MOVER PUNI
02E5584 c_toge COMMON JABBI
02E5574 c_puni COMMON PUNI
02E55AC c_psister PUNI SISTER PETUNI
02e5e70 c_bubusan TWILIGHT TOWN PIGGY
02e5cd4 c_mario DOOPLI-MARIO
02E6E5C c_kpansy YELLOW RARE DAYZEE
02E5DE4 c_atmic_trs ATOMIC BOO
02E5C3C c_f_child_b TWILIGHT TOWN EVE'S CHILD (ORANGE)
02E7254 c_zako_kn X-NAUT
02e4de4 c_zako_m X-NAUT PHD
02E7274 c_zako_km X-NAUT PHD
02e4d98 c_zako_n X-NAUT
02F2A3C c_shuryo_p GREEN TINY YUX ASSISTANT
17FC68D t_magnum MAGNUS VON GRAPPLE BETA
17FC6A0 t_magnum2 MAGNUS VON GRAPPLE BETA 2
02E56B4 c_bred_h RAWK HAWK
02E5994 c_report GLITZ PIT REPORTER
02E57C0 c_bijo JOLENE OF JUICE SHOP
02E5264 c_barten ROGUEPORT SEWERS BARTENDER
02E61A0 c_ta-kun COMMON POSHLEY PENGUIN
02E6164 c_konari BUB THE SPOILED BOB-OMB KID
02E6034 c_rose TOODLES THE TOAD
02E604C c_kinodebu FAT TOAD FROM TRAIN
02E6248 c_sebaschan SEBASTIAN BUTLER BOO
02BF46C c_nazo MAP VENDOR FROM INTRO SCENE
02E4E1C c_paretta FLYING MAIL KOOPA FROM INTRO SCENE
02E4E50 c_mokomoko LUMPY THE MOUSE
02E4430 c_kinopiko_v PURPLE TOAD GIRL
02E444C c_kokinopio TOAD KID
02E51A4 c_m_ojo PIANTA FRANCESCA
041FD6C hoshi TINY YELLOW STAR WITH BLACK EYES
02E4A88 c_gazigazi FISH NIBBLER FROM WATER
02C1C30 d_mario 2-BIT NOSTALGIA MARIO
02c18b4 e_mario SITTING MARIO
02F9B28 c_bakudan BOBBERY TINY BOMB SQUAD
02F9D40 c_koura SHELL SHIELD
17F96CF c_kurio GOOMBARIO
02E622C c_resaresa LADY BOW BOO
02E46D4 c_majinai MERLEE
02E5930 c_dance_k GREEN TRAVEL TOAD SISTER
02E5918 c_dance_p PINK TRAVEL TOAD SISTER
02E4848 c_kiza DUPREE
02E5F14 c_odo_k WORRIED GREEN SAILOR TOAD
17FC675 t_korutesu BETA CORTEZ

will update when tried more modifier codes :)
User avatar
danielle-e.
Posts: 16
Joined: Sat Dec 12, 2020 9:21 am

Re: what programming software you guys use?

Post by danielle-e. » Wed Dec 23, 2020 3:36 am

Zephiles wrote:
Wed Dec 23, 2020 3:21 am
danielle-e. wrote:
Wed Dec 23, 2020 12:39 am
what programming software do you guys use anyway? i downloaded this program called visual basic 2019 because really wanna learn how to make my own codes just like you guys too but programming is not even my course. still want to learn though, so i downloaded it anyway. this way i can learn how to do stuff too just like you guys and contribute a little here too.

if you guys have some basic tips as well, let us know here haha. this way anyone who would like to read them (i certainly do too) can have a good idea how to start or do the basics. thanks again
Most of my work is done in a text editor, specifically Notepad++. For viewing the game's code, I usually use Dolphin's debugger to view the assembly, and also an incomplete Ghidra decomp if I want a hint at what a function would look like. Both of these also benefit a lot from symbol maps, which basically tell where functions and variables are in memory. Symbol maps for this game specifically were found on a JP demo disc and later diffed to retail, so we have most of the function and variable names in the game (there are some additional functions/variables in retail that were not in the demo, so we don't have names for those). So combining the symbol maps with Dolphin's debugger and/or Ghidra makes for a good environment for reverse engineering the game, and thus figuring out what needs to be changed to make certain things happen.

If you're looking to get the symbol maps and whatnot, then you should PM me, as it would be easier to discuss stuff in a social messaging app such as Discord.
yikes, i guess i have a lot to learn! just the names of the programs make me feel nervous that i dunno if i can find all of them :lol: but i will see to it that i can learn them in the future. Also, i didnt even know that dolphin has a debugger. i may have to find definitions of terms first to understand everything :lol: as expected though, programming seems very technical after all! i dunno if my xmas vacation is enough to learn but at least im gonna graduate soon in my school...then maybe once i have some budget or time, i can take a short course about programming so i can also understand the programs you have also suggested better and have an idea of what to do.

Guess i better find the programs first, hopefully they have a free version :lol: my country currency here is at a disadvantage if its the paid software type
lots of things for me to do after my semester then. pretty excited to learn about coding even more now. :D
i dont think i should look get the maps or stuff yet because downloading too much for my laptop might slow it down (especially since i dont even know anything about the technical terms of programming and whatnot :lol:) but i will see to it to at least look for some introduction to the c++ lessons when i can. im curious of the ghidra program thing too. ill go research about it for a while to get an idea or preview of what the software would look like.

eeee, i am even more excited to learn and more AND more excited once i understand :lol: :lol: :lol:
User avatar
Zephiles
Posts: 23
Joined: Sat Jun 27, 2015 8:39 pm
Contact:

Re: what programming software you guys use?

Post by Zephiles » Wed Dec 23, 2020 3:41 am

Zephiles wrote:
Wed Dec 23, 2020 3:21 am
danielle-e. wrote:
Wed Dec 23, 2020 12:39 am
what programming software do you guys use anyway? i downloaded this program called visual basic 2019 because really wanna learn how to make my own codes just like you guys too but programming is not even my course. still want to learn though, so i downloaded it anyway. this way i can learn how to do stuff too just like you guys and contribute a little here too.

if you guys have some basic tips as well, let us know here haha. this way anyone who would like to read them (i certainly do too) can have a good idea how to start or do the basics. thanks again
Most of my work is done in a text editor, specifically Notepad++. For viewing the game's code, I usually use Dolphin's debugger to view the assembly, and also an incomplete Ghidra decomp if I want a hint at what a function would look like. Both of these also benefit a lot from symbol maps, which basically tell where functions and variables are in memory. Symbol maps for this game specifically were found on a JP demo disc and later diffed to retail, so we have most of the function and variable names in the game (there are some additional functions/variables in retail that were not in the demo, so we don't have names for those). So combining the symbol maps with Dolphin's debugger and/or Ghidra makes for a good environment for reverse engineering the game, and thus figuring out what needs to be changed to make certain things happen.

If you're looking to get the symbol maps and whatnot, then you should PM me, as it would be easier to discuss stuff in a social messaging app such as Discord.
I forgot to mention scripts: TTYD uses a lot of scripts that are made using a custom scripting engine, which cannot be viewed properly by Dolphin nor Ghidra. So for these we need additional software.

For viewing these scripts, a person by the name of PistonMiner created a program called ttydasm, which can disassemble scripts and output them in C-style code. The source code for this can be found here, an exe for it can be found here, and mnemonics for each instruction can be found here.

For creating these scripts, currently our only tool is a set of C++ macros, which can be found here. Some examples of these macros in use can be found here (Note that Jdaster uses a slightly modified evt_cmd.h file).
TTYD Speedrunner
User avatar
danielle-e.
Posts: 16
Joined: Sat Dec 12, 2020 9:21 am

Re: what programming software you guys use?

Post by danielle-e. » Wed Dec 23, 2020 12:11 pm

Zephiles wrote:
Wed Dec 23, 2020 3:41 am
Zephiles wrote:
Wed Dec 23, 2020 3:21 am
danielle-e. wrote:
Wed Dec 23, 2020 12:39 am
what programming software do you guys use anyway? i downloaded this program called visual basic 2019 because really wanna learn how to make my own codes just like you guys too but programming is not even my course. still want to learn though, so i downloaded it anyway. this way i can learn how to do stuff too just like you guys and contribute a little here too.

if you guys have some basic tips as well, let us know here haha. this way anyone who would like to read them (i certainly do too) can have a good idea how to start or do the basics. thanks again
Most of my work is done in a text editor, specifically Notepad++. For viewing the game's code, I usually use Dolphin's debugger to view the assembly, and also an incomplete Ghidra decomp if I want a hint at what a function would look like. Both of these also benefit a lot from symbol maps, which basically tell where functions and variables are in memory. Symbol maps for this game specifically were found on a JP demo disc and later diffed to retail, so we have most of the function and variable names in the game (there are some additional functions/variables in retail that were not in the demo, so we don't have names for those). So combining the symbol maps with Dolphin's debugger and/or Ghidra makes for a good environment for reverse engineering the game, and thus figuring out what needs to be changed to make certain things happen.

If you're looking to get the symbol maps and whatnot, then you should PM me, as it would be easier to discuss stuff in a social messaging app such as Discord.
I forgot to mention scripts: TTYD uses a lot of scripts that are made using a custom scripting engine, which cannot be viewed properly by Dolphin nor Ghidra. So for these we need additional software.

For viewing these scripts, a person by the name of PistonMiner created a program called ttydasm, which can disassemble scripts and output them in C-style code. The source code for this can be found here, an exe for it can be found here, and mnemonics for each instruction can be found here.

For creating these scripts, currently our only tool is a set of C++ macros, which can be found here. Some examples of these macros in use can be found here (Note that Jdaster uses a slightly modified evt_cmd.h file).
thank you, i am going to study the basics of c++ first which may take a while haha. i will take note of the this programs that you have also told me so that someday once i could at least understand c++, i can understand the programs you named here a bit more easier. when i finally improve, i will do my best contribute also in this forum. i would be happy to be able to do stuff here too someday. :D
Ralf@gc-forever
Posts: 1858
Joined: Sun Mar 16, 2014 9:31 am

Re: Paper Mario: The Thousand Year Door (GCN/WIIRD/NTSC-U)

Post by Ralf@gc-forever » Sun Dec 27, 2020 9:18 am

Code: Select all


Mystery: Random Item Set Modifier [Ralf]
0436AB44 000000xx - Item ID 01 (Default: 0094 - Mushroom)
0436AB48 000000xx - Item ID 02 (Default: 009A - Honey Syrup)
0436AB4C 000000xx - Item ID 03 (Default: 009C - Jammin' Jelly)
0436AB50 000000xx - Item ID 04 (Default: 0087 - Volt Shroom)
0436AB54 000000xx - Item ID 05 (Default: 0088 - Repel Cape)
0436AB58 000000xx - Item ID 06 (Default: 009D - Slow Shroom)
0436AB5C 000000xx - Item ID 07 (Default: 009E - Gradual Syrup)
0436AB60 000000xx - Item ID 08 (Default: 0096 - Ultra Shroom)
0436AB64 000000xx - Item ID 09 (Default: 0098 - Dried Shroom)
0436AB68 000000xx - Item ID 10 (Default: 0081 - Thunder Rage)
0436AB6C 000000xx - Item ID 11 (Default: 0084 - Fire Flower)
0436AB70 000000xx - Item ID 12 (Default: 0082 - Shooting Star)
0436AB74 000000xx - Item ID 13 (Default: 008C - Stopwatch)

xx = Item ID

80 - Thunder Bolt (Unused)
81 - Thunder Rage
82 - Shooting Star
84 - Fire Flower
87 - Volt Shroom
88 - Repel Cape
8C - Stopwatch
94 - Mushroom
96 - Ultra Shroom
98 - Dried Shroom
9A - Honey Syrup
9C - Jammin' Jelly
9D - Slow Shroom
9E - Gradual Syrup


Mystery: Enable Unused Thunder Bolt Item [Ralf]
0436AB78 00000080

Mystery: Alt. Random Item Set #1 (Restorative Items Only) [Ralf]
0436AB50 00000096
0436AB54 00000098
0436AB60 00000000

Mystery: Alt. Random Item Set #2 (Offensive/Defensive Items Only) [Ralf]
0436AB44 00000081
0436AB48 00000084
0436AB4C 00000082
0436AB58 00000080
0436AB5C 0000008C
0436AB60 00000000

Mystery: Replace Ultra Shroom With Super Heart (Max HP & FP) [Ralf]
0436A7BC 0000007B
0436A7E8 0000007B
0436A7F0 803AE254
0436AB60 0000007B

Mystery Always Restores Max HP & FP (Mario & Partner) [Ralf]
0436A780 00000057
0436A7AC 00000057
0436A7B4 803AE254
0436AB64 00000000
0836AB44 00000057
20070004 00000000

User avatar
danielle-e.
Posts: 16
Joined: Sat Dec 12, 2020 9:21 am

Re: Paper Mario: The Thousand Year Door (GCN/WIIRD/NTSC-U)

Post by danielle-e. » Mon Dec 28, 2020 8:09 am

Hello, Merry Christmas everyone :]

Just some more ideas/requests from me if you guys are bored and have free time :].

-Mario becomes/is a shadow (even outside ch.4)
-audience giving items more frequently / higher rate or chance audience will throw items?
-ponytail peach for the punio modifier? (still cant find it from game files)
-always have audience (even on the very first fight vs. crump) if possible
-randomized overworld/npc reward items (if possible just in case randomizer and practice codes are not available to be used at the same time) like a minor version of the extreme randomizer by zephiles but only the items are randomized haha :D

thanks! :mrgreen:
Last edited by danielle-e. on Tue Dec 29, 2020 11:47 am, edited 2 times in total.
User avatar
danielle-e.
Posts: 16
Joined: Sat Dec 12, 2020 9:21 am

I am curious: Can Item Randomizer and practice codes be used at the same time?

Post by danielle-e. » Tue Dec 29, 2020 6:00 am

hello zephiles, i am currently using the practice codes you made from your github but i also want to use the item randomizer. is it possible to use them both at the same time? Just wanted to know thanks :D

edit: sorry everyone please disregard this post it is out of topic and i am trying to delete it now but the x button for delete post is not yet appearing. i will keep trying to reload this forum on my computer and maybe eventually it (delete button) will come back. thank you again
Last edited by danielle-e. on Fri Jan 01, 2021 12:02 am, edited 1 time in total.
User avatar
Zephiles
Posts: 23
Joined: Sat Jun 27, 2015 8:39 pm
Contact:

Re: I am curious: Can Item Randomizer and practice codes be used at the same time?

Post by Zephiles » Thu Dec 31, 2020 8:10 pm

danielle-e. wrote:
Tue Dec 29, 2020 6:00 am
hello zephiles, i am currently using the practice codes you made from your github but i also want to use the item randomizer. is it possible to use them both at the same time? Just wanted to know thanks :D
It is not possible to use those two mods at the same time.

Also, this thread is supposed to be about gecko codes, so questions like this shouldn't be posted here.
TTYD Speedrunner
User avatar
Zephiles
Posts: 23
Joined: Sat Jun 27, 2015 8:39 pm
Contact:

Re: Paper Mario: The Thousand Year Door (GCN/WIIRD/NTSC-U)

Post by Zephiles » Thu Dec 31, 2020 8:24 pm

danielle-e. wrote:
Mon Dec 28, 2020 8:09 am
-always have audience (even on the very first fight vs. crump) if possible

Code: Select all

$Audience Always Enabled [Zephiles]
041239EC 60000000
041A173C 4800000C
041A61B4 48000010
041A6CB8 60000000
041A6B70 60000000
041469EC 60000000
041A15D0 60000000
042034BC 60000000
041A14D0 48000014
This code also handles some other things that you normally wouldn't be able to do without any special moves, such as being able to appeal, being able to gain star power (although this doesn't actually matter if you don't have any special moves), and enabling the bingo slots.
TTYD Speedrunner
User avatar
Zephiles
Posts: 23
Joined: Sat Jun 27, 2015 8:39 pm
Contact:

Re: Paper Mario: The Thousand Year Door (GCN/WIIRD/NTSC-U)

Post by Zephiles » Thu Dec 31, 2020 9:43 pm

danielle-e. wrote:
Mon Dec 28, 2020 8:09 am
-audience giving items more frequently / higher rate or chance audience will throw items?
I had to ask Jdaster64 for help with this code, as I'm not very familiar with the battle system:

Code: Select all

$Set Audience Item Throw Rate [Zephiles]
041A5F24 3B80xxxx
041A5F28 48000058

xxxx = Throw Rate
To clarify, this code modifies the rate at which the audience will throw stuff. The lower the value used, the more frequently the audience will throw stuff. The game has a few separate values that it can use for this, but I figured it would be better to just specify one static value to use.

An example would be using a value of 1800, which would mean a rate of 1/1800 per frame. The hex value for 1800 is 0x708, so xxxx would be 0708.
TTYD Speedrunner
User avatar
danielle-e.
Posts: 16
Joined: Sat Dec 12, 2020 9:21 am

Re: I am curious: Can Item Randomizer and practice codes be used at the same time?

Post by danielle-e. » Thu Dec 31, 2020 11:50 pm

Zephiles wrote:
Thu Dec 31, 2020 8:10 pm
danielle-e. wrote:
Tue Dec 29, 2020 6:00 am
hello zephiles, i am currently using the practice codes you made from your github but i also want to use the item randomizer. is it possible to use them both at the same time? Just wanted to know thanks :D
It is not possible to use those two mods at the same time.

Also, this thread is supposed to be about gecko codes, so questions like this shouldn't be posted here.
ok, sorry, i will remove my post about the question. this way it doesnt look out of place. i thought it was ok to ask here haha but thank you for answering me, i will take note of that.
happy new year btw :D

edit: i am trying to look for the x button to delete my previous post about the said off topic but i cant delete the post. i will just keep coming back here and also reloading website to see if i can finally delete the post when the x button is finally available. i am sorry for the inconvenience i caused and am working on it. :)

edit 2: i have tried to request for help from a mod now so maybe they will be able delete my off topic post soon. thanks and happy new year!

edit 3: i have talked to Ralf the moderator, he said it is ok so he wont delete the off topic post because it was only a little bit off topic. I will just try to be more careful and be in topic. thank you :]
Last edited by danielle-e. on Mon Jan 04, 2021 11:15 am, edited 2 times in total.
Post Reply