How are games made ‘moddable’ without revealing source code?

1.09K views

Do they just have a very abstract and capable API? some mods for some games can be pretty complex.

In: Technology

6 Answers

Anonymous 0 Comments

So one thing to remember is that there is source code and then there are game resources (graphics, sounds, parameters stored in text files, etc). Usually modding is done by modifying resources. To take an example – let’s say that you have a car racing sim. The game will have a folder structure where you can throw in car “skins” or models, it may provide the ability to enter the car’s parameters in a text file (how much power it has, how much tire grip, etc). Game’s source code will “know” where to look for those resources and how to use them, provided they have the right structure and format.

I don’t think APIs are used that much for typical modding. They may be used more for capturing game data. In the racing game example, it may allow you, for example, to capture more telemetry than the basic game.

You are viewing 1 out of 6 answers, click here to view all answers.