Hacking Prince of Persia: The Forgotten Sands

WiiPower

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
8,165
Trophies
0
XP
345
Country
Gambia, The
Don't expect the patches today, and i think they should work on all cIOS on all partition types.

cIOSrev9 is a primitive cIOS compared to the later ones, and it seems the only reason why the later ones don't work, is the check of the module names in the cIOS. The game checks for usb2, sdhc and mload. cIOSrev18 started using the name usb2, rev10 was the 1st with sdhc support and i think rev18 was the 1st with mload support. These checks are also the reason why Hermes cIOS don't work, because they all use these names.
 

panmusic

Well-Known Member
Member
Joined
Sep 11, 2009
Messages
833
Trophies
0
Age
47
XP
306
Country
Greece
Very nice explanation WiiPower!Thanks!
I certainly hope somebody releases the patches as soon as possible because the wait is killing me...
 

WiiCrazy

Be water my friend!
Member
Joined
May 8, 2008
Messages
2,395
Trophies
0
Location
Istanbul
Website
www.tepetaklak.com
XP
387
Country
WiiPower said:
Don't expect the patches today, and i think they should work on all cIOS on all partition types.

cIOSrev9 is a primitive cIOS compared to the later ones, and it seems the only reason why the later ones don't work, is the check of the module names in the cIOS. The game checks for usb2, sdhc and mload. cIOSrev18 started using the name usb2, rev10 was the 1st with sdhc support and i think rev18 was the 1st with mload support. These checks are also the reason why Hermes cIOS don't work, because they all use these names.

Well are you sure? I browsed through the dol and can't find any occurrences of those strings (usb2, sdhc, mload and so on)... Is it obfuscated?
Also no symbols with names Waninkoko or Hermes found in the main.dol of the game unlike previously linked pastie
 

WiiPower

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
8,165
Trophies
0
XP
345
Country
Gambia, The
WiiCrazy said:
WiiPower said:
Don't expect the patches today, and i think they should work on all cIOS on all partition types.

cIOSrev9 is a primitive cIOS compared to the later ones, and it seems the only reason why the later ones don't work, is the check of the module names in the cIOS. The game checks for usb2, sdhc and mload. cIOSrev18 started using the name usb2, rev10 was the 1st with sdhc support and i think rev18 was the 1st with mload support. These checks are also the reason why Hermes cIOS don't work, because they all use these names.

Well are you sure? I browsed through the dol and can't find any occurrences of those strings (usb2, sdhc, mload and so on)... Is it obfuscated?
Also no symbols with names Waninkoko or Hermes found in the main.dol of the game unlike previously linked pastie

I was told the strings are encrypted in the .dol:
http://pastie.org/963456
 

WiiCrazy

Be water my friend!
Member
Joined
May 8, 2008
Messages
2,395
Trophies
0
Location
Istanbul
Website
www.tepetaklak.com
XP
387
Country
WiiPower said:
I was told the strings are encrypted in the .dol:
http://pastie.org/963456

Hmm, rather than encryption this seems much more like bit shifting and stuff, since all occurences of each character repeats in the obfuscated one... I believe direct patching of this data doesn't work hence no one released yet...

ps: they only differ by 7 in their ascii equivalents...

CODE6ÂÂÂÂÂÂÂÂ kÂÂÂÂÂÂÂÂ lÂÂÂÂÂÂÂÂÂÂ }
54ÂÂÂÂÂÂ 107ÂÂÂÂ 108ÂÂÂÂÂÂ 125

/ÂÂÂÂÂÂÂÂ dÂÂÂÂÂÂÂÂ eÂÂÂÂÂÂÂÂÂÂ vÂÂ
47ÂÂÂÂÂÂ 100ÂÂÂÂ 101ÂÂÂÂÂÂ 118
---------------------------------
7ÂÂÂÂÂÂÂÂ 7ÂÂÂÂÂÂÂÂ 7ÂÂÂÂÂÂÂÂÂÂ 7

edit: if checksumming of this data is also lame like the obfuscation then one can just swap the order of the bytes
tongue.gif
I'l just give it a go swapping the end of strings..
 

icemasta

Member
Newcomer
Joined
Jun 26, 2007
Messages
17
Trophies
0
XP
76
Country
United States
If I installed the OP's original WAD of cIOS rev9 on a LU64+ unit, did I just screw something up in the Wii's filesystem?

I uninstalled the WAD so I guess it removed whatever the original WAD installed but not sure cause it seems a lot quicker to uninstall than install.
 

Taik

Well-Known Member
Member
Joined
Jul 13, 2008
Messages
555
Trophies
0
Website
Visit site
XP
218
Country
France
icemasta said:
If I installed the OP's original WAD of cIOS rev9 on a LU64+ unit, did I just screw something up in the Wii's filesystem?

I uninstalled the WAD so I guess it removed whatever the original WAD installed but not sure cause it seems a lot quicker to uninstall than install.

Uninstalling WADs is really fast (few seconds)
 

WiiPower

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
8,165
Trophies
0
XP
345
Country
Gambia, The
icemasta said:
If I installed the OP's original WAD of cIOS rev9 on a LU64+ unit, did I just screw something up in the Wii's filesystem?

I uninstalled the WAD so I guess it removed whatever the original WAD installed but not sure cause it seems a lot quicker to uninstall than install.

Don't uninstall system related wads unless you know what you are doing. That's something that can easily brick your Wii!

cIOSrev9 just won't work on new Wiis, you can install it and try to use it without any danger. It may just a little problem getting a new cIOS again, but nothing to worry about.
 

ocdetective

Well-Known Member
Member
Joined
Mar 19, 2008
Messages
601
Trophies
0
XP
81
Country
Malaysia
OK here is an update to what I found running on 3.2U with original rev9 installed to 249 (no updates).
GX with not run on rev 874 any setting for 002 fix but will run on rev 782 with 002 fix to On (possibly anti will work too but untested)
Cfg will not run on either 56 or 57a but will run on 44 with anti 002 setting to On. About to test 45 to see if that works.
OK tested rev 45 - confirmed NOT working on original rev9. That would indicate that the patch installed between 44 and 45 on Cfg and 782 and 784 on GX does indeed have some effect (the fix for games which need a disc in the drive to play (like MP3 and De Blob))
 

icemasta

Member
Newcomer
Joined
Jun 26, 2007
Messages
17
Trophies
0
XP
76
Country
United States
WiiPower said:
Don't uninstall system related wads unless you know what you are doing. That's something that can easily brick your Wii!

cIOSrev9 just won't work on new Wiis, you can install it and try to use it without any danger. It may just a little problem getting a new cIOS again, but nothing to worry about.

What do you mean by not being able to install a new cIOS again though? Am I stuck with cIOS rev17 on 249 from now on?

I still have cIOs rev17 on my Wii on 249 which still works. The uninstalled WAD did not brick the system luckily.

Also, can we freely upgrade and downgrade between cIOS's right? Since you said I may not be able to upgrade, I'm thinking of upgrading to rev19 and back down to rev17 just to see if there is a problem.
 

WiiPower

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
8,165
Trophies
0
XP
345
Country
Gambia, The
I thought that was installs the cIOS as IOS249. In that case you wouldn't been able to use IOS249 to update your cIOS, that's all i meant.
 

BOTCK

Active Member
Newcomer
Joined
May 17, 2010
Messages
27
Trophies
0
Website
Visit site
XP
27
Country
WiiPower said:
Don't expect the patches today, and i think they should work on all cIOS on all partition types.

cIOSrev9 is a primitive cIOS compared to the later ones, and it seems the only reason why the later ones don't work, is the check of the module names in the cIOS. The game checks for usb2, sdhc and mload. cIOSrev18 started using the name usb2, rev10 was the 1st with sdhc support and i think rev18 was the 1st with mload support. These checks are also the reason why Hermes cIOS don't work, because they all use these names.


Sry for asking, but if the module names making these problems, why doesn't someone just rename them?
 

icemasta

Member
Newcomer
Joined
Jun 26, 2007
Messages
17
Trophies
0
XP
76
Country
United States
WiiPower said:
I thought that was installs the cIOS as IOS249. In that case you wouldn't been able to use IOS249 to update your cIOS, that's all i meant.

Oh ok. From what I know the OP's WAD had patched cIOS rev9 to ISO223. I checked and it still says I have cIOS rev17 on my Wii on 249 which is still working. So I guess I cant use IOS223 anymore from what I understand, but I guess I have no immediate need for it anyhow as I have Hermes 222 v4 on 222.
 

Dr. Clipper

Well-Known Member
Member
Joined
Aug 28, 2007
Messages
2,485
Trophies
0
XP
92
Country
Yeah, don't wait on the patches. Play the game from those discs I'm sure all of you have...

As for timing of the patch, I'll be trying to make one of my own in about 17 hours or so. Somebody will probably beat me to it now that the cat's out of the bag.

WiiCrazy, you're close, but there are some strings on a 13 character shift too.

ocdetective said:
OK here is an update to what I found running on 3.2U with original rev9 installed to 249 (no updates).
GX with not run on rev 874 any setting for 002 fix but will run on rev 782 with 002 fix to On (possibly anti will work too but untested)
Cfg will not run on either 56 or 57a but will run on 44 with anti 002 setting to On. About to test 45 to see if that works.
OK tested rev 45 - confirmed NOT working on original rev9. That would indicate that the patch installed between 44 and 45 on Cfg and 782 and 784 on GX does indeed have some effect (the fix for games which need a disc in the drive to play (like MP3 and De Blob))
Thanks for testing that. It clears up a big problem we were having. I guess XFlak wasn't testing things properly. XFlak, any word on this?

QUOTE(BOTCK @ May 20 2010, 12:31 AM) Sry for asking, but if the module names making these problems, why doesn't someone just rename them?
Because we're not Waninkok and Hermes.
 

XFlak

Wiitired but still kicking
Member
Joined
Sep 12, 2009
Messages
13,813
Trophies
3
Age
38
Location
Cyprus, originally from Toronto
Website
modmii.github.io
XP
9,802
Country
Cyprus
ocdetective said:
OK here is an update to what I found running on 3.2U with original rev9 installed to 249 (no updates).
GX with not run on rev 874 any setting for 002 fix but will run on rev 782 with 002 fix to On (possibly anti will work too but untested)
Cfg will not run on either 56 or 57a but will run on 44 with anti 002 setting to On. About to test 45 to see if that works.
OK tested rev 45 - confirmed NOT working on original rev9. That would indicate that the patch installed between 44 and 45 on Cfg and 782 and 784 on GX does indeed have some effect (the fix for games which need a disc in the drive to play (like MP3 and De Blob))
I tested it on 57b and it worked fine

I was using cIOS249rev9 installed to slot 250, with anti-002 on

edit: I am 100% positive it loaded fine from both cfg rev44 and rev57b, before I launched the game I went to the global options and saw the rev #. However, I used the same "USB-Loader" Supporting Folder during both attempts (I think it was a recent USB-Loader folder and not the one from rev44, but I cant remember for sure).

edit2: when i get home (7 hours from now) I will re-test to confirm it still behaves the same way
 

Dr. Clipper

Well-Known Member
Member
Joined
Aug 28, 2007
Messages
2,485
Trophies
0
XP
92
Country
XFlak said:
ocdetective said:
OK here is an update to what I found running on 3.2U with original rev9 installed to 249 (no updates).
GX with not run on rev 874 any setting for 002 fix but will run on rev 782 with 002 fix to On (possibly anti will work too but untested)
Cfg will not run on either 56 or 57a but will run on 44 with anti 002 setting to On. About to test 45 to see if that works.
OK tested rev 45 - confirmed NOT working on original rev9. That would indicate that the patch installed between 44 and 45 on Cfg and 782 and 784 on GX does indeed have some effect (the fix for games which need a disc in the drive to play (like MP3 and De Blob))
I tested it on 57b and it worked fine

I was using cIOS249rev9 installed to slot 250, with anti-002 on
And you played it long enough to make sure it didn't crash part way through the game?

If so, then things are very weird and there is something different between your Wii/launch method and ocdetective's.
 

XFlak

Wiitired but still kicking
Member
Joined
Sep 12, 2009
Messages
13,813
Trophies
3
Age
38
Location
Cyprus, originally from Toronto
Website
modmii.github.io
XP
9,802
Country
Cyprus
it was late, so I just made sure I got it to load to the game's main menu

if it were to crash... wouldn't it crash right away (even before the health warnings splash screens)?

edit: I will perform any tests that people request when I get home, but it seems as if it may be pointless because a patch will likely be released soon thereafter
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    BakerMan @ BakerMan: @salazarcosplay yeah cod's still up