7 Days to Die

7 Days to Die

View Stats:
dunawayc May 22, 2020 @ 10:31am
Modding Vehicle storage
What is the "link" between a vehicle and what storage container it uses?

In the loot.xml file, this line appears:

<!-- vehicleMinibike storage --> <lootcontainer id="77" count="0" size="7,2" sound_open="UseActions/open_shopping_basket" open_time="0" sound_close="UseActions/close_shopping_basket" loot_quality_template="qualBaseTemplate"> </lootcontainer>

The comment indicates that this is the storage for the minibike .

In vehicles.xml there is a section for the minibike named storage:

<property class="storage"> <property name="class" value="Storage"/> <property name="display_name" value="basket"/> <property name="slot_type" value="basket"/> <property name="mesh" value="basket"/> <property name="transform" value="basket"/> <property name="parent_part" value="chassis"/> </property>

But I fail to see how the game knows that lootcontainer id="77" belongs to the minibike.

Where is the "connection"? Is there some configuration somewhere that links them up?

Last edited by dunawayc; May 22, 2020 @ 10:32am
< >
Showing 1-3 of 3 comments
War3zuk May 24, 2020 @ 9:59am 
<set xpath="/lootcontainers/lootcontainer[@id='76']/@size">10,9</set>
<set xpath="/lootcontainers/lootcontainer[@id='77']/@size">10,9</set>
<set xpath="/lootcontainers/lootcontainer[@id='78']/@size">10,9</set>
<set xpath="/lootcontainers/lootcontainer[@id='79']/@size">10,9</set>
<set xpath="/lootcontainers/lootcontainer[@id='80']/@size">10,9</set>

Thats sets all Vanilla Vehicles to MAX space, Do not go above or youll get issues
dunawayc May 27, 2020 @ 9:23am 
Originally posted by War3zuk:
<set xpath="/lootcontainers/lootcontainer[@id='76']/@size">10,9</set>
<set xpath="/lootcontainers/lootcontainer[@id='77']/@size">10,9</set>
<set xpath="/lootcontainers/lootcontainer[@id='78']/@size">10,9</set>
<set xpath="/lootcontainers/lootcontainer[@id='79']/@size">10,9</set>
<set xpath="/lootcontainers/lootcontainer[@id='80']/@size">10,9</set>

Thats sets all Vanilla Vehicles to MAX space, Do not go above or youll get issues

Thanks for the answer, but that was not my question. I understand how to increase their sizes. But what if I modded in a completely new vehicle and wanted some different sizes for the storage but did not want to change any of the containers for the existing vehicles.

How would I go about adding a new loot container and assign that loot container to my new vehicle?

In other words, what connects the loot container to the vehicle?
War3zuk May 27, 2020 @ 10:32am 
<insertAfter xpath="/lootcontainers/lootcontainer[@id='80]">

<!-- Yournewvehicle storage -->
<lootcontainer id="87" count="0" size="9,5" sound_open="UseActions/open_shopping_basket" open_time="0" sound_close="UseActions/close_shopping_basket" loot_quality_template="qualBaseTemplate">
</lootcontainer>

</insertAfter>

Point the new vehicle to id 87 & 9x5 is the total storage

EntityClasses.xml is what links them
Last edited by War3zuk; May 27, 2020 @ 10:35am
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: May 22, 2020 @ 10:31am
Posts: 3