I've been experimenting with RM2k3 for a while now, and I wanted to try modifying something I can't with events, and I thought about patches, but I can't find anything on the internet about how to do it. If anyone knows, help would be appreciated.
How to make a patch for RM2k3?
RPG Maker 2000/2003 SupportBefore we start: I'm going to break the process down to only a few steps (and there's a chance some of my trying to explain may end-up wrong), in reality it's far more complex and nerve-stretching. I really don't want to demotivate anyone, just don't underestimate what it means to create a patch. This is something way harder to do than implementing new stuff into the game-interpreters of RPGXP/VX/Ace (Ruby) or RPGMV/MZ (JS) and if I remember correctly, at least the RPG2003's patch-contract forbids users to share super-detailed knowledge about RPG_RT.exe that would make it easier for others to jump-in faster.
Creating a patch for RPG_RT is all about reverse-engineering an already compiled file and then putting modifications into it on assembler-level, which is the most deep layer where a program exactly instructs your computer what to do, with each and every tiny step needed.
So at first you have to know how the assembly-language of an x86 Windows computer looks and works, at least some computer science basics on how a CPU operates. Even if you are experienced in programming with languages on more readable layers (C++, C#, Ruby, JS,...) already, this stuff can still be hard as hell to understand.
Next step is to analyze the content and behavior of the program that we gonna "hack" with a disassembler-tool (of which are many out there, pick your favorite), figuring out at least in part where the built-in functions (and there are hundreds) we need for our patch are located inside the file, what they do and what the memory-addresses contain that are referenced by them (or not referenced but needed for the patch).
And finally after that, you can at least start with thinking about how to implement the modifications you need. Getting to this step won't be about minutes or hours, the timespan for such thing is way longer. And since this is a process of hacking a program, every byte set wrong will make it behave wrong, crash or even worse. Also, you are limited in useable space where to put your hacked code (at least RPG_RT.exe 2003-1.12 gives you very large empty areas for such stuff).
~炬燵あ
Creating a patch for RPG_RT is all about reverse-engineering an already compiled file and then putting modifications into it on assembler-level, which is the most deep layer where a program exactly instructs your computer what to do, with each and every tiny step needed.
So at first you have to know how the assembly-language of an x86 Windows computer looks and works, at least some computer science basics on how a CPU operates. Even if you are experienced in programming with languages on more readable layers (C++, C#, Ruby, JS,...) already, this stuff can still be hard as hell to understand.
Next step is to analyze the content and behavior of the program that we gonna "hack" with a disassembler-tool (of which are many out there, pick your favorite), figuring out at least in part where the built-in functions (and there are hundreds) we need for our patch are located inside the file, what they do and what the memory-addresses contain that are referenced by them (or not referenced but needed for the patch).
And finally after that, you can at least start with thinking about how to implement the modifications you need. Getting to this step won't be about minutes or hours, the timespan for such thing is way longer. And since this is a process of hacking a program, every byte set wrong will make it behave wrong, crash or even worse. Also, you are limited in useable space where to put your hacked code (at least RPG_RT.exe 2003-1.12 gives you very large empty areas for such stuff).
~炬燵あ
Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-patch-for-rm2k3.144287/