Jump to content
Sign in to follow this  
sickness_1

How to make barrels stay?

Recommended Posts

We cannot  make barrels stay. Any help would be appreciated. We may have a bad script in for it I believe we copied the script for tents and made a few adjustments..

 

<type name="Barrel_Blue">
<nominal>80</nominal>
<lifetime>3888000</lifetime>
<restock>0</restock>
<min>20</min>
<max>200</max>
<quantmin>-1</quantmin>
<quantmax>-1</quantmax>
<cost>100</cost>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
<category name="containers"/>
<usage name="Village" />
<usage name="Military"/>
<usage name="Industrial"/>
</type>

Edited by sickness_1

Share this post


Link to post
Share on other sites
1 hour ago, sickness_1 said:

We cannot  make barrels stay. Any help would be appreciated. We may have a bad script in for it I believe we copied the script for tents and made a few adjustments..

 

<type name="Barrel_Blue">
<nominal>80</nominal>
<lifetime>3888000</lifetime>
<restock>0</restock>
<min>20</min>
<max>200</max>
<quantmin>-1</quantmin>
<quantmax>-1</quantmax>
<cost>100</cost>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
<category name="containers"/>
<usage name="Village" />
<usage name="Military"/>
<usage name="Industrial"/>
</type>

<!-- BARRELS -->
    <type name="Barrel_Green">
        <nominal>50</nominal>
        <lifetime>21600</lifetime>
        <restock>0</restock>
        <min>15</min>
        <quantmin>-1</quantmin>
        <quantmax>-1</quantmax>
        <cost>100</cost>
        <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
        <category name="containers"/>
        <category name="clothes"/>
        <tag name="shelves"/>
        <usage name="Industrial"/>
        <usage name="Town"/>
        <usage name="Village"/>
        <usage name="Coast"/>
        <usage name="Military"/>   
    </type>
    <type name="Barrel_Red">
        <nominal>50</nominal>
        <lifetime>21600</lifetime>
        <restock>0</restock>
        <min>15</min>
        <quantmin>-1</quantmin>
        <quantmax>-1</quantmax>
        <cost>100</cost>
        <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
        <category name="containers"/>
        <category name="clothes"/>
        <tag name="shelves"/>
        <usage name="Industrial"/>
        <usage name="Town"/>
        <usage name="Village"/>
        <usage name="Coast"/>
        <usage name="Military"/>
    </type>
    <type name="Barrel_Yellow">
        <nominal>50</nominal>
        <lifetime>21600</lifetime>
        <restock>0</restock>
        <min>15</min>
        <quantmin>-1</quantmin>
        <quantmax>-1</quantmax>
        <cost>100</cost>
        <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
        <category name="containers"/>
        <category name="clothes"/>
        <tag name="shelves"/>
        <usage name="Industrial"/>
        <usage name="Town"/>
        <usage name="Village"/>
        <usage name="Coast"/>
        <usage name="Military"/>
    </type>
    <type name="Barrel_Blue">
        <nominal>50</nominal>
        <lifetime>21600</lifetime>
        <restock>0</restock>
        <min>15</min>
        <quantmin>-1</quantmin>
        <quantmax>-1</quantmax>
        <cost>100</cost>
        <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
        <category name="containers"/>
        <category name="clothes"/>
        <tag name="shelves"/>
        <usage name="Industrial"/>
        <usage name="Town"/>
        <usage name="Village"/>
        <usage name="Coast"/>
        <usage name="Military"/>
            
    </type>

Share this post


Link to post
Share on other sites

so the lifetime isn't  what makes them despawn after a period of time? We are wanting them to not despawn at all, we thought setting it to -1 would work but it didnt

 

Edited by sickness_1

Share this post


Link to post
Share on other sites
1 hour ago, sickness_1 said:

so the lifetime isn't  what makes them despawn after a period of time? We are wanting them to not despawn at all, we thought setting it to -1 would work but it didnt

 

just set it to something silly like <lifetime>525600</lifetime> that should be 1 year

Edited by mrwolv

Share this post


Link to post
Share on other sites

You need to set their persistency to on in the economy.xml

<building init="0" load="0" respawn="0" save="0"/> - change the save to 1. That will make them persistent... HOWEVER...

Don't do it! While your barrels will now happily stay there when you put things in them, they cause other problems over time, such as doors not being able to be opened in certain places, namely car doors and military barracks. You can walk straight through the doors when they're closed,  but it's glitchy. We've turned them back off on our server.

Share this post


Link to post
Share on other sites
5 hours ago, robotstar said:

You need to set their persistency to on in the economy.xml

<building init="0" load="0" respawn="0" save="0"/> - change the save to 1. That will make them persistent... HOWEVER...

Don't do it! While your barrels will now happily stay there when you put things in them, they cause other problems over time, such as doors not being able to be opened in certain places, namely car doors and military barracks. You can walk straight through the doors when they're closed,  but it's glitchy. We've turned them back off on our server.

that seems to be a problem of offical servers so i dont think its due to barrels. i ve had barrels in since day 1 of the files and not had that issue yet maybe i did the code correctly or its just not affecting me lol

Share this post


Link to post
Share on other sites

i make what do you say but dont worck for me its not save after restart no barrel

Share this post


Link to post
Share on other sites
34 minutes ago, Mostabdel said:

i make what do you say but dont worck for me its not save after restart no barrel

do you have server persistance enabled sounds like its off here is my settings and all works

 

instanceId = 1;         // DayZ server instance id to identify number of instances per box and their storage folders with persistence files
lootHistory = 1;         // how many persistence history files should been kept by instance, number is looped over during save
storeHouseStateDisabled = true;          // Disable houses/doors persistence (value true/false), usable in case of problems with persistence
storageAutoFix = 1;         // Checks if persistence files are corrupted and replaces corrupted ones with empty ones (value 0-1)

Share this post


Link to post
Share on other sites

my instanceld = 64476 Vilayer make this its normal ?

Edited by Mostabdel

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×