..:: PCSX2 Forums ::..

Full Version: Anything wrong with my pnach codes?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm getting a recompiler reset in the log before Phantasy Star Universe will even load (black screen)

Original codes, codebreaker format (at least, they're on codetwink, so I'm guessing they're codebreaker format):

Code:
Max Infinite HP     330148D8 EAC5525D
4D510669 5C460C20
CAB6FC31 70D5C1F8
AEA53457 6FE39B96
BECEE66B 94EEA987
515A97EE D336FD92
B8508FDA 2615538F
3     Infinite Weapon HP     E93014B0 12D92233
9EBF2529 3098A460
C77FC0AA 23F7C4E9
B53156D4 7C100EF7
4     Max Weapon HP     6B34674B 9C93FD49
F10DB0F0 1A07C52C
99642AC2 3BA55306
39A601BE 8937EDF3
3FC0132B 677530CE

What they come out as with omniconvert decrypting them and pcsx2ce formatting them to work as a pnach:

Code:
//max-inf hp
patch=1,EE,200C0220,extended,2401270F
patch=1,EE,200C0224,extended,001018C0
patch=1,EE,200C0228,extended,00641821
patch=1,EE,200C022C,extended,AC610024
patch=1,EE,200C0230,extended,080E5A95
patch=1,EE,200C0234,extended,AC610028
patch=1,EE,20396A40,extended,08030088
//inf weap hp
patch=1,EE,200C0240,extended,8601000E
patch=1,EE,200C0244,extended,080BE0E8
patch=1,EE,200C0248,extended,A601000C
patch=1,EE,202FBE74,extended,0C030090
//max weap hp
patch=1,EE,200C0250,extended,2401270F
patch=1,EE,200C0254,extended,A601000E
patch=1,EE,200C0258,extended,03E00008
patch=1,EE,200C025C,extended,8602000C
patch=1,EE,202FBE68,extended,0C030094

Boots fine with cheats disabled.
i have no idea these converted codes are correct or not.
(result of convert and effect of codes)

then i would mention you about the format.
i always use raw code like this.

from:
patch=1,EE,202D1268,extended,24020000

to:
patch=1,EE,002D1268,word,24020000

i don't know meaning of "extended". :-)
(09-09-2013, 02:02 PM)tadatada Wrote: [ -> ]i have no idea these converted codes are correct or not.
(result of convert and effect of codes)

then i would mention you about the format.
i always use raw code like this.

from:
patch=1,EE,202D1268,extended,24020000

to:
patch=1,EE,002D1268,word,24020000

i don't know meaning of "extended". :-)

If you don't know how cheating works, why would you try to help? Tongue
FYI that is a great way to crash the emulator.

Extended patches byte, short and word length for addresses starting from 0, 1 and 2 respectively. I'm not familiar with everything else it can do though.
The system's memory ranges from 20000000 to 21FFFFFF (or somewhere around that, i keep forgetting the exact value), so anything outside those limits is affecting things irrelevant to the game, most of the time. The "extended" type always patches within that range according to the 3 digits i mentioned earlier, so changing the 2 to a 0 and "extended" to "word" is sure to result in a nice bit of chaos.
those converted codes is correct but i questioned why is not working
maybe adding master code may solve it.

e.g. VP2 needs master code to crack in the anti-cheat and using only tempolarly cheat and not perma-cheat.
(09-09-2013, 03:02 PM)smartstrike Wrote: [ -> ]those converted codes is correct but i questioned why is not working
maybe adding master code may solve it.

e.g. VP2 needs master code to crack in the anti-cheat and using only tempolarly cheat and not perma-cheat.

Okay, I tried adding the master code, but pcsx2ce is doing something weird with it.

Original CB master code:

Code:
B4336FA9 4DFEFB79
27BD3AE7 5E89C97D
AB47C036 FB8167C9
59DB1C27 6A848B64

Converted to raw with omniconvert:

Code:
FE129B51 800813BF
000FFFFE 0000024E
000FFFFF 0000024E
901B14F8 0C044FDE

This is what pcsx2ce outputs:

Code:
//FE129B51 800813BF
patch=1,EE,000FFFFE,extended,0000024E
patch=1,EE,000FFFFF,extended,0000024E
//901B14F8 0C044FDE

Obviously it's not meant to be like that! Pcsx2ce can't format master codes properly?
Understand raw means "actual address offsets" and actual "values" to be inputted in them.

The codes come encrypted often so the need to decrypt them to raw, the problem becomes identifying the encryption method which changes with the used engine brand and even between versions.

answering to the doubt about what extended does:
0, 1 and 2 at that first digit mean the byte, short or word "length" of the value operand will be put on the address offset, other digit values have special functions and not all are covered by pnach, hence a code might fail. One example being the Master Code which must not be used and codes depending on it might or might not work as expected due to this.

...
edit for clearness sake: When using "extended" the first digit at the code address is only a code descriptor for the engine, it will be replaced by 2 to reflect the actual offset when the code is applied.
...

For all that I'm aware about the reported codes, they might have been decrypted using the wrong codebreaker version (the OP looks like is v7+), so try both and one will possibly work as intended.
Those codes are totally fine and does not need master code, emulators never need "master codes" and althrough many people put "enable codes" which either bypass protections or whatever else as master codes this is obviously not the case here;p. PCSX2CE doesn't format code types used only for master code at all since they're not used and AFAIK not even recognized by emulator;p.

They may look strange for less experienced people, but that's couse they're using cave code to inject their own script followed by actual jump code. They look totally correct to me and from pcsx2 perspective they also use only simple type of code that works without any problems. With very rare exceptions you need codes made for exactly same game version for them to work, and those more likely weren't made for your version, that's all.
(09-09-2013, 04:06 PM)nosisab Ken Keleh Wrote: [ -> ]The codes come encrypted often so the need to decrypt them to raw, the problem becomes identifying the encryption method which changes with the used engine brand and even between versions.

that's right.
i want to avoid these dependency on emulators.
i have used some kind of emulators not only pcsx2 and some kind of cheat code tools.
that's why i recommend to use plain address, plain values and exactly bytes length of values.

i don't know what kind of cheat codes ("0, 1, 2, 3, 5, 8, 9, D" and so on) supported by "extended" now and in the future.
(at least "0, 1, 2" are safe i think.)