I know some programming, but I'm not sure how modders figure out what to change when they don't have the game's source code. Are there general skills that carry over between games, or do you have to start from scratch each time?
How do people mod compiled games, and do those skills transfer?
Answers
Compiled code is only part of a game. Compilation turns source code into a form a computer can run. It isn't necessarily a copyright protection measure, and it doesn't mean every file is compiled code.
Many games keep settings, dialogue, textures, maps or other data separate from the executable. Some also provide a scripting system or a modding API that lets you add behavior without changing the compiled program. In those cases, modders can learn a lot from the files and documentation the developers made available.
Reply to this answer
When a game doesn't provide a friendly way in, the work can get much more technical. Modders may inspect file formats, unpack assets, compare files before and after a change, or examine compiled code with disassemblers and decompilers. Those tools can reveal structure and behavior, but they don't magically recover the original source project.
Then there's the question of how to make a change stick. Depending on the game, that might mean replacing data, using a community loader, or altering behavior while the game runs. Updates can break those techniques, and some games are much harder to modify than others.
Mirexan.7j:
That also helps explain why one game can have mods quickly while another takes much longer. The available hooks and tools make a big difference.
Reply to this answer
The transferable part is the problem solving. Learning to read unfamiliar code, test a small change, trace where data comes from and debug a broken result will help almost anywhere.
Specific tools transfer unevenly. Two games built on the same engine may share file formats or concepts, but they can still use very different systems on top of that engine. Games in the same series can be closer to each other than two unrelated games using the same engine.
Reply to this answer
Pick one game you like and look for its official modding documentation or existing community tools. Start with a small, visible change, like a configuration value or an asset, then figure out how the game loads it. Once that makes sense, try a script or a behavior change if the game supports one.
Keep a clean copy of the original files and change one thing at a time. That makes it much easier to tell what caused a result and undo mistakes. You don't need to learn every reverse engineering technique before making your first mod.
Reply to this answer
Add your answer
Answers are reviewed before publication.
r.603~kivra:
So a mod might just change data the game already knows how to load, rather than changing the executable?
Nerilo+7f:
Exactly. A different texture or a changed configuration value can be a mod without any executable changes.