Roland
Community Moderator
Tonight I tackled removing the xp from the game using xpath. This involved going deeper into nodes than I ever had before. Someone had suggested a few weeks back changing one of the multipliers to 0 and I discovered that this worked like a charm. But now I wanted to do it by xpath instead of changing the xml file itself. Here are some things I learned:
1) It is easier to start from the end of a string of nodes and work your way back to the top. I tried starting at windows/window/.... and working my way deep deep into where the xp multiplier settings were but that was way too difficult. So instead I went to the very end and went backwards and just like solving a maze it was a lot easier that way.
2) Defaults are hardwired. I tried to "force the issue" by removing all options and just having 0 as the only choice hoping it would become the default. It didn't work. 100% must be the default but I could have 0% as an alternative option. So in my mod I will have just 0 and 100 as the only two choices and I'll just have to mention in the mod description that the player will have to select 0% in the options.
3) You have to mirror the organization of the config file. Since the windows xml file I needed was inside the XUi_Menu folder I had to create a matching folder and a matching windows file inside that folder and then use <XUi_Menu> and </XUi_Menu> as the directory for my xpath instead of <config> </config>. It makes sense in hindsight but it took me a lot of trial and error before I figured it out.
1) It is easier to start from the end of a string of nodes and work your way back to the top. I tried starting at windows/window/.... and working my way deep deep into where the xp multiplier settings were but that was way too difficult. So instead I went to the very end and went backwards and just like solving a maze it was a lot easier that way.
2) Defaults are hardwired. I tried to "force the issue" by removing all options and just having 0 as the only choice hoping it would become the default. It didn't work. 100% must be the default but I could have 0% as an alternative option. So in my mod I will have just 0 and 100 as the only two choices and I'll just have to mention in the mod description that the player will have to select 0% in the options.
3) You have to mirror the organization of the config file. Since the windows xml file I needed was inside the XUi_Menu folder I had to create a matching folder and a matching windows file inside that folder and then use <XUi_Menu> and </XUi_Menu> as the directory for my xpath instead of <config> </config>. It makes sense in hindsight but it took me a lot of trial and error before I figured it out.