Hacking Prince of Persia: The Forgotten Sands

Dr. Clipper

Well-Known Member
Member
Joined
Aug 28, 2007
Messages
2,485
Trophies
0
XP
92
Country
WiiPower said:
Could somebody confirm that just writing the code handler to 0x80001800 causes this crash? That would be interesting and bads news.
Looks that way from the code.

Edit: Actually, on closer look it seems it also writes a blank codelist from 0x800028B8 to 0x80002FFF.
 

sm98

Member
Newcomer
Joined
Sep 13, 2009
Messages
6
Trophies
0
XP
11
Country
can't say i've tested more than just having the game at the menu
this is the pal version

.text:804CDEB0 7C 16 E8 40 cmplw %r22, %r29
.text:804CDEB4 40 82 FF EC bne loc_804CDEA0
.text:804CDEB8 57 F6 B2 BE srwi %r22, %r31, 10
.text:804CDEBC 7F FF B2 78 xor %r31, %r31, %r22
.text:804CDEC0 57 F6 A0 16 slwi %r22, %r31, 20
.text:804CDEC4 7F FF B2 78 xor %r31, %r31, %r22
.text:804CDEC8 7F F6 82 79 xor. %r22, %r31, %r16
.text:804CDECC 41 82 00 5C beq loc_804CDF28 # good guy - no hooks, force this one
.text:804CDED0 48 00 00 09 bl loc_804CDED8 # bad guy - hooks

so mine is
use ossleep hook 044CDECC 4800005C
also have the cios checks patched (playing it off disc though)

i haven't checked if it blanks code lists etc...haven't cheated yet so if it works, great...if not, it's a start for someone
smile.gif
 

Dr. Clipper

Well-Known Member
Member
Joined
Aug 28, 2007
Messages
2,485
Trophies
0
XP
92
Country
Incidentally, does patching that allow you to use all the other .dol patches that break PoP? Return_to patch, Disc Check Patch, Language patch, etc.?
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
why the hell would people apply cheat codes to loaders? there are tens of thousands of cheat codes for different games. it would be crazy to include all of them. and it would be unfair to include some and not all.
 

jono@home

Well-Known Member
Member
Joined
Apr 30, 2007
Messages
273
Trophies
1
XP
159
Country
giantpune said:
why the hell would people apply cheat codes to loaders? there are tens of thousands of cheat codes for different games. it would be crazy to include all of them. and it would be unfair to include some and not all.


Sorry you got me wrong their dude.. no not the cheat code that allows you to cheat. I meant the code that stops the game from crashing in gx. Maybe also a workaround to allow the return to channel when the patch/ or the alt dol is applied.

EDIT:

thinking about it, it may be better to make the return to patch configurable, as no doubt we would come across this again in future games
 

WiiPower

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
8,165
Trophies
0
XP
345
Country
Gambia, The
sm98 said:
can't say i've tested more than just having the game at the menu
this is the pal version

.text:804CDEB0 7C 16 E8 40 cmplw %r22, %r29
.text:804CDEB4 40 82 FF EC bne loc_804CDEA0
.text:804CDEB8 57 F6 B2 BE srwi %r22, %r31, 10
.text:804CDEBC 7F FF B2 78 xor %r31, %r31, %r22
.text:804CDEC0 57 F6 A0 16 slwi %r22, %r31, 20
.text:804CDEC4 7F FF B2 78 xor %r31, %r31, %r22
.text:804CDEC8 7F F6 82 79 xor. %r22, %r31, %r16
.text:804CDECC 41 82 00 5C beq loc_804CDF28 # good guy - no hooks, force this one
.text:804CDED0 48 00 00 09 bl loc_804CDED8 # bad guy - hooks

so mine is
use ossleep hook 044CDECC 4800005C
also have the cios checks patched (playing it off disc though)

i haven't checked if it blanks code lists etc...haven't cheated yet so if it works, great...if not, it's a start for someone
smile.gif

Nice work. Now i wonder if this also allows all those other game patches or not.
 

WiiPower

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
8,165
Trophies
0
XP
345
Country
Gambia, The
yahmegaman said:
well i can say this works 100% with patched dol, cios 19 base 57, and neogamma usb. thanks wiipower!

Hey i wasn't really involved this time, it's other people who did it. Giantpune, WiiCrazy and Dr. Clipper mostly i think.
 

yahmegaman

Well-Known Member
Newcomer
Joined
Aug 21, 2007
Messages
95
Trophies
0
XP
151
Country
United States
sorry i ment thank you for your neogamma, cause wiiflow doesn't work for me. and i want to say a BIG THANK YOU to giantpun, wiicrazy, dr. clipper, waninkoko and the gbatemp team!
 

bula

Well-Known Member
Member
Joined
Feb 4, 2009
Messages
812
Trophies
0
XP
42
Country
United States
yahmegaman said:
sorry i ment thank you for your neogamma, cause wiiflow doesn't work for me. and i want to say a BIG THANK YOU to giantpun, wiicrazy, dr. clipper, waninkoko and the gbatemp team!


wiiflow works with alt dol (main.dol has to be patched with wiicrazy's info and rename to match game ID).
 

WiiPower

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
8,165
Trophies
0
XP
345
Country
Gambia, The
bula said:
yahmegaman said:
sorry i ment thank you for your neogamma, cause wiiflow doesn't work for me. and i want to say a BIG THANK YOU to giantpun, wiicrazy, dr. clipper, waninkoko and the gbatemp team!


wiiflow works with alt dol (dal has to be patched with wiicrazy's info).

Or you can take the .wip and apply it to your main.dol with Generic Wii Patcher. This possility is one of the reason why i chose this format for external .dol patches.
 

bula

Well-Known Member
Member
Joined
Feb 4, 2009
Messages
812
Trophies
0
XP
42
Country
United States
WiiPower said:
bula said:
yahmegaman said:
sorry i ment thank you for your neogamma, cause wiiflow doesn't work for me. and i want to say a BIG THANK YOU to giantpun, wiicrazy, dr. clipper, waninkoko and the gbatemp team!


wiiflow works with alt dol (dal has to be patched with wiicrazy's info).

Or you can take the .wip and apply it to your main.dol with Generic Wii Patcher. This possility is one of the reason why i chose this format for external .dol patches.

You are right.
 

WiiPower

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
8,165
Trophies
0
XP
345
Country
Gambia, The
bula said:
[...]
You are right but wip is broken in some loaders. This works in Neogamma 100%.

Configurable usb loader should have fixed .wip support now. Anyways, it's only NeoGamma and cfg with .wip support, i think, all others don't have it. What i said is that you can use the .wip to patch the main.dol manually and use the resulting .dol as alternative .dol in loaders without .wip support.
 

bula

Well-Known Member
Member
Joined
Feb 4, 2009
Messages
812
Trophies
0
XP
42
Country
United States
WiiPower said:
bula said:
[...]
You are right but wip is broken in some loaders. This works in Neogamma 100%.

Configurable usb loader should have fixed .wip support now. Anyways, it's only NeoGamma and cfg with .wip support, i think, all others don't have it. What i said is that you can use the .wip to patch the main.dol manually and use the resulting .dol as alternative .dol in loaders without .wip support.

Got you, sorry I misread your post.
That is a easy way of doing it then edit your dol with a hex editor.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    NinStar @ NinStar: well, this is a bit awkward