forums.PPSSPP.org
How to inject cwcheat codes onto game memory? - Printable Version

+- forums.PPSSPP.org (https://forums.ppsspp.org)
+-- Forum: PPSSPP - Playstation Portable Simulator Suitable for Playing Portably (/forumdisplay.php?fid=1)
+--- Forum: Off-Topic (/forumdisplay.php?fid=16)
+--- Thread: How to inject cwcheat codes onto game memory? (/showthread.php?tid=23812)



How to inject cwcheat codes onto game memory? - Garygrump - 12-19-2017 11:07 AM

I've been hacking patapon 3 these past days, discovering new things everyday, but i watched a video of a guy who made a cape colour changing code and he also injected it into game memory, i just want to know how this could be possible.

Thanks in advance


RE: How to inject cwcheat codes onto game memory? - LunaMoo - 12-19-2017 02:12 PM

You don't "inject cwcheat codes onto game memory", you're using CWCheat format and cheat engine which parses it to inject YOUR changes into game memory. - Which can be anything from text or other values changing existing game variables to actual code in mips assembly which will then be executed by the game.

This thread explains briefly how to use PPSSPP's built-in cheat engine aka how to copy and paste existing other people's cheats to be used in ppsspp. And places like this can explain cwcheat syntax if you need it for anything.

I have to add a warning that patapon 3 is not a noob friendly game when it comes to patching it's memory and unfortunately most people who made cheats for it did not have required knowledge, this caused some apparently famous "Patapon 3 infection" which people blamed on "hackers" and in reality was caused by dumb cheats replacing some pointers which in result corrupted savedata. So just in case, best backup your savedata before using any cheats made for this game;p. PSP cheating scene stopped evolving at stone age while PSP had quite a few more modern games, so unfortunately a lot of awful cheats do exist and if you want to be safe you should probably back up savedata before cheating in any game.;]


If you actually mean you want to "write code and inject it in game memory" the code as in code executable by the game, you need to learn mips assembly if you don't know it already and then just format it into basic write codes(0x2), it's also a good practice to place a simple check code(0xE is good enough, I always use those;p) before to avoid being injected in incompatible game version and also to avoid re-injecting the code when it's not required. In that situation more complex cwcheat code types are useless to even look at as still much more limited while very confusing and awful to debug.


RE: How to inject cwcheat codes onto game memory? - Garygrump - 12-19-2017 02:45 PM

I already do know how to hack with cwcheat, I've made some good codes here and there, i dont know why the title doesnt include mips since i also do know that but im a noob at mips so if you could link me to anything or teach me about it, it would be great!


RE: How to inject cwcheat codes onto game memory? - LunaMoo - 12-19-2017 04:42 PM

There's lots of sources to learn mips, ie documents like this are more than enough for cheating purposes, you can also just learn in more practical way by creating cheats, other patches/mods or even emulator specific fixes for games and looking up things that you see which you don't understand.

PPSSPP disassembly is pretty good tool for doing that(much better than anything available on PSP that's for sure;p), althrough available only on windows. Also it only has a very basic search function, so for searching some variables to track back into the code it's best to use external tools like Cheat Engine, I made a cheat table(link in signature) which makes it pretty easy to use with PPSSPP, through it might have some new problems with windows 10 as microsoft supposedly supports companies that complain about cheat engine breaking their bussiness model of selling in-game cash and stuff aka cheats for real money;].


RE: How to inject cwcheat codes onto game memory? - Garygrump - 12-19-2017 05:05 PM

Thanks!


RE: How to inject cwcheat codes onto game memory? - Garygrump - 01-11-2018 04:04 PM

(12-19-2017 04:42 PM)LunaMoo Wrote:  There's lots of sources to learn mips, ie documents like this are more than enough for cheating purposes, you can also just learn in more practical way by creating cheats, other patches/mods or even emulator specific fixes for games and looking up things that you see which you don't understand.

PPSSPP disassembly is pretty good tool for doing that(much better than anything available on PSP that's for sure;p), althrough available only on windows. Also it only has a very basic search function, so for searching some variables to track back into the code it's best to use external tools like Cheat Engine, I made a cheat table(link in signature) which makes it pretty easy to use with PPSSPP, through it might have some new problems with windows 10 as microsoft supposedly supports companies that complain about cheat engine breaking their bussiness model of selling in-game cash and stuff aka cheats for real money;].

I'm back and I've improved a lot and i want to thank you so much for the help You've given me ever since i joined these forums Smile