Noblegases Posted July 8, 2020 Share Posted July 8, 2020 How would I add a xpath to add my own customs food into the loot groups "airdropfoods" "junk" "coldfoods" and "cannedfood" Whenever i tried with my attachted xpath, when loading into the game in the f1 menu, it says wrn xml patch for "loot.xml" from mod "noble's food overhaul" did not apply. <append xpath="lootgroup/lootgroup{@name='airdropfood' <append xpath="/lootgroup/lootgroup[@name='airdropfood']"> <item name="foodCupcake"/> <item name="foodCookie"/> <item name="foodNuggets"/> <item name="foodCroissant"/> <item name="foodHamburger"/> <item name="foodItalianricotta"/> <item name="foodFries"/> <item name="foodTunalarge"/> <item name="foodSandwich"/> <item name="foodPotatosalad"/> <item name="foodKFC"/> </append> Link to comment Share on other sites More sharing options...
Gouki Posted July 8, 2020 Share Posted July 8, 2020 Just now, Noblegases said: How would I add a xpath to add my own customs food into the loot groups "airdropfoods" "junk" "coldfoods" and "cannedfood" Whenever i tried with my attachted xpath, when loading into the game in the f1 menu, it says wrn xml patch for "loot.xml" from mod "noble's food overhaul" did not apply. <append xpath="lootgroup/lootgroup{@name='airdropfood' <append xpath="/lootgroup/lootgroup[@name='airdropfood']"> <item name="foodCupcake"/> <item name="foodCookie"/> <item name="foodNuggets"/> <item name="foodCroissant"/> <item name="foodHamburger"/> <item name="foodItalianricotta"/> <item name="foodFries"/> <item name="foodTunalarge"/> <item name="foodSandwich"/> <item name="foodPotatosalad"/> <item name="foodKFC"/> </append> Hi Noblegases It would be like this <Noblegases> <append xpath = "/ lootcontainers"> <lootcontainer id = "420" count = "2,4" size = "8,9" sound_open = "UseActions / open_fridge" sound_close = "UseActions / close_fridge" loot_quality_template = "qualPlus1Template"> <item name = "resourceWood" count = "6,20" prob = "0.5" /> <item group = "junk" prob = 0.05 "" </lootcontainer> </append> </Noblegases> This is just an example, to add it to the loot of your preference change the lootcontainer id, the size and the sounds on opening and closing, so that they match the container to which you want to add your custom loot. Link to comment Share on other sites More sharing options...
lavinog Posted July 21, 2020 Share Posted July 21, 2020 Try replacing the first lootgroup with lootcontainers : <append xpath="/lootcontainers/lootgroup[@name='airdropfood']"> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.