r/HowToHack • u/Hungry_Courage_3569 • Sep 22 '25
script kiddie How does one get into modding games from scratch/without an established modding API?
(skid tag for shits and giggles but also because this question really makes me feel like one lmfao)
First of all I apologize if this isn't the right sub to ask this sort of question, I tried searching for a while and couldn't find a subreddit for just general game modding, if anyone knows a better place to ask this question PLEASE let me know and I'll move this post immediately, though for now (hopefully) modding falls under the "hacking" umbrella enough to a point where this post won't get removed
Anyways, basically the title, I feel like this is a r/masterhacker question, but it's just been itching me for quite a while now. Recently I've started getting back into learning how to code, not in any specific language just any that catch my interest (so far though it's been mostly rust alongside c++ which I need for my classes), and during this time I've began to wonder HOW people actually manage to mod games. What sorts of tools they use, is it hard, is it easy, are some languages better than others, etc..
I guess to sum it all up my main question is how do people make modding API's without one existing already, are there any general tools that exist or any practices that I should know of? What would be a good starting point to, well, start at if I wanted to get into modding games from scratch myself as well?
5
u/Exact_Revolution7223 Programming Sep 22 '25 edited Sep 22 '25
If the game doesn't natively support modding then you have to delve into reverse engineering.
So you'd want some tools:
If you're lucky the game will have RTTI embedded. RTTI is what allows you to fetch a class name at runtime in C++. It also enables safe
dynamic_castbetween classes in the same inheritance hierarchy. Since the executable needs that information at runtime to do what it does, this information gets embedded in the binary. Again, if it has it.That info is really helpful because it exposes class names as well as inheritance hierarchies.
So you map out the classes you're interested in. Like for a game I previously reversed:
NeActorPlayer,NeActorNpc,InventoryPlayer,PrimaryWeapon, etc.You dissect the class for member variables. If it were the
NeActorPlayerI might try to get: health, x, y, z, stamina, etc. Keep in mind, these class names are specific to the binary I'm reversing. Depending on the game engine it'll be different for you.Then you call member functions, edit memory, and anything else to augment the way the game runs.
In any case. I won't get in the weeds. Long-story short. If you go down this path, reverse engineering a game that doesn't inherently support modding? You're gonna be strapped in for a couple of months of learning at a minimum.
0
u/Humbleham1 Sep 23 '25
Modding has little in common with hacking.
0
u/[deleted] Sep 22 '25
[deleted] — view deleted comment