spillerrec / VirtualAA2

2 stars 0 forks source link

Conflict resolving #12

Open spillerrec opened 8 years ago

spillerrec commented 8 years ago

Some mods/updates need to overwrite files, but to avoid mods overwriting each other by accident we need to specify explicitly which files are supposed to be replacements.

We need some configuration file containing the following information for each object which needs to overwrite something:

We can run into the following mis-configurations:

However if a mod is missing we still do not know what. Maybe we should have a dependency list of some kind? I'm not sure if it is a good idea to use for resolving anything, I'm more inclined to just use it for a human-readable hint to what might be missing.

A missing mod might be cause of the ordering the mods are loaded in is incorrect. Is it possible to somehow detect the order at runtime, or do we need to specify it manually?

Another issue is with replacing de-duplicated parts. Sometimes you might want to change all of them, sometimes perhaps just for some files. Some way of specifying this might be needed, but I would like to have real examples to design something for.