Toma400 / The_Isle_of_Ansur

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

Better "prioritised" system for panoramas and menu sounds & Mod Loading Order #37

Open Toma400 opened 2 years ago

Toma400 commented 2 years ago

Having possibility to prioritise panoramas and sounds is cool, as they will overwrite vanilla, but... They will not overwrite other mods.

To explain it a bit in detail: if more than one mod use "PR%_" system, they will both shuffle through their data, so more than one mod can be prioritised. It's okay if you just want to overwrite vanilla, but not if you want to rule over all possible mods.

Solution for this can be kinda simple, kinda not, mechanic known from Morrowind: Mod Loading Order (later: MLO) This would ensure that if your mod loading order is correct, first one will be picked up. I suggest having new key, like "OV%" to make prioritised and overwriting different behaviours, as it may be useful. If "OV%" is used, listed backgrounds/sounds will also check which mod loaded first and limit the list only to those entries.

Additional work you will need to do here is to make Mods Screen to be able to change MLO in-game, so they can be listed in correct order. Additional optional info.json value will not hurt either, and can be good way of pre-determining MLO status for your mod, without manually setting it by player.

{
   "loading_number": -50
}

Example above would be run before anyone with number greater than -50.