Comment on How do people make mods for games without access to the game's source code?
exist@sopuli.xyz 2 weeks agoBasically yes, you find which values in memory are changing when you do actions ingame, and you can also figure out which functions run etc. Then you can for example replace the function call with your own function. I can’t do this myself and it is very time consuming, you can watch tutorials on IDA or Ghidra to get a gist.
But often it is not that hard, c# or java dont get compiled into machine code and usually keep more metadata about the code, sometimes basically the original source code. Unity, Godot and UE all have some level of support (or reverse engined knowledge) for modding even if the game iteelf doesnt explicitly care about it. Of course it is much easier is the game is made with modding in mind though.