• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

I need a second opinion, please help.

Noisy Pants

New member
I hate Charred Meat, therefore I downloaded a mod that is suppose to replace all Charred Meat with Grilled Meat, yet there is a problem. It says that there is something wrong with this line:

        <set xpath="/lootcontainers/lootgroup[@name='groupFoodPileCommon']/item[@name='foodCharredMeat']/@name">foodGrilledMeat</set>

I've verified that everything is spelled correctly and such, even so, it still doesn't want to work - please help.

 
<setattribute xpath="/lootcontainers/lootgroup[@name='groupFoodPileCommon']/item[@name='foodCharredMeat']" value="name">foodGrilledMeat</setattribute>




I would personally do this instead. But I've not tested it as I can't at the moment.

 
easiest thing to do is to:

<set xpath="//item[@name='foodCharredMeat']/@name">foodGrilledMeat</set>




That should change all instances of charred meat to grilled meat.

Also, you didn't mention what your error message was

 
easiest thing to do is to:

<set xpath="//item[@name='foodCharredMeat']/@name">foodGrilledMeat</set>




That should change all instances of charred meat to grilled meat.

Also, you didn't mention what your error message was


I am not very good with making mods but am wondering does that just rename the charred meat to grilled meat?

If so will you also not have to remove the negative water buff from it?

If I am not right just ignore my post :D

 
I am not very good with making mods but am wondering does that just rename the charred meat to grilled meat?

If so will you also not have to remove the negative water buff from it?

If I am not right just ignore my post :D
No this will change the name of the item it references in the XML file.

Essentially it means any Charred Meat instead fully becomes Grilled Meat and Charred Meat almost doesn't exist in the game :)

 
I am not very good with making mods but am wondering does that just rename the charred meat to grilled meat?

If so will you also not have to remove the negative water buff from it?

If I am not right just ignore my post :D


You are not 100% wrong.

If you put that line in an items.xml file, it would change the name of the item.  However, since we are putting that line in a loot.xml file, then it just changes the loot item in those groups with charred meat.

 
Back
Top