I keep having errors for this mod, not sure if this something that I can ignore or not.
2020-10-21T20:33:40 2015.329 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[starts-with(@name,'food') and not(contains(@name, 'Moldy')) and not(contains(@name, 'Raw')) and not(contains(@name, 'Crop')) and not(@name='foodEgg') and not(@name='foodShamSandwich') and not(@name='foodRottingFlesh')]/effect_group/triggered_effect[@cvar='.DiseaseRoll']" 2020-10-21T20:33:40 2015.332 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[starts-with(@name,'food') and not(contains(@name, 'Moldy')) and not(contains(@name, 'Raw')) and not(contains(@name, 'Crop')) and not(@name='foodEgg') and not(@name='foodShamSandwich') and not(@name='foodRottingFlesh')]/effect_group//display_value[@name='dFoodPoisoningRisk']" 2020-10-21T20:33:40 2015.334 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[starts-with(@name,'food') and not(contains(@name, 'Moldy')) and not(contains(@name, 'Raw')) and not(contains(@name, 'Crop')) and not(@name='foodEgg') and not(@name='foodShamSandwich') and not(@name='foodRottingFlesh')]/effect_group/triggered_effect[@buff='buffIllFoodPoisoning01']" 2020-10-21T20:33:40 2015.337 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[@name='foodCropGraceCorn' or @name='foodCropYuccaFruit']/effect_group/triggered_effect[@cvar='.DiseaseRoll']" 2020-10-21T20:33:40 2015.340 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[@name='foodCropGraceCorn' or @name='foodCropYuccaFruit']/effect_group/display_value[@name='dFoodPoisoningRisk']" 2020-10-21T20:33:40 2015.343 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[@name='foodCropGraceCorn' or @name='foodCropYuccaFruit']/effect_group/triggered_effect[@buff='buffIllFoodPoisoning01']" 2020-10-21T20:33:40 2015.344 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[@name='drinkJarBoiledWater']/effect_group/triggered_effect[@cvar='.DiseaseRoll']" 2020-10-21T20:33:40 2015.346 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[@name='drinkJarBoiledWater']/effect_group/display_value[@name='dDysenteryRisk']" 2020-10-21T20:33:40 2015.348 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[@name='drinkJarBoiledWater']/effect_group/triggered_effect[@buff='buffDysenteryCatch']"
After reviewing items.xml for A19 I think that the devs have fixed the issues with cooked foods and boiled water causing illnesses. i.e. this mod is moot
quick question does the mod work with alpha 18.4 cause it doesn't make sense that i'm getting sick from cooked food and boiled water so this mod would be perfect if it supports the latest version thanks
I was looking at a few mods that did just this, but I chose to use yours. You actually have comments in the xmls explaining what the code is doing. Well done! <3
I'm glad you found that useful. Adding comments make it easier to come back to code and fix it later which is probably my largest motivator. Not that this is complicated stuff but it's a good practice, and I hoped it would help aspiring modders learn something too.
You're right. I accidentally removed food poisoning from old sham sandwiches too. I'll put out an update in a few hours. Thanks for posting this. I don't seem to get notifications for these though... I suggest using the bug tracker next time something comes up, for this or anyone else's mods.
I personally like A18 for the most part and I try not to slam TFP for making what is a good game overall, but this change was poorly thought out in my opinion. That said, I wouldn't say I "did their job"; this change was clearly intentional and not a bug on their part. You could however say they should have left that up to us, but then arguably that's exactly what this mod is lol. Either way, glad you found it useful.
19 comments
2020-10-21T20:33:40 2015.329 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[starts-with(@name,'food') and not(contains(@name, 'Moldy')) and not(contains(@name, 'Raw')) and not(contains(@name, 'Crop')) and not(@name='foodEgg') and not(@name='foodShamSandwich') and not(@name='foodRottingFlesh')]/effect_group/triggered_effect[@cvar='.DiseaseRoll']"
2020-10-21T20:33:40 2015.332 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[starts-with(@name,'food') and not(contains(@name, 'Moldy')) and not(contains(@name, 'Raw')) and not(contains(@name, 'Crop')) and not(@name='foodEgg') and not(@name='foodShamSandwich') and not(@name='foodRottingFlesh')]/effect_group//display_value[@name='dFoodPoisoningRisk']"
2020-10-21T20:33:40 2015.334 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[starts-with(@name,'food') and not(contains(@name, 'Moldy')) and not(contains(@name, 'Raw')) and not(contains(@name, 'Crop')) and not(@name='foodEgg') and not(@name='foodShamSandwich') and not(@name='foodRottingFlesh')]/effect_group/triggered_effect[@buff='buffIllFoodPoisoning01']"
2020-10-21T20:33:40 2015.337 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[@name='foodCropGraceCorn' or @name='foodCropYuccaFruit']/effect_group/triggered_effect[@cvar='.DiseaseRoll']"
2020-10-21T20:33:40 2015.340 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[@name='foodCropGraceCorn' or @name='foodCropYuccaFruit']/effect_group/display_value[@name='dFoodPoisoningRisk']"
2020-10-21T20:33:40 2015.343 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[@name='foodCropGraceCorn' or @name='foodCropYuccaFruit']/effect_group/triggered_effect[@buff='buffIllFoodPoisoning01']"
2020-10-21T20:33:40 2015.344 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[@name='drinkJarBoiledWater']/effect_group/triggered_effect[@cvar='.DiseaseRoll']"
2020-10-21T20:33:40 2015.346 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[@name='drinkJarBoiledWater']/effect_group/display_value[@name='dDysenteryRisk']"
2020-10-21T20:33:40 2015.348 WRN XML patch for "items.xml" from mod "Food Safety" did not apply: <remove xpath="/items/item[@name='drinkJarBoiledWater']/effect_group/triggered_effect[@buff='buffDysenteryCatch']"
Endorsed!
Gracias!