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

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
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

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

this is an old thread, but I was wondering if it was possible to change the tiers/locations of loot, not just their quantity?

For example I want to get rid of the AKSU's spawning in tier0/tier1 areas, and replace them with AK74's. Tried simply setting quantity of the AKSU's to 0, changing the quantity of the AK74's to the AKSU's values, while also deleting the lines restricting the AK74's to tier3/tier4 areas, but that seems to have broken the types.xml.

Share this post


Link to post
Share on other sites

Check the cfglimitsdefinition.xml file for the various usage and value names you can use.

In this case, you'd want to change the AKSU Tier value to whatever tier you want them to spawn in and then do the same for the AK74.  Keep in mind that, unless you wipe your server by deleting the storage_1 files, it may take a while for these changes to show up.  Without a wipe, you'd still see those guns in their original spawn areas until they reach their lifetime limits.

  • Like 1

Share this post


Link to post
Share on other sites

OK ty. so theoretically it should work the way I tried doing it, by simply deleting the lines that restrict the AK74 to tier3/4?

If so it was something else I "broke" the types.xml with... Because I didn't add any new lines/values for the AK's.

Also ty for the storage files info, was already wondering why the changes didn't seem to be taking effect. Can I just delete the storage files everytime I make changes or does that also wipe other things?

Share this post


Link to post
Share on other sites
41 minutes ago, TJSneed88 said:

Can I just delete the storage files everytime I make changes or does that also wipe other things?

If you delete everything in there, you lose everything, so any built bases, buried loot, vehicles moved from their spawn point, etc. would all vanish.

  • Like 1

Share this post


Link to post
Share on other sites

yeah I should have checked before posting, quite a lot of files in there, might aswell just wait until all the "undesired" items despawn, or change the values for the lifetime of them to make it quicker (assuming that works). 

Do you know of any decent guides for the  other .xml's by any chance? I'd like to change what loot new players start with for example, or the chances of particular items spawning, because while looking around I found that there's a set chance of certain items spawning in certain areas independently of what is set in the types.xml, at least if I'm understanding it correctly.

Edited by TJSneed88

Share this post


Link to post
Share on other sites

@TJSneed88

The other thing you can do is shut down the server, then cut and paste the entire storage_1 folder somewhere else (to save it for later sort of thing).  Then, start the server up with the changes you've made to the xml files.  This will generate new loot based on your changes, so you'll know if it's spawning as you want or not.

A good place to start in terms of a guide is here: https://community.bistudio.com/wiki/DayZ:Central_Economy_setup_for_custom_terrains

For starting loot, you change that in the init.c file.

  • Like 1
  • Thanks 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  

×