Gecko OS mod

Started by WiiPower, May 26, 2010, 05:14:52 PM

Previous topic - Next topic

WiiPower

Hmm, i should do that. Which is project #3 at the moment then.

@dcx2:
Do you want it just in general, or are you hacking some game right now and you really could use it?

dcx2

I'm hacking ToS for the GameCube right now, and it swaps a lot of ASM into the high part of MEM1.  While I can manually patch the ASM after it's been loaded, cheaters would require an F2 code to make sure the hook is only applied when the ASM is actually loaded.

WiiPower

Ok, i started this. The option to load the correct IOS for Wii games should be working now. But i want to implement multi .dol + 10-16 KB memory for codes(for retail discs...) before building the next Gecko OS mod version. Both features can't be seperated on my code, and the multi .dol code reduces the available memory for Ocarina codes.

biolizard89

Quote from: WiiPower on June 20, 2011, 09:30:01 PM
Ok, i started this. The option to load the correct IOS for Wii games should be working now. But i want to implement multi .dol + 10-16 KB memory for codes(for retail discs...) before building the next Gecko OS mod version. Both features can't be seperated on my code, and the multi .dol code reduces the available memory for Ocarina codes.
Awesome, good to hear that the expanded memory space for codes is coming.

Arudo

Well seeing as I'd like some other people to look into this...

I've had some hooking issues between using GeckoOS Mod/Neogamma.

I'm not sure what to use to hook Phantasy Star Online I&II because I can run the game fine, it's just I can't hook it with eithe Wiird or Gecko DotNet.

Some other games have issues with the debuggers.

For now, if I attempt to connect Gecko dotnet with Mystic Heroes or Bloody Roar, usually done after the game menus load up etc. the game will then freeze the moment I try to access memory viewer or just simply hook the debugger.

However this freeze does not occur when I use Wiird.
-Crazy Hacker Hates You All (definitely)-

ノಠ益ಠ)ノ彡â"»â"â"»

Do NOT PM me about Code Requests

Pro-tip: Hit the Applaud Button

Oh? Failed to read the rules? You're already dead.

Patedj

All guitar heroes have trouble hooking too. I've noticed other games that had trouble with every hook type. I don't remember which one though. I rent a lot.
You can pm me, I've got time for your troubles.

biolizard89

Quote from: Arudo on June 22, 2011, 01:43:21 AM
Well seeing as I'd like some other people to look into this...

I've had some hooking issues between using GeckoOS Mod/Neogamma.

I'm not sure what to use to hook Phantasy Star Online I&II because I can run the game fine, it's just I can't hook it with eithe Wiird or Gecko DotNet.

Some other games have issues with the debuggers.

For now, if I attempt to connect Gecko dotnet with Mystic Heroes or Bloody Roar, usually done after the game menus load up etc. the game will then freeze the moment I try to access memory viewer or just simply hook the debugger.

However this freeze does not occur when I use Wiird.
Are you using the Plus version of PSO 1&2?  I believe Fuzziqer (author of the private PSO server software) told me that the Plus version (as well as episode 3) messes with the memory region where the WiiRD code handler sits.

Not sure about the other hook issues you had.

Arudo

Using the regular version. Never got the Plus version. But maybe I'm using the wrong hooks. I'm aware of Fuzziqer because I've used his PSO codes before.
-Crazy Hacker Hates You All (definitely)-

ノಠ益ಠ)ノ彡â"»â"â"»

Do NOT PM me about Code Requests

Pro-tip: Hit the Applaud Button

Oh? Failed to read the rules? You're already dead.

WiiPower

I'm happy to hear that Phantasy Star Online I&II boots at all. The version i tried to get to work(as backup...) did memset(0x80001800, 0, 0x000017ff), so you would have to patch it somehow. Since it's something that's almost immediately done, i'm not sure if the code handler is executed 1 time before this, exception is paused start of course. Right now Gecko OS mod doesn't support main.dol patches either, so there's no chance to get rid of this memset without the debugger. The backup version eats this memset, but has other issues.

The more important issue is that the game loads an .elf file even before the main menu, so the hook is lost. Gecko OS doesn't support multi .dol hooks for GC retail discs, and the multi .dol hooks for backups are out of question, since the game doesn't work as backup. To be more precise the backup code doesn't even see the .elf being loaded, so it can't patch it, which means no multi .dol hook possible.

dcx2

I thought the code handler was run once before the game started, even if you don't use Pause Start?

WiiPower

#205
Ok, i actually started writing the code for the GC multi .dol retail disc support, 12KB for codes and memory protection. I hope it works how i have it in mind. It will reserve 16KB from 0x817FC000-0x81800000, from which 4 KB will be reserved for the plugin. The current plugin size is < 3KB, so the 12 KB for codes should be available if the plugin was updated. The memory protection will protect 0x817FC000-0x81800000 and 0x80001800-0x80003000 against simple memsets, but i doubt there'll be even one game where it's useful.

I didn't test the new retail plugin yet, because it needs some updates in the loader in order to work, but i thought i give you a status update.

PS: The multi .dol support works the same way as the backup support in the other loader, which means it will most likely only work for games which work as backups too. Just in case you hoped this will get Phantasy Star Online to work with codes.

Quote from: dcx2 on June 22, 2011, 03:23:03 PM
I thought the code handler was run once before the game started, even if you don't use Pause Start?

Hmm, so that's what this asm code does...

dcx2

Thanks for the status update and your continued work.  ^_^

Quote from: WiiPower on June 22, 2011, 03:24:07 PM
Hmm, so that's what this asm code does...

Do you mean the ASM from the We Dare post?

Arudo

Quote from: WiiPower on June 22, 2011, 11:10:28 AM
I'm happy to hear that Phantasy Star Online I&II boots at all. The version i tried to get to work(as backup...) did memset(0x80001800, 0, 0x000017ff), so you would have to patch it somehow. Since it's something that's almost immediately done, i'm not sure if the code handler is executed 1 time before this, exception is paused start of course. Right now Gecko OS mod doesn't support main.dol patches either, so there's no chance to get rid of this memset without the debugger. The backup version eats this memset, but has other issues.

The more important issue is that the game loads an .elf file even before the main menu, so the hook is lost. Gecko OS doesn't support multi .dol hooks for GC retail discs, and the multi .dol hooks for backups are out of question, since the game doesn't work as backup. To be more precise the backup code doesn't even see the .elf being loaded, so it can't patch it, which means no multi .dol hook possible.

So it wasn't expected to boot at all? Although to be honest I'm using neogamma r10 right now. Gecko OS mod won't allow me to hook anything for some reason.
-Crazy Hacker Hates You All (definitely)-

ノಠ益ಠ)ノ彡â"»â"â"»

Do NOT PM me about Code Requests

Pro-tip: Hit the Applaud Button

Oh? Failed to read the rules? You're already dead.

lolera222

#208
Can anyone give me a easy to follow tut on how to use my Pokemon XD (real) with cheats as GeckoOS doesn't work, i have no Gecko USB (nor i know what it is), and i don't undestrand IOSxxxx or cMIOS or stuff like that i'm REALLY new at this (3 days) so if anyone could help me i would really apreciate that.

BTW: i have an SD and no AR

BTW2: I can't add things to my wii like chips and stuff like that if that is needed well i'm screwed

EDIT: Thanks the guy below me ^_^

goemon_guy

I have been tinkering with trying to load Pokemon XD, and it hooks - However, it's only hooked properly until several frames after the game is loaded.

I know this because I loaded the game through Pause Start. I managed to get the game to load, and it worked after I patched a blr. But I couldn't get any response from the USB Gecko.

Sounds kinda like the problem with Metroid Prime. Problem is, I'm completely lost as far as I got.
-Currently hacking the following game(s):
...
Request a code via PM, if you wish.