mr.devolver Posted March 6, 2020 Share Posted March 6, 2020 Hello! I was trying to create a small modlet patch to change some settings in Xyth's NPCs. The idea was to have one modlet patch that would make some changes without changing the original files, so that the changes are applied even if the Xyth's NPCs mod itself gets an update. I started with some first changes for testing which must go to entityclasses.xml file, so entityclasses.xml of my mod looks like this: <configs> <set xpath="/entity_classes/entity_class[starts-with(@name, 'NPC')]/effect_group[@name='Base Effects']/passive_effect[@name='HealthMax']/@value">800</set> <set xpath="/entity_classes/entity_class[starts-with(@name, 'NPC')]/effect_group[@name='Base Effects']/passive_effect[@name='HealthChangeOT']/@value">10</set> </configs> Unfortunately, this doesn't work and I have no idea why. In the game, I receive no errors related to this mod, just two warnings telling me that my settings did not apply. I tried to solve this with couple of minor changes, but no matter what I tried, it always failed to apply in game. What the heck am I doing wrong? Link to comment Share on other sites More sharing options...
sphereii Posted March 6, 2020 Share Posted March 6, 2020 Those are valid xpath. Which modlet are you adding them? Are they adding before the NPC pack loads? Link to comment Share on other sites More sharing options...
xyth Posted March 6, 2020 Share Posted March 6, 2020 Same as Sphereii, Id guess your xpath is happening before the NPC mod xpath. Also, be careful as there are 2 lines that might be changed with your xpath line: <passive_effect name="HealthMax" operation="base_set" value="200"/> <passive_effect name="HealthMax" operation="perc_set" value="1"/> Link to comment Share on other sites More sharing options...
mr.devolver Posted March 6, 2020 Author Share Posted March 6, 2020 Thanks guys, so how can I set the load order to make sure my patch is loaded after the mod itself? And Xyth, thanks for reminding me of that other value, I guess that would give me some more headache once the patch gets applied. What does that other value HealthMax with operation "perc_set" does anyway? Link to comment Share on other sites More sharing options...
Ragsy 2145 Posted March 6, 2020 Share Posted March 6, 2020 Modlets load in alphabetical order so if you prefix the Modlet Z it will load after the xyth NPC mod. Link to comment Share on other sites More sharing options...
mr.devolver Posted March 6, 2020 Author Share Posted March 6, 2020 Thanks Ragsy! And welcome back, I haven't seen you around here lately! Link to comment Share on other sites More sharing options...
Ragsy 2145 Posted March 6, 2020 Share Posted March 6, 2020 I will hopefully be back and active soon, have some real life stuff I have to bring to a close and deal with at present . Regards Ragsy !! Link to comment Share on other sites More sharing options...
mr.devolver Posted March 7, 2020 Author Share Posted March 7, 2020 Good luck with that real life stuff then. Link to comment Share on other sites More sharing options...
xyth Posted March 7, 2020 Share Posted March 7, 2020 If people plan on modifying the NPC mod I should probably prefix it with 1- to indicate it builds on the 0- creature pack. Then folks wont have these issues in the future. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.