Weidu mod for the UI possible ?
lefreut
Member Posts: 1,462
***
Post edited by lefreut on
0
Comments
So, for example, let's assume I had 2 GUI options: a purple GUI and a pink GUI. (Just go with it for the sake of the example please. ) I would set up the .tp2 file to ask, "Do you want to install purple GUI or pink GUI?". When the user selects their choice, then it would install the GUI files in /modfolder/purpleGUI or /modfolder/pinkGUI based on that choice.
Basically, you separate out things based on the choices given to the user. Be careful though. If 2 (or more) options use the same file, then you need to append to that file. You don't want to be overwriting things.
Here's the WeiDU documentation: http://www.weidu.org/WeiDU/README-WeiDU.html
What you're looking for are subcomponents.
Here is a decent explanation of diff patch files: http://www.thegeekstuff.com/2014/12/patch-command-examples/
I don't think WeiDU knows the new file types yet, so the bigger problem is that it probably can't extract the UI files from the biffs until we get an update.
For the git case you could have one branch of the repository have the original UI file and make a new branch off if this one for each optional component committed to them. To mix and match the user can merge the changes the want into master (as long as the don't conflict). One branch can also have any official UI changes in future patches so mods that make small changes aren't lost. The hard part is making a user friendly interface for this, git is not the easiest thing in the world to use.
The game (at its core) is 15 years old. Good luck.
Edit: The second case you mentioned would be solved by a there way merge.