I don't understand why this code is crashing the game

Started by wiiztec, December 07, 2011, 10:05:10 PM

Previous topic - Next topic

wiiztec

C27E466C 00000003
3D808000 81630144
916C1838 C02C183C
60000000 00000000
28599D0C 00000800
8690000D 40400000
28599D0D F7FF0000
A4000000 CD000000
8690000D C0400000
E0000000 80008000

If it's because the address for the A4 code is 00000000 I don't know what address I'm supposed to use, I just wanna compare gecko registers
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

Use the latest Gecko.NET (0.66.8, it's not on the front page, click "latest test build" in my sig).  When the game crashes, go to BP tab and click Step Into.  It will show you exactly what crashed.  Post regs and disasm.

IMO, everything looks good.

wiiztec

I have the newest version, Gecko.NET stops responding after the crash

I don't think it's the ASM since that ASM is only read during a very specific event in the game and when I apply the code it crashes the game instantly even on the health screen
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

If Gecko.NET stopped responding, then you probably don't have the newest version.  Check the About tab to confirm what version you have.  Starting with (I think) 0.66.7, Gecko.NET installs all kinds of extra exception handlers.

Also, if the code handler is causing the crash, Gecko.NET will show you what specific piece of the code handler crashed.  I know this works, daijoda posted a code-handler crash in this thread.  http://wiird.l0nk.org/forum/index.php/topic,9083.msg77047.html#msg77047

wiiztec

I have 0.66.8 and I've seen those Wii exception messages come up for most crashes, but not this one
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

Odd, the only thing I've seen that causes a lost connection is a deadloop of some sort.

My only suggestion is to remove all the non-C2 lines, and slowly add them back in one at a time, starting with that last terminator.  Figure out which line is causing the problem.

wiiztec

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

Oh, I see.

A4 compares [grK] to [grN].  That's why you're getting a crash - if grK is a float, it's probably not a valid address.  Though, that should generate an exception that Gecko.NET should catch...

You could use a 26 code, with the address of one gr, and use a 4E code and a 94 code to write the contents of the other gr to the last word of the 26 code.

You could also place the address of grK and grN in two other Gecko registers (say, grP and grQ).  Then you could use P and Q with the A4 code.

wiiztec

I'll go with the 4E method since I wanted to do a 32bit comparison anyways
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

wiiztec

Now that I've released it I'll explain what it does

It's a code for mine cart speed on the shipyard coaster

C27E466C 00000003
3D808000 82230144
922C1838 C02C183C
60000000 00000000
28599D0C 00000800
8690000D 40000000
28599D0D F7FF0000
4E000010 00000000
9421000C 00000004
9421000C 00000014
2400183C 00000000
8690000D C0000000
2600183D 00000000
8420000C 8000183C
E0000000 80008000

The C2 code stores the speed the game wants the cart to be at in gecko register C and has the game load the speed from gecko register D, when the A button is held the cart accelerates, when it is released the cart decelerates at the same rate down to the speed the game wants it at, if the game would have the cart accelerate (turning into a curve) the code allows this by copying gecko register C to gecko register D if gecko register D is lower
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

Bully@Wiiplaza

#10
... and why do I get a crash when I send an empty codelist on e.g. Yu-gi-oh! Duel Transer using the newest gecko.net?
The crash breakpoint tells that it was loading from/storing to an invalid register...
it looks like it was a "random" instruction though, it´s not in the codehandler that´s why not every game is affected...

Which additional things does it do to the RAM when the user sends codes?
The "freezing" time is longer than on WiiRd since it must be applying something else to the RAM.

Any explanations why and/or how to permanently fix it for gecko.net? ;)
I never got a useful answer to that, so plz...
My Wii hacking site...
http://bullywiihacks.com/

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

~Bully

Stuff

ntsc-u or pal? I just experienced deja vu unless I already did this at some point. Maybe I should go deeper into the game than just the select file menu, but I sent an empty codelist and nothing happened. When you send an empty codelist it should push the end of codes line up to accommodate the change. Along with that code that's just there. Possible reasons for a crash could be that you had a C2 code in the list. Remember to do that code undo(or just make sure to send the C2 cuz I haven't done code undo yet XD). And I think you might have a C2 in the list. That one that you made some time ago. Check you code list before sending an empty codelist to make sure.
.make Stuff happen.
Dropbox. If you don't have one, get it NOW! +250MB free if you follow my link :p.

Mod code Generator ~50% complete but very usable:
http://dl.dropbox.com/u/24514984/modcodes/modcodes.htm

Bully@Wiiplaza

#12
Quote from: Stuff on December 08, 2011, 02:13:05 PM
ntsc-u or pal? I just experienced deja vu unless I already did this at some point. Maybe I should go deeper into the game than just the select file menu, but I sent an empty codelist and nothing happened. When you send an empty codelist it should push the end of codes line up to accommodate the change. Along with that code that's just there. Possible reasons for a crash could be that you had a C2 code in the list. Remember to do that code undo(or just make sure to send the C2 cuz I haven't done code undo yet XD). And I think you might have a C2 in the list. That one that you made some time ago. Check you code list before sending an empty codelist to make sure.
Don´t you understand the list was EMPTY, REALLY! (PAL game btw.)
0/215 codes active AFTER e.g. freshly booting the game (no SD codes, no codes sent before).
I mean what I say. I did NOT fail that often in a row without noticing that I had codes enabled.

Seriously, I WILL be making a video. I got a screen recording software and a video grabber.
I´m sick of people thinking that I´m either too dumb or that I just try to hack WiFi while it occures not related to WiFi.
No offence, but I´m experienced enough to know what I´m doing wrong and right...
My Wii hacking site...
http://bullywiihacks.com/

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

~Bully

Stuff

XD I'm sorry. Well I don't have the pal version so I guess there might be a difference. Don't be offended. I'm just trying to help as much as I can. I know your way more experienced than me. I learned some techniques from you. That's all I've been doing here really. Learning from everyone else whether it be mistakes or not.

And I'm only suggesting stuff that I've already been through. That shit happens sometimes and I get upset that I forgot to swap the gct. Or my gct tab might be too full of codes so I might accidentally send an old test code that already crashed the game before. Cuz I do that >.>. Wanna see my gct tab for mh3? Sometimes I wonder why I don't clean that up. Seriously, the most common mistakes are the silly ones so you can't rule them out until it's proven. So I ask these things. This is how we find a solution. Until someone else with more skill comes to answer I'm gonna try my best, even if it is stupid, cuz it feels good to arrive at a solution and know that I was involved at least.

I couldn't rule out your anti-anti-wifi code cuz I was going through the same thing at some point with my own anti-anti-wifi code and it wasn't even asm. But for me it was just some bad coding >.>. Even if your not hacking wifi, I'm looking at it the way I do things. My anti-anti-wifi code is always on. Cuz after I'm done hacking, I feel like relaxing a little by going online and seeing who's on. I don't feel like resetting just for that. >.>

Upload a video then. It'll help alot to see what your seeing from your pov. That's why I recorded the video before. But if your gonna get offended...
Quote from: Bully@Wiiplaza on December 08, 2011, 03:15:54 PM
I´m experienced enough to know what I´m doing wrong and right...
then fix it. I ask cuz I'm not experienced enough...

So the next thing I ask is what hook type are you using? idk if this would affect an empty codelist, but you never know. I use vbi.
.make Stuff happen.
Dropbox. If you don't have one, get it NOW! +250MB free if you follow my link :p.

Mod code Generator ~50% complete but very usable:
http://dl.dropbox.com/u/24514984/modcodes/modcodes.htm

Bully@Wiiplaza

#14
it´s okay ;D
I overreacted...
btw. I sent you a PM containing something special that may come in handy xD

I will be making the video on Saturday cuz I can´t do it earlier... :P (not at home)
I mostly use Ossleepthread and VBI. I guess it was VBI for that game.
But it also occured on Ossleepthread for another game. >.<
My Wii hacking site...
http://bullywiihacks.com/

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

~Bully