Super Mario Galaxy 2 [SB4E01]

Started by wiiztec, May 21, 2010, 05:05:58 PM

Previous topic - Next topic

James0x57

Cool, I tried making a "normal ground" code for Twilight Princess. Only managed to get a sort-of-working code though. Nice job ^_^
Don't forget to post 'em on the database!


wiiztec

#91
Nice find dcx2 I took it and made this

surface type selector toggle HOME [dcx2 & wiiztec]
4E00001C 00000000
28750A02 00008000
04039884 482100BD
CC000000 00000001
04039884 38600000
28750A03 00004010
82100005 80002FF0
A8000008 00000006
86000005 00000001
E2000002 00000000
28750A02 00005000
82100005 80002FF0
A8000008 00000006
86000005 0000FFFF
E2000002 00000000
84100005 80002FF0
2C002FF0 00000025
2E002FF0 00001000
80000005 00000000
E2000002 00000000
2C002FF0 00001000
80000005 00000025
2A002FF1 00000001
2A002FF0 0000001B
2A002FF0 0000001C
2A002FF0 00000010
28750A02 00004C00
80000005 00000000
E2000001 00000000
94110005 00000002
E0000000 80008000
when on press C++ to go up & C+- to go down one value
A+B+C = shortcut to normal ground (00)

00(00) normal ground
01(01) instant death (code skips)
02(02) slippery (on slopes)
03(03) can't slip
04(04) get knocked over
05(05) ice (non reflective)
06(06) bouncy
07(07) more bouncy
08(08) even more bouncy
09(09) sand slide
0A(10) lava
0B(11) bouncy again?
0C(12) normal?
0D(13) sand (footprints)
0E(14) reflective
0F(15) electrical
10(16) bubble transport? (causes graphical glitches in some places) (code skips)
11(17) sinking sand
12(18) hurt sand water?
13(19) slippery sliding
14(20) waist deep water
15(21) knee deep water
16(22) ankle deep water
17(23) heel deep water
18(24) spikes
19(25) quick sinking sand
1A(26) snow
1B(27) moving sand (causes crash) (code skips)
1C(28) squizzard's sand pit (causes crash) (code skips)
1D(29) moving blocks (no noticeable effect)
1E(30) sand (no footprints)
1F(31) sinking swamp
20(32) mud
21(33) ice (reflective)
22(34) bouncy again?
23(35) normal?
24(36) metal
25(37) grass (code cycles back to 00 from here)
26(38) cloud (sometimes crashes)
27(39) platform moving around cylindrical planetoid (no noticeable effect)
28(40) boulder boosting ramp (no noticeable effect)
29(41) player disintegrates
2A(42) footprints and dust trail
2B(43) snow (can't slip)

Figure sanding
[spoiler] [/spoiler]

Quick ice
[spoiler] [/spoiler]

Mucky snow
[spoiler][/spoiler]

Polished mud reveals yoshi to be a vampire
[spoiler][/spoiler]

Shocking lava
[spoiler][/spoiler]

Flaming hot water
[spoiler][/spoiler]
If there's any code at all that you want to be button activated, or even able to toggle on & off, and I have the game, just PM me and I'll make it happen

dcx2

Awesome job wiiztec!  I started out trying to make a walk-on-lava code and now we have a complete Ground Roller.

If you want, I could port your final code to a C0 code so it's shorter.

wiiztec

Nah I want it to be easier for non hackers to understand and be easily flexible with button activators

*goes skating on starship mario*
If there's any code at all that you want to be button activated, or even able to toggle on & off, and I have the game, just PM me and I'll make it happen

dcx2

wiiztec: you should use the screenshot tab to get a pic of some cool stuff with your code.

So we can stand and hang on lava, we can also stand on really steep slopes.  We should get a pic of standing on spikes, and ice skating on Planet Mario.

[spoiler]



[/spoiler]

dcx2

#95
Surface Swapper [DCX2]
C2039888 0000000A
48000005 7C8802A6
38840014 7C6418AE
48000038 00000000
00010203 04050607
08090A0B 0C0D0E0F
10111213 14151617
18191A1B 1C1D1E1F
20212223 24252627
28292A2B 2C2D2E2F

80010014 00000000
Use this to replace one surface with another.  It is a lookup table that begins with 00010203 04050607.  Use wiiztec's list.  If you want to replace Starship Mario ground (03) with ice (21), change the 03 to 21.  e.g.

C2039888 0000000A
48000005 7C8802A6
38840014 7C6418AE
48000038 00000000
00010221 04050607
08090A0B 0C0D0E0F
10111213 14151617
18191A1B 1C1D1E1F
20212223 24252627
28292A2B 2C2D2E2F

80010014 00000000


Disassembled:

bl 0x0004       # get pointer to next instruction
mflr r4         # put pointer in r4
addi r4,r4,20   # offset to beginning of Look-Up Table
lbzx r3,r4,r3   # use offset of current surface (r3) as index into LUT
b 0x0038        # skip data section
00000000
00010203 04050607
08090A0B 0C0D0E0F
10111213 14151617
18191A1B 1C1D1E1F
20212223 24252627
28292A2B 2C2D2E2F

lwz r0,20(r1)      # replaced instruction

dcx2

#96
wiiztec surface roller display [DCX2]
C24988CC 00000005
3CA08075 A0A50A02
70A54000 41820010
3CA08004 88A59887
48000008 80BD0030
60000000 00000000
This code is designed to help with using wiiztec's surface roller/modifier.  While holding down C and his code is active, your star bit display value is over-written with the decimal value of the current surface the code is set to.


hook 804988CC
controller: 80750A02
while holding c, lbz [80039887] into r5
else lwz r5,48(r29)


lis r5,-32651
lwz r5,2562(r5)        # (r5) = controller pointer
andi. r5,r5,16384      # is C held down?
beq- cNotDown          # if not, skip
lis r5,-32764      
lbz r5,-26489(r5)      # (r5) = surface pointer
b Finished

cNotDown:
lwz r5,48(r29)         # original code; put star bits into r5

Finished:



By the way, my Surface Swapper is 100% compatible with wiiztec's surface roller.  It swaps after that code runs, so if you don't want a particular surface you can just use the swapper to replace that surface with ground, instead of asking wiiztec to skip that surface in his code.

Finally, I made a No Deadly Surfaces code.  I tried to replace all surfaces that might hurt/kill you with normal ground.  Other surfaces are left alone.

No Deadly Surfaces [DCX2]
C2039888 0000000A
48000005 7C8802A6
38840014 7C6418AE
48000038 00000000
00000203 00050607
0809000B 0C0D0E0F
10000013 14151617
00001A00  001D1E00
20212223 24252627
28292A2B 2C2D2E2F
80010014 00000000


wiiztec

#97
Quote from: dcx2 on June 01, 2010, 04:30:49 AM
wiiztec surface roller display [DCX2]
C24988CC 00000005
3CA08075 A0A50A02
70A54000 41820010
3CA08004 88A59887
48000008 80BD0030
60000000 00000000
This code is designed to help with using wiiztec's surface roller/modifier.  While holding down C and his code is active, your star bit display value is over-written with the decimal value of the current surface the code is set to.

This one displays the surface type in the starbit counter even if my surface type modfier isn't on

surface identifier
C2039888 00000002
3FE08000 987F2FF3
80010014 00000000
C24988CC 00000002
3CA08000 88A52FF3
60000000 00000000
If there's any code at all that you want to be button activated, or even able to toggle on & off, and I have the game, just PM me and I'll make it happen

James0x57

I really want this game! lol Great work guys! =)

@dcx2: LUT=awesome


wiiztec

#99
default flying speed is 2.5 times faster + hold down to accelerate while flying
exponential acceleration version
C23EB034 00000002
3FC08000 C03E2FF4
60000000 00000000
28750A02 FFFB0004
86A00009 3F8147AE
84200009 80002FF4
28750A03 FFFB0000
24002FF4 40200000
26002FF4 A0000000
86A00009 3F7D70A4
84200009 80002FF4
E2000003 00000000
28750A02 F7FF0800
80000009 40200000
84200009 80002FF4
E0000000 80008000
default flying speed is 40200000 (2.5 times normal)
if you want to change it use this site http://babbage.cs.qc.edu/IEEE-754/Decimal.html (change both)

the normal linear acceleration version is in the first post
If there's any code at all that you want to be button activated, or even able to toggle on & off, and I have the game, just PM me and I'll make it happen

Thomas83Lin

#100
On the World Map

All Star Blocks cost 0 Stars [Thomas83Lin]
C24E5A74 00000002
3B800000 939A0094
60000000 00000000
*Not permanent *

Replace Star Blocks with Frozen Starbits? [Thomas83Lin]
42000000 92000000
043CD9BC 6E740000
043CE674 6E740000
043CFE54 6E740000
043D0304 6E740000
043D0FF4 6E740000
043D1C34 6E740000
043D2A4C 6E740000
E0000000 80008000
*Not permanent *

^^^This was a accidental code i found, when poking around with star blocks cost 0 stars
[spoiler][/spoiler]


Thomas83Lin

#101
World Map Bypass [Thomas83Lin]
044EC054 2C060001
*Ability to travel anywhere on World Map*
*Can Skip Levels\StarBlocks\Boss's*
[spoiler]




brkirch

#102
Power Stars Always Solid
042E01D0 60000000
044C8F10 60000000
042DF018 3BC00000
044D86E0 48000020
044445EC 38600000

dcx2

Don't lose coins when dying
044C92AC 60000000


Skeleton turtles stay dead
041B1E60 48000024


Coins never disappear
04235570 38800200

Thomas83Lin

#104
All 242 Stars  [Thomas83Lin]
044DCFB0 48000004
044DCFB4 38000005
*Permanent Per Save Slot if Saved*

All Gold Medals [Thomas83Lin]
044DD314 48000004
044DD318 38000001
*Permanent Per Save Slot if Saved*