Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how do cw cheats work? Can't figure it out
03-19-2019, 04:31 PM
Post: #4
RE: how do cw cheats work? Can't figure it out
It's hard to believe you made an assembly cheat which requires self learning of mips language and software debugging, yet totally failed at searching for syntax of the most popular cheat format of the PSP especially that different lines are broken in different way like mixing two different cheat formats which as I said looks like failed auto conversion between action replay and cwcheat formats.

But ok, in that case instead of trying to fix the cheat I will explain the syntax. Pretty much for injection of your own scripts all you need is simple 32 bit write code:
Code:
_L 0x2aaaaaaa 0xbbbbbbbb
where aaaaaaa is an address reduced by 0x8800000 and bbbbbbbb is 32 bit value you want to write

Personally I also use an extra check code to avoid re-writing cheat to memory and at the same time to check if it's being used in the right game/version since otherwise it would not work while still writing to memory leading to corruption and nasty issues over time.
Code:
_L 0xEaaabbbb 0xcddddddd
where aaa is number of lines to skip, bbbb is value to check, c is an argument for the check, in this case only 0 is really useful and means "if equal run aaa of following cheat lines" and ddddddd is the address of the 16bit value to check.

Example of patching the 0x08901250 address that originally had 0x240619E8 with setting a2 to 0 instead of the original code including a safety check:
Code:
_L 0xE00119E8 0x00101250
_L 0x20101250 0x00003021
The safety check is additionally helpful with longer scripts since re-writing game code on each tick can and in extreme cases will cause some hickups due to JIT usage in emulator.

That's really everything a person needs to know about cwcheat format for code injection.

http://forums.ppsspp.org/showthread.php?tid=6594 - Custom PPSSPP Shaders!
http://forums.ppsspp.org/showthread.php?tid=3590&pid=117172#pid117172 - simple CE scripts to help creating CWCheats,
https://github.com/LunaMoo/PPSSPP_workarounds - CWCheat workarounds.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: how do cw cheats work? Can't figure it out - LunaMoo - 03-19-2019 04:31 PM

Forum Jump: