Toma400 / The_Isle_of_Ansur

Python-based text RPG game, successor of Between Shadows and Light.
Other
9 stars 0 forks source link

Modloader #7

Closed Toma400 closed 2 years ago

Toma400 commented 2 years ago

Modloader bound to menu, where you would be able to:

Toma400 commented 2 years ago

Possibility to opt out unwanted modules to be loaded in-game?

If so, I see such refactor possible: loaded modules are loaded before game starts, and saved to temporary file (which gets overwritten with each run) as a list. Then, game loads elements only from the list - so, if you make modloader, it could just opt out specific mods from that list, or blacklist them from being written there each time game loads. It could be using settings as a point of reference - list inside settings would be used to not load packs next time. If you add that feature though, you'd need to be able to manipulate such list, so player can un-blacklist elements.

Toma400 commented 2 years ago

Implemented in 028756f and commits before it. Closing.