SMG2: No Infinite Starpower Hack?

Started by Bully@Wiiplaza, September 08, 2012, 06:43:54 PM

Previous topic - Next topic

Bully@Wiiplaza

I´ve figured how to get unlimited starpower without collecting the star...

043BAC4C 38000001

It works on levels that have rainbow mario. On the ones that don´t have it the game freezes.[spoiler]  CR:28222888  XER:20000000  CTR:8006CDD0 DSIS:06000000
DAR:00000014 SRR0:8000E9CC SRR1:0000B032   LR:803C4378
 r0:00000001   r1:807F2FB0   r2:807DECA0   r3:00000014
 r4:81230D94   r5:0000B032   r6:00000000   r7:00000001
 r8:00000000   r9:81239FA4  r10:0000000D  r11:00000002
r12:00000000  r13:807D7320  r14:00000000  r15:00000000
r16:00000000  r17:00000000  r18:00000000  r19:00000000
r20:00000000  r21:00000000  r22:00000000  r23:00000000
r24:00000000  r25:00000000  r26:00000000  r27:00000000
r28:00000000  r29:8107CA98  r30:81230D80  r31:806C4C28

 f0:45BE6F05   f1:C4827E5A   f2:C3E0D358   f3:BF6C216C
 f4:3E811ABB   f5:3EACA16F   f6:3E1FB4A3   f7:B33BBD2E
 f8:3F800000   f9:BF800000  f10:BF747D30  f11:00000000
f12:BE811ABC  f13:00000000  f14:00000000  f15:00000000
f16:00000000  f17:00000000  f18:00000000  f19:00000000
f20:00000000  f21:00000000  f22:00000000  f23:00000000
f24:00000000  f25:00000000  f26:00000000  f27:00000000
f28:00000000  f29:00000000  f30:00000000  f31:00000000

8000E9C0:  C0440000   lfs   f2,0(r4)
8000E9C4:  C0240004   lfs   f1,4(r4)
8000E9C8:  C0040008   lfs   f0,8(r4)
8000E9CC:  D0430000   stfs   f2,0(r3)
8000E9D0:  D0230004   stfs   f1,4(r3)
8000E9D4:  D0030008   stfs   f0,8(r3)
8000E9D8:  4E800020   blr   [/spoiler]I executed 803BAC4C and went to the RAM section where the address is located. Value 1 = ON and value 0 = OFF. I poked it to 1 and it immediately froze. It seems like the star is ONLY usable if it´s loaded in current level. Any fix for this? I seldomly had something as weird as that. ???
My Wii hacking site...
http://bullywiihacks.com/

My youtube account with a lot of hacking videos...
http://www.youtube.com/user/BullyWiiPlaza

~Bully

Marionumber1

I think I know what's going on. I ran into a similar problem when I was trying to import the Ice Flower into SMG2 by modifying brkirch's Spin to Fly code. Ice Mario's abilities won't unless an Ice Flower is loaded in the level. The solution that somebody suggested was to hook the level loading function so it always loads the Ice Flower. You could try a similar thing with the Rainbow Star.

Bully@Wiiplaza

My Wii hacking site...
http://bullywiihacks.com/

My youtube account with a lot of hacking videos...
http://www.youtube.com/user/BullyWiiPlaza

~Bully

Marionumber1

There's a function at 804B1CC0 in the NTSC version that loads all the files in the level into memory. You should look into that.

dcx2

There has to be an array somewhere that contains the list of assets that must be loaded for each level.  You could try to find that array and then change every level to say "load everything".

Marionumber1

The assets for SMG2 levels are loaded in a few different ways:

-Through <Galaxy Name>UseResource.arc files
-Through PlanetMapDataTable.arc and ProductMapObjDataTable.arc
-Through power-ups (when a power-up is placed in the level, all of its assets are loaded)

It would be a bad idea to load everything, because that would slow down the level loading process a lot.