WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: The D3mon on November 01, 2011, 02:59:44 PM

Title: need help shortening or a different way.
Post by: The D3mon on November 01, 2011, 02:59:44 PM
I would like to make this shorter. or a better way as in putting on/of on it. This way works but is ugly without the ability to turn it on or off game freezes when exiting level.

288E49D8 00000200
48000000 80B24E50
DE000000 80008180
58010000 0000024C
14000004 41A00000
04BDF8E4 3611D4C3
CC000000 C0000001
48000000 80B24E50
DE000000 80008180
58010000 0000024C
14000004 41A00000
04BDF8E4 3611D4C3
E0000000 80008000
Title: Re: need helpn shortening or a differant way.
Post by: Bully@Wiiplaza on November 01, 2011, 03:05:59 PM
48000000 80B24E50
DE000000 80008180
58010000 0000024C
288E49D8 00000200
14000004 41A00000
04BDF8E4 3611D4C3
CC000000 00000000
14000004 41A00000
04BDF8E4 3611D4C3
E0000000 80008000
it´s the frickin´ same value twice!
What did you think while creating this code?
Also, your CC switch was weird...
Title: Re: need helpn shortening or a differant way.
Post by: The D3mon on November 01, 2011, 03:22:56 PM
wasn't really thinking bully lol never really worked with pointers and usually use simple asm thought i'd try pointers. Making on/of with asm is easier to switch on and off.  Thanks now I see how it works annd looks alot nicer.
Title: Re: need helpn shortening or a differant way.
Post by: dcx2 on November 01, 2011, 03:26:37 PM
The last digit of the CC code will change whether it defaults to on or off.

You should also DE again after 5801.  Any time you do a "po = [xyz]" type code, you should follow up with DE.  I'm going to assume this second pointer is also a MEM1 pointer.

What's with the 04 write?  You don't even touch the ba.  Is it patching assembly?  I'm going to assume it's a data write; if it's an assembly patch then "turning it off" is different.

I think I understand what you mean by "turn off".  You want to stop writing to those addresses.  Therefore, building on Bully's example

48000000 80B24E50
DE000000 80008180
58010000 0000024C
DE000000 80008180
288E49D8 00000200
CC000000 00000000
14000004 41A00000
04BDF8E4 3611D4C3
E0000000 80008000

If the switch is off, then the 14 and 04 write won't happen ("turned off").  If the switch is on, then they happen.
Title: Re: need helpn shortening or a differant way.
Post by: The D3mon on November 01, 2011, 08:21:35 PM
not on my computer with what I have goin on. It is a switch to turn inf health on and off . It freezes game when exiting level and starts loading next. I don't remember where the 04 came from but when I get a chance I will edit and post original pointer in pointer search results. That 04 might be the reason for the freeze.
Title: Re: need helpn shortening or a differant way.
Post by: dcx2 on November 01, 2011, 08:24:20 PM
It probably freezes because you didn't use a DE check on the po after loading it with the 5801 code.
Title: Re: need helpn shortening or a differant way.
Post by: The D3mon on November 01, 2011, 08:37:17 PM
that is part of it the 04 code don't know where it came from it was a bad copy and bad I did. LOL But I have a better understanding of pointers now.