BattletechModders / ModTek

Mod system for HBS's PC game BattleTech.
GNU Lesser General Public License v2.1
121 stars 34 forks source link

More Sophesticated Load Order Handling #18

Closed mpstark closed 5 years ago

mpstark commented 6 years ago

Currently load order is done in rounds and the first mod to be loaded "wins" any conflicts. Also, there is not yet a way to specify load order.

A better solution would maximize number of loaded mods while also following any specific directives in a some sort of specified load order file.

CptMoore commented 6 years ago

ok, I had to do hardpoint sorting and figuring out what hardpoint gets what prefab... so i had to think about these issues a lot lately.

My point here is that the easier solution always wins. Don't forget its not only you but everyone else who needs to understand the load order mechanism. So yours sound fine, but what is current loader order without dependencies? I hope its sorted by mod name.

Oh and if load order can't be completed, thats a bug and if possible battletech.exe should stop working and you should display a dialog telling the guys to fix their installed mods before retrying.

That said, if we had a BattleTechLoader.exe, that could do a preliminary loadorder check for ModTek and display a dialog before even starting battletech or patching anything..

CptMoore commented 6 years ago

I hope its sorted by mod name.

Just saw that it isn't so I'll make sure the load order is deterministic, you'll see a PR soon about this.

I take it back, just saw the latest source , just doing a code review now

I think I already found a bug so and doing some code style cleanup there, nothing major

don't think anymore that there was a bug, PR is open #26

mpstark commented 6 years ago

ModTek now handles loading load order from a file in 0.2.0