xforce / anno1800-mod-loader

The one and only mod loader for Anno 1800, supports loading of unpacked RDA files, XML merging and Python mods.
MIT License
367 stars 92 forks source link

[Suggestion] Mod configuration #63

Open Serpens66 opened 3 years ago

Serpens66 commented 3 years ago

For more complex mods (with more than one xml file), I would suggest mod-configuration.

For example a mod that changes Item/goods prices. A perfect modsetting would be to allow the user to define a multiplier, regardless which value. This value will then multiply all prices.

So the user enters this value somewhere, while the xml script uses a placeholder. And when the mod loader injects the mods xml file into the assets.xml from the game, it will replace the placeholders according to the setting of the user. We do not even need an UI for this, we could simply add a "modsettings" txt file or sth like this to the mod, which contains the name and value of a variable, where the user can change the value to their liking. This can also be expanded for enableing/disabling certain features (where it is not trivial to simply disable a file).

I'm no expert at xml and only did a few mods for civilization 5/6, where you can also use sql, to fill the xml database. So would sql also be something the mod loader could support? At least in civilization sql is the way to replace/merge/remove and so on.

Even if my example may not be the best, I'm sure there are good use-cases for such modsettings.

jakobharder commented 1 year ago

This is now a mod manager feature in https://github.com/anno-mods/iModYourAnno