noxworld-dev / opennox

OpenNox main repository.
GNU General Public License v3.0
458 stars 25 forks source link

In-game mod library #226

Open dennwc opened 3 years ago

dennwc commented 3 years ago

In the spirit of #225, we could also allow downloading mods in-game.

Currently there's not a lot we can do in terms of builtin mods support, but we can at least:

  1. Download an archive containing the mod.
  2. Extract it into a separate folder.
  3. Use our FS override to redirect Nox file access to that folder (fallback to main dir if there's no file).
  4. Force the game to reload all the resources.

This should allow modders to change .bin files (e.g. gamedata.bin for the game balance) and upload it as a mod, without requiring the user to replace files manually.

dennwc commented 3 years ago

We could consider using mod.io instead of implementing everything from scratch.

dennwc commented 3 years ago

Actually if we take LUA into account, we will need to "mount" multiple mods at once, e.g. libraries.