7 Days to Die

7 Days to Die

Ver estadísticas:
JDog Sigma 6 AGO 2016 a las 9:24 a. m.
How to edit loot.xml?
My goal is to increase the frequency of books/schematics for guns (since they are super rare).

I went into the xml files and added a loot group:

<lootgroup name=“gunBooks” count=“6”> <item name=“ak47Schematic”/> <item name=“augerSchematic”/> <item name=“chainsawSchematic"/> <item name="minibikesForDumb♥♥♥♥♥"/> <item name="rocketLauncherSchematic"/> <item name="shotgunSlugSchematic"/> <item name="smgSchematics"/> <item name="sniperRifleSchematic"/> <item name="theEnforcerMagazine"/> <item name=“pumpShotgunSchematic"/> <item name="sawedoffPumpShotgunSchematic"/> <item name="pistolBook"/> <!—- <item name="handleBarsSchematic"/> <item name="theRiddleOfSteel"/> <item name="setInConcrete"/> <item name="10mmBulletSchematic"/> <item name="762mmBulletSchematic"/> —-> </lootgroup>

Then added it to the lootgroup "books"

<lootgroup name="books" count="1"> <item group="rareBooks" loot_prob_template="rareBookTemplate"/> <item group="commonBooks"/> <item group=“gunBooks”/> </lootgroup>

Then added it to the file cabinet:

!-- file cabinet --> <lootcontainer id="44" count="0,2" size="4,3" sound_open="UseActions/open_file_cabinet" sound_close="UseActions/close_file_cabinet" loot_quality_template="baseTemplate"> <item group=“gunBooks” prob=“1”/> <item group="ammo" prob="0.05"/> <item group="books" count="1"/> <item name="paper" count="5,10"/> <item name="painkillers" prob="0.05"/> <item group="trophyGroup"/> </lootcontainer>

I 7DTD, and opened several file cabinets and nothing was in them, but then I looked back in loot.xml, and the code I wrote wasn't there. It might just be because I switched from A14.7 to A14.4, but it might not be. Basically, I am trying to increase the frequency of gun books/schematics. Any help/tips would be great.

P.S. I don't know how to code XML, I just used the file as a template (I don't know what count="6" does, but I infer that it means how many items are spawned in.)
Última edición por JDog Sigma; 6 AGO 2016 a las 9:30 a. m.
< >
Mostrando 1-4 de 4 comentarios
Valmar 6 AGO 2016 a las 6:38 p. m. 
Firstly verify the file integrity in steam to make sure everything is back to working vanilla.
https://support.steampowered.com/kb_article.php?ref=2037-QEUH-3335


With a count 6 that means whenever that group is called upon it will select 6 items within it. So I wouldn't recommend such a high number.

First off the group has incorrect commens in it that could be breaking it.
"<!—-" is not proper. Its supposed to be <!--
Rather than commenting those out I'd recommend just removign them.

Also ensure that this new group comes BEFORE the book group. If a group or container calls on another group that is added to the file AFTER it then it will break. Everything has to be in the correct order.

Several of your quotation marks also appear to be the wrong format somehow. I'm not sure how. I recommend you use notepad++ with plugin XML Tools for this. It will tell you when you make these mistakes. Very handy.

Try this (use it as-is, don't try adding stuff to it):


<lootgroup name="gunBooks" count="1">
<item name="ak47Schematic"/>
<item name="augerSchematic"/>
<item name="chainsawSchematic"/>
<item name="rocketLauncherSchematic"/>
<item name="shotgunSlugSchematic"/>
<item name="smgSchematics"/>
<item name="sniperRifleSchematic"/>
<item name="theEnforcerMagazine"/>
<item name="pumpShotgunSchematic"/>
<item name="sawedoffPumpShotgunSchematic"/>
<item name="pistolBook"/>
</lootgroup>

<lootgroup name="books" count="1">
<item group="rareBooks" loot_prob_template="rareBookTemplate"/>
<item group="commonBooks"/>
<item group="gunBooks"/>
</lootgroup>

The code in the filecabinet is also wrong. It should be this:
<item group="gunBooks" prob="1"/>

I know it doesn't look different but the one you used had weird quotation marks that weren't standard. Again, not sure how/why that happened. I would recommend leaving the file cabinet alone though as it already drops books which will now have a fairly high chance of dropping gun books anyway. But up to you.
Última edición por Valmar; 6 AGO 2016 a las 6:39 p. m.
JDog Sigma 7 AGO 2016 a las 6:54 a. m. 
Okay. Thanks for the help!
Fanatical Meat 30 AGO 2017 a las 1:44 p. m. 
Old thread resurection, Does this work to increase the amount of feathers found in a nest?

Changed:
<lootcontainer id="25" count="1,3" size="4,3" sound_open="UseActions/open_garbage" sound_close="UseActions/close_garbage" loot_quality_template="baseTemplate">
<item name="egg" count="1" prob="0.15"/>
<item name="feather" count="8,15" prob="0.85"/>

Original:
<lootcontainer id="25" count="1,3" size="4,3" sound_open="UseActions/open_garbage" sound_close="UseActions/close_garbage" loot_quality_template="baseTemplate">
<item name="egg" count="1" prob="0.25"/>
<item name="feather" count="4,10" prob="0.75"/>
Torriador 30 AGO 2017 a las 5:38 p. m. 
Publicado originalmente por Fanatical Meat:
Old thread resurection, Does this work to increase the amount of feathers found in a nest?

Changed:
<lootcontainer id="25" count="1,3" size="4,3" sound_open="UseActions/open_garbage" sound_close="UseActions/close_garbage" loot_quality_template="baseTemplate">
<item name="egg" count="1" prob="0.15"/>
<item name="feather" count="8,15" prob="0.85"/>

Original:
<lootcontainer id="25" count="1,3" size="4,3" sound_open="UseActions/open_garbage" sound_close="UseActions/close_garbage" loot_quality_template="baseTemplate">
<item name="egg" count="1" prob="0.25"/>
<item name="feather" count="4,10" prob="0.75"/>

change the container count values to get more loot roll chances (low, high)
change the item count to get more individual items (min, max) per success

"prob" is the probability of having a successful loot roll ( 1 = 100%)

eg.
<lootcontainer id="25" count="3,5" size="4,3" sound_open="UseActions/open_garbage" sound_close="UseActions/close_garbage" loot_quality_template="baseTemplate">
<item name="egg" count="1,3" prob="0.25"/>
<item name="feather" count="8,16" prob="0.75"/

^
This would give you the chance of finding between 3 and 5 loot rolls when you open the nest.
For each of those rolls, you have a 25% Chance of finding between 1-3 eggs, and a 75% of getting 8-16 feathers
< >
Mostrando 1-4 de 4 comentarios
Por página: 1530 50

Publicado el: 6 AGO 2016 a las 9:24 a. m.
Mensajes: 4