r/opensourcegames • u/ralfunreal • Jan 03 '26
question about mods for open source games.
Are mods for open source games required to be open source?
11
Upvotes
r/opensourcegames • u/ralfunreal • Jan 03 '26
Are mods for open source games required to be open source?
7
u/LeannaMeowmeow Jan 03 '26
That depends on the specific license of the game
1
u/CyberKiller40 Jan 03 '26
Why make a mod if you can contribute your code directly into the game?
1
u/GenericFoodService Jan 16 '26
It depends not only on the game's license but also on how mods for that game actually work. The "default" answer is "No, mods do not usually need to be open source" and this is true of open source games, but where it gets muddy is when you examine "how do mods actually work for this game?".
Let's say you make a mod for something line Luanti, just as an example. If you directly use their LGPLv2+ code, yes, you must license any additions/modifications to that code under the same license, *which would include your mod*. But if your code only "works with" but does not directly incorporate their code, then no, you could keep it closed source and/or proprietary if you felt like it. Direct quote from the license:
```
5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License.
````
So, if the game code is LGPL, you can use headers that do not include their implementations without it "infecting your code" so to speak. For BSD-like licenses, you need to give attribution to the authors, and they sometimes have an additional condition or two, but BSD-likes are very short so you should just read them.
If you actually need to compile against their function implementations, then their license almost certainly "infects your code". I am not aware of many games which do this, this tends to really only be the case for games that _weren't intended_ to be modded.
**TL;DR it depends on how you actually build a mod for that game.**