Hey guys. I have a proposal for some of our programming wizards that I think would enhance the R2 modding scene a lot.
As most modders have found by now, you can't make a mod without only the lines of a db table that you want to change. Instead you have to include the whole file, conflicting and invalidating countless other mods that might want to use that same table for something else. I would like a propose what I feel is an elegant workaround for this problem:
A tool that can automatically compare and merge mods, taking only the changes from vanilla made to any table. This could be accomplished as follows:
1. The tool loads (or will load) reference vanilla data, either extracted or directly from data_rome2.pack
2. A mod is loaded into the program as a .pack, let's call this M1
3. Additional mods may be loaded. Theses are the ones you want to merge with M1. Let's call them M2, M3, etc.
What the program then does with this information is:
4. Compares table changes between M1 and vanilla, recording only what lines have changed from the reference data and saves these changes as working data.
5. Repeats this process for M2, M3, etc
6. Takes these recorded changes and writes them back to a new copy of the reference data.
7. If mods change the same entry in a table, simply ask the user which change data to use (i.e. from M1, M2, M3? etc) and repeat until all conflicts are resolved.
8. Saves a new .pack with only tables updated with the merged changes.
I think this would be a great resource for modders (and advanced users). It would save huge amounts of time and would let players mix and match much more easily than they can right now.
Thoughts?




Reply With Quote






