Jump to content
Sign in to follow this  
Guy Smiley

Editing loot spawns

Recommended Posts

I've been looking everywhere on these forums and the magical web on how to edit how much loot spawns on my server and when loot respawns after being picked up.  Only thing I found is this 

<event name="Loot">
        <waves>0</waves>
        <nominal>0</nominal>
        <min>0</min>
        <max>0</max>
        <lifetime>0</lifetime>
        <restock>7200</restock>
        <saferadius>0</saferadius>
        <distanceradius>0</distanceradius>
        <cleanupradius>50</cleanupradius>
        <flags deletable="0" init_random="0" remove_damaged="0" sec_spawner="0"/>
        <position>fixed</position>
        <limit>custom</limit>
        <active>1</active>
        <children/>

As you can see I've got the restock set to 7200 but I'm not exactly sure what the other functions do.  A little help please and thank you.

  • Beans 1

Share this post


Link to post
Share on other sites

Help this guy here.he is trying to ask for help for quite important subject...kill feed thread has two pages...so maybe devs/forum mods or modders...please?😊

Share this post


Link to post
Share on other sites
Posted (edited)

I do not touch this.

<event name="Loot">
        <waves>0</waves>
        <nominal>0</nominal>
        <min>0</min>
        <max>0</max>
        <lifetime>0</lifetime>
        <restock>0</restock>
        <saferadius>0</saferadius>
        <distanceradius>0</distanceradius>
        <cleanupradius>50</cleanupradius>
        <flags deletable="0" init_random="0" remove_damaged="0" sec_spawner="0"/>
        <position>fixed</position>
        <limit>custom</limit>
        <active>1</active>
        <children/>
    </event>

I modify the file "Types.xml"

<type name="NBCPantsGray">
        <nominal>4</nominal>          <----------------------- This should be the maximum amount that will appear on the map
        <lifetime>2700</lifetime>
        <restock>0</restock>
        <min>2</min>                         <------------------------ Minimum amount that should appear
        <quantmin>-1</quantmin>
        <quantmax>-1</quantmax>
        <cost>100</cost>                   <---------------------- This should be how much priority the object has to appear or disappear
        <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
        <category name="clothes"/>
        <usage name="Military"/>    <------------------------ Where can you find
        <usage name="Medic"/>
    </type>

You also have to consider modifying the file "cfgSpawnableTypes". If you want to modify which objects have loot inside and what possibility they have to appear.

<type name="NBCPantsGray">
        <cargo preset="foodVillage" />      <--------------------- Class of loot  If you are not interested in having objects of this type, comment it <!-- <preset charge = "foodVillage" />  -->
        <cargo preset="toolsMedic" />
        <cargo chance="0.20">                   <-------------------- Possibility for the following lines
            <item name="Mag_FNX45_15Rnd" chance="0.14" />
            <item name="Ammo_762x54" chance="0.14" />          <---------- Possibility of the object
            <item name="Ammo_762x39" chance="0.14" />
        </cargo>
    </type>

Also here you can decide if you want the Zombies to have loot or not, what kind of loot or what possibility they contain certain objects.

Example:

<type name="ZmbM_PatrolNormal_Autumn">
        <cargo preset="foodArmy" />
        <cargo preset="ammoArmy" />
    </type>

Example

<type name="ZmbM_PrisonerSkinny">
        <cargo chance="0.10">
            <item name="Rope" chance="0.14" />
        </cargo>
    </type>

Combined example:

<type name="ZmbM_PatrolNormal_Autumn">
        <cargo preset="foodArmy" />
        <cargo preset="ammoArmy" />
        <cargo chance="0.10">
            <item name="Rope" chance="0.14" />
        </cargo>
</type>

 

I guess someone else can shed light on this.

 

 

Edited by NTX_Nitrix

Share this post


Link to post
Share on other sites
Posted (edited)
16 hours ago, Guy Smiley said:

..  loot spawns on my server and when loot respawns after being picked up ..  A little help please and thank you.//..
 

@Guy Smiley - Take a look here if you haven't already come across it.. its a starting point with pretty fair explanations of parameters : will get you half-way IMO

https://www.reddit.com/r/dayz/comments/9k42f9/changing_loot_spawn_rates_a_short_explanation_of/

and a tool to do it [?] (with explanations, the guy below claims)  - but I've NOT checked him out at all - it's a  "Whole Server Customiser"  for Standalone - but no idea if -or how well- it works, or what freedom it gives you. { -<added>- You can see WHAT it changes in standalone and work from there back to your server modding values (?) } - It links from here.. to an interesting looking site (and that's all I know 'bout it) :

https://www.reddit.com/r/dayz/comments/9k42f9/changing_loot_spawn_rates_a_short_explanation_of/ec203vu/

- damn, I'm going to have to get involved in modding myself, I can see it coming -  (I swore I'd given up anything to do with programming/scripting LONG LONG ago.. and FAR AWAY)
  but what the hell .. it's getting TEMPTING

Edited by pilgrim*
~ added text

Share this post


Link to post
Share on other sites
57 minutes ago, pilgrim* said:

@Guy Smiley - Take a look here if you haven't already come across it.. its a starting point with pretty fair explanations of parameters : will get you half-way IMO

https://www.reddit.com/r/dayz/comments/9k42f9/changing_loot_spawn_rates_a_short_explanation_of/

and a tool to do it [?] (with explanations, the guy below claims)  - but I've NOT checked him out at all - it's a  "Whole Server Customiser"  but no idea if -or how well- it works, or what freedom it gives you. It links from here.. to an interesting looking site (and that's all I know 'bout it)

This tool is very good as it shows Types.xml in a compact and intuitive way, you can modify the values independently or use the tools above to modify a whole column with all the available items in your Types.xml, it only works for Types.xml .

There are more files that are used to modify the loot according to your preferences.


cfgspawnabletypes.xml to modify the loot of the objects that can contain loot, for example Sweater_Blue.
If you want the Zombies to wear loot or not or modify what loot you want them to have.

The web tool https://dayz.skyn1.se/ goes well as I said this is more compact and intuitive, if you want to modify the loot more intensively you have to modify other files too.

  • Beans 1

Share this post


Link to post
Share on other sites

Alright, thanks guys.  I'll have a look at that tool when I get home.  

  • Like 2

Share this post


Link to post
Share on other sites
Posted (edited)

Test server is up if anyone is willing to have a look 

 

Dead by Dusk | Hardcore 1pp 

174.0.199.16:2302

Edited by Guy Smiley

Share this post


Link to post
Share on other sites

Test was inconclusive as I forgot I had the zed spawns up and well, heading back to test the spawns after looting was a total failure to put it mildly  Will run another test tomorrow

  • Like 1

Share this post


Link to post
Share on other sites

tested little and noticed that these things were quite usual that i found in civilian buildings.
F0AC70C0589A87878A1FEED827D66594BED22A5A

but thanks for your efforts to make some hc server.something different  than eternal stamina and 78x loot.
i just hope that some modder is now working on true hardcore mod.

Share this post


Link to post
Share on other sites
On 3/11/2019 at 8:50 AM, kopo79 said:

tested little and noticed that these things were quite usual that i found in civilian buildings.
F0AC70C0589A87878A1FEED827D66594BED22A5A

but thanks for your efforts to make some hc server.something different  than eternal stamina and 78x loot.
i just hope that some modder is now working on true hardcore mod.

Hey, I'm not begging you to play on my server lol and I''m sure someone out there will be dedicated enough to not turn this into another boring looter shooter.  If tweaking the config files inst't changing loot spawns than that's a problem on BI's end and no modder will be able to fix that.

  • Beans 1

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  

×