Code freezes game when not active

Started by goemon_guy, October 05, 2011, 09:05:13 PM

Previous topic - Next topic

Bully@Wiiplaza

#15
Quote from: goemon_guy on October 05, 2011, 10:17:00 PM
A Full Terminator would be E0000000 80008000. Right?

I sent it, and it crashed.

Same exception as the last post.
it´s a gecko.net bug, but nobody bothered listening to me at first.

I sent an empty code list and it crashed.


Those weird crashes happen on some games when one sends codes.
WiiRd doesn´t freeze the game using the exact same codes. That´s why I sometimes take out the GUI again.
I guess that there must be something wrong with the (code sending?) patches dcx2 made. Probably not the ones that are written to memory...
Whole in whole these patches make things better, but they aren´t perfectly stable on each game.
It would be nice to get a fix soon... >.<
My Wii hacking site...
http://bullywiihacks.com/

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

~Bully

goemon_guy

I've tried to use Branch labels, but I failed miserably, and it just didn't work.
x_x

The problem with sending a code was resolved somewhat.
(It doesn't crash anymore when I send the codes.)
-Currently hacking the following game(s):
...
Request a code via PM, if you wish.

Bully@Wiiplaza

Quote from: goemon_guy on October 08, 2011, 12:14:38 PM
I've tried to use Branch labels, but I failed miserably, and it just didn't work.
x_x

The problem with sending a code was resolved somewhat.
(It doesn't crash anymore when I send the codes.)
I didn´t want to say that but...
it sometimes fixes itself.
Weirdness O.O
My Wii hacking site...
http://bullywiihacks.com/

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

~Bully

dcx2

Quote from: goemon_guy on October 08, 2011, 12:14:38 PM
I've tried to use Branch labels, but I failed miserably, and it just didn't work.
x_x

How did you fail?  If you paste what you tried, we can try to figure out what needs corrected.  The big thing is that only the label itself is suffixed with a : and everywhere else it does not have that.

goemon_guy

#19
I figured out the branches in PyiiASMh.

Thanks anyways XD

---

On another note, Rune Factory: Tides of Destiny has a similar issue.

When I send the following code:

28629EF2 00000300
82000000 80A805A5
82000001 80A805A6
84000000 933FFF60
84000000 933FFF61
E0000000 80008000

It crashes if I have already loaded a file/load a save file, but not beforehand (title screen, etc.)

But I'm not even pressing the buttons. (1 + 2)

EXCEPTION:

[spoiler]
[spoiler]
 CR:84242888  XER:00000000  CTR:00000000 DSIS:04000000
DAR:00000000 SRR0:800028C8 SRR1:00009032   LR:802197F8
 r0:000001E0   r1:806CCB18   r2:805F3980   r3:80A843A0
 r4:00000001   r5:00000019   r6:00000010   r7:00000001
 r8:00000012   r9:00000011  r10:00000010  r11:806CCC08
r12:0000000E  r13:805F0080  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:8053CA70
r28:0000000B  r29:47430000  r30:80630000  r31:9145FC40

 f0:40D7D307   f1:41193B27   f2:3F800000   f3:3F800000
 f4:59800004   f5:43700000   f6:00000000   f7:C3700000
 f8:43A00000   f9:00000000  f10:4B800000  f11:3F800000
f12:3CB327A4  f13:3B6B6916  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
[/spoiler]
800028A0:  00000000   .word   0x00000000
800028A4:  00000000   .word   0x00000000
800028A8:  00000000   .word   0x00000000
800028AC:  00000000   .word   0x00000000
800028B0:  00000000   .word   0x00000000
800028B4:  00000000   .word   0x00000000
800028B8:  00D0C0DE   .word   0x00d0c0de
800028BC:  00D0C0DE   .word   0x00d0c0de
800028C0:  28629EF2   .word   0x28629ef2
800028C4:  00000300   .word   0x00000300
800028C8:  82000000   lwz   r16,0(r0)
800028CC:  80A805A5   lwz   r5,1445(r8)
800028D0:  82000001   lwz   r16,1(r0)
800028D4:  80A805A6   lwz   r5,1446(r8)
800028D8:  84000000   lwzu   r0,0(r0)
800028DC:  933FFF60   stw   r25,-160(r31)
800028E0:  84000000   lwzu   r0,0(r0)
800028E4:  933FFF61   stw   r25,-159(r31)
800028E8:  E0000000   psq_l   f0,0(r0),0,0
800028EC:  80008000   lwz   r0,-32768(r0)
800028F0:  00003181   .word   0x00003181
800028F4:  00000000   .word   0x00000000
800028F8:  FFFFFFFF   fnmadd.   f31,f31,f31,f31
800028FC:  FFFFFFFF   fnmadd.   f31,f31,f31,f31
80002900:  00003181   .word   0x00003181
80002904:  00000000   .word   0x00000000
80002908:  FFFFFFFF   fnmadd.   f31,f31,f31,f31
8000290C:  FFFFFFFF   fnmadd.   f31,f31,f31,f31
80002910:  00000000   .word   0x00000000
80002914:  00000000   .word   0x00000000
80002918:  00000000   .word   0x00000000
8000291C:  00000000   .word   0x00000000
80002920:  00000000   .word   0x00000000
80002924:  00000000   .word   0x00000000
80002928:  00000000   .word   0x00000000
8000292C:  00000000   .word   0x00000000
80002930:  00000000   .word   0x00000000
80002934:  00000000   .word   0x00000000
80002938:  00000000   .word   0x00000000
8000293C:  00000000   .word   0x00000000
80002940:  00000000   .word   0x00000000
80002944:  00000000   .word   0x00000000
80002948:  00000000   .word   0x00000000
8000294C:  00000000   .word   0x00000000
80002950:  00000000   .word   0x00000000
80002954:  00000000   .word   0x00000000
80002958:  00000000   .word   0x00000000
8000295C:  00000000   .word   0x00000000
80002960:  00000000   .word   0x00000000
80002964:  00000000   .word   0x00000000
80002968:  00000000   .word   0x00000000
8000296C:  00000000   .word   0x00000000
80002970:  00000000   .word   0x00000000
80002974:  00000000   .word   0x00000000
80002978:  00000000   .word   0x00000000
8000297C:  00000000   .word   0x00000000
80002980:  00000000   .word   0x00000000
80002984:  00000000   .word   0x00000000
80002988:  00000000   .word   0x00000000
8000298C:  00000000   .word   0x00000000
[/spoiler]

EDIT:
One second, I think I found the problem.
-Currently hacking the following game(s):
...
Request a code via PM, if you wish.

dcx2

#20
Looks like you had a dangling branch from a previously applied C2-ish code that you removed.  The game then jumped from somewhere around 802197F8 to where it expected a C2 code to be, but now you don't have a C2 code there anymore.  It then tried to interpret 82000000 as "lwz   r16,0(r0)" when it's not even an ASM code.

EDIT:

I should note that unhooking C2 codes is the purpose behind GCT Code Undo.

If you add a line in your GCT code that has

##[address] [value]

It will poke [address] with [value] before applying codes.  This will "unhook" C2 codes by overwriting the original instruction.  Note that [address] is NOT an 04 code, it's literally the full address you hooked.  Also, don't use brackets.

e.g.

##80000000 00000000

will poke 80000000 with 00000000 before applying codes.

EDIT2:

I should note further that if you want to automatically grab the undo code...

1) Start a fresh game without any codes applied
2) Go to your code in the GCT list
3) Double-click the C2 word (or any word that has an address in it)
4) ctrl+u and it will automatically add the GCT Code Undo line.

Note that ctrl+u assumes the ba=80000000.

goemon_guy

But, it happens if I don't even apply any other codes before this one. (Meaning I haven't even applied any C2 codes.)
-Currently hacking the following game(s):
...
Request a code via PM, if you wish.

dcx2

#22
Did you apply any codes with SD cheats?

EDIT:

Go to 802197F8 and look for any branches in the vicinity that are going to 800028C8.

Alternatively, do a disasm search for 800028C8.  It might take a long time though.

goemon_guy

Haha.
Right before reading this, I looked at the spot in memory and there was a C2 code already hooked.

Thing is, that yes; I did have a code sent. -.-

That explains what you were talking about earlier, with it trying to do C2 code-stuff...
-Currently hacking the following game(s):
...
Request a code via PM, if you wish.