SCUM
Modify the loot via json files?
Hello there and friendly greetings!
Please, have a little patience because I might use non technical words and I might explain myself badly...

I am the admin of a server and, among the admin commands I've found #ExportCurrentLootTree

This command produce a list of *.json files inside this directory:
SCUM/Saved/Config/WindowsServer/Loot/Nodes/Current

The list of files define the rarity of the lootable items in all the 39 locations in the game where there is something to loot (don't get fooled: even if there are a lot of beaches, the location "beach" is just one repeated multiple time, for istance).

As a matter of fact, those 39 files define in a comprehensive and precise manner what and how many items you can find in a certain spot.

Now, my hope is that if I modify those files (those are very intuitive) I can control the dispersion of loot on the map, negating or greatly reducing, for istance, the spawning of shirts in the coal mine or adding an M249 to each dead puppet.

Dear Devs: can I do such a thing? Can I modify those *.json so that I can control the loot on the map?
Originally posted by Deathwhisper:
Hello :),

Don't worry, you expressed yourself very well. Yes, you can make a huge number of changes within the JSON. A link to a detailed explanation can be found in the patch notes .

In the document that you can access via the link provided in the patch notes, you can find out all the details and information you need to know to customize your JSONs for loot according to your ideas.
< >
Showing 1-15 of 20 comments
The author of this thread has indicated that this post answers the original topic.
Hello :),

Don't worry, you expressed yourself very well. Yes, you can make a huge number of changes within the JSON. A link to a detailed explanation can be found in the patch notes .

In the document that you can access via the link provided in the patch notes, you can find out all the details and information you need to know to customize your JSONs for loot according to your ideas.
Awesome! Thank you so much for the link! :steamthumbsup::steamhappy:
xKiCkx  [developer] Jan 20 @ 2:40am 
If you will have any other questions feel free to ask :)
Hello there! Thank you so much! So far everything "seems" clear and understandable. The only issue I see is the quite huge amount of data but, you know, one little step at the time.
In case I will encounter issues, I will keep this thread as reference. :steamthis:
(the possibility to change the loot in such capillary way is just, plainly AWESOME!!! )
Last edited by Ye Olde Curmudgeon; Jan 22 @ 2:18am
xKiCkx  [developer] Jan 23 @ 1:38am 
Originally posted by Ye Olde Curmudgeon:
Hello there! Thank you so much! So far everything "seems" clear and understandable. The only issue I see is the quite huge amount of data but, you know, one little step at the time.
In case I will encounter issues, I will keep this thread as reference. :steamthis:
(the possibility to change the loot in such capillary way is just, plainly AWESOME!!! )

Yeah the data can be overwhelming, but more you experiment with it more you will learn :)
Hello there and friendly greetings again!
So, I was going thru all the files AND the file with the explanation on how to modify the loot files (Loot Modification.odt)
I got lost. Not much, just a bit. :-D

Let's say I want to add "Larve" and "Cannabis_Bud" to the loot of the puppets, all the puppets (yeah, even the police because reasons! :steamsunny:).

On the linked manual, I read that to modify the searchable loot of the dead puppets
Looking at the file list in \AppData\Local\SCUM\Saved\Config\WindowsNoEditor\Loot\ I need to search for \SCUM\Saved\Config\WindowsServer\Loot\Spawners\Presets\Default but that location do not exist, not on my online server, nor on my local.

So I got a little bit confused. I found out a file named DeadPuppets.json but no matter what I do on that file, I don't get any result.

I wanted to add something like that:

{"Name": "Larve", "Rarity": "Abundant"}, {"Name": "Cannabis_Bud", "Rarity": "Abundant"},

But no matter if I decide to append those bits or if I decide to replace a couple of items (for istance, I could replace the glue and the diary) and no matter if I reload the new values with the ingame command or if I restart the server; I see no changes hence I must mistaking something but I cannot figure out what.

A more complete snippet of DeadPuppets.json is the following:

{ "Name": "ItemLootTreeNodes", "Rarity": "Uncommon", "Children": [ { "Name": "DeadPuppets", "Rarity": "Uncommon", "PostSpawnActions": [ "SetClothesDirtiness_DeadPuppets" ], "Children": [ { "Name": "Civilian", "Rarity": "Uncommon", "Children": [ { "Name": "Items", "Rarity": "Uncommon", "Children": [ { "Name": "Batteries", "Rarity": "Uncommon" }, { "Name": "Cigarettes", "Rarity": "VeryRare" }, { "Name": "Larve", "Rarity": "Abundant" }, { "Name": "Cannabis_Bud", "Rarity": "Abundant" }, { "Name": "Fabric", "Rarity": "Uncommon", "Children": [ { "Name": "EmptyBag", "Rarity": "Rare" },

I hope it will be useful. Also, I REALLY hope I explained myself clearly...
I really enjoy to dig under the hood of SCUM and understand how it works!
Last edited by Ye Olde Curmudgeon; Jan 30 @ 9:49am
xKiCkx  [developer] Jan 30 @ 10:27pm 
Originally posted by Ye Olde Curmudgeon:
Hello there and friendly greetings again!
So, I was going thru all the files AND the file with the explanation on how to modify the loot files (Loot Modification.odt)
I got lost. Not much, just a bit. :-D

Let's say I want to add "Larve" and "Cannabis_Bud" to the loot of the puppets, all the puppets (yeah, even the police because reasons! :steamsunny:).

On the linked manual, I read that to modify the searchable loot of the dead puppets
Looking at the file list in \AppData\Local\SCUM\Saved\Config\WindowsNoEditor\Loot\ I need to search for \SCUM\Saved\Config\WindowsServer\Loot\Spawners\Presets\Default but that location do not exist, not on my online server, nor on my local.

So I got a little bit confused. I found out a file named DeadPuppets.json but no matter what I do on that file, I don't get any result.

I wanted to add something like that:

{"Name": "Larve", "Rarity": "Abundant"}, {"Name": "Cannabis_Bud", "Rarity": "Abundant"},

But no matter if I decide to append those bits or if I decide to replace a couple of items (for istance, I could replace the glue and the diary) and no matter if I reload the new values with the ingame command or if I restart the server; I see no changes hence I must mistaking something but I cannot figure out what.

A more complete snippet of DeadPuppets.json is the following:

{ "Name": "ItemLootTreeNodes", "Rarity": "Uncommon", "Children": [ { "Name": "DeadPuppets", "Rarity": "Uncommon", "PostSpawnActions": [ "SetClothesDirtiness_DeadPuppets" ], "Children": [ { "Name": "Civilian", "Rarity": "Uncommon", "Children": [ { "Name": "Items", "Rarity": "Uncommon", "Children": [ { "Name": "Batteries", "Rarity": "Uncommon" }, { "Name": "Cigarettes", "Rarity": "VeryRare" }, { "Name": "Larve", "Rarity": "Abundant" }, { "Name": "Cannabis_Bud", "Rarity": "Abundant" }, { "Name": "Fabric", "Rarity": "Uncommon", "Children": [ { "Name": "EmptyBag", "Rarity": "Rare" },

I hope it will be useful. Also, I REALLY hope I explained myself clearly...
I really enjoy to dig under the hood of SCUM and understand how it works!

If you want to access that location you will need to export spawner presets, doing that will bring up all the default spawners, after that, you can find the ones that are designated for puppets, copy them to the override folder that you need to create and modify their spawner presets with items you want to add. You can also do it over node, it's similar process, but if you have new one like this, you will still need to include it into their spawner preset.
you will need to export spawner presets
There it is....
Thank you so much! You've opened the door and I've found everything! Holy cow, 53 different files?? :-))))) Challenge accepted!
So many customization possibilities!! Seriously, these should be mandatory for every SCUM Admin ;-)
Hey... Sorry to bother you again but, just to be sure (because I fear I made another mistake): I copied (not moved, just copied) the 53 files to the following directory:

\AppData\Local\SCUM\Saved\Config\WindowsNoEditor\Loot\Spawners\Presets\Override\

And then I started to modify each and every Character-Puppets*.json. For example, Character-Puppets-Civilian-Examine_SK_Dressed_Fat_01_V1.json is the following:

{ "Items": [ { "Rarity": "Uncommon", "Id": "Hiking_Boots_01" }, { "Rarity": "Uncommon", "Id": "Jeans_01_02" }, { "Rarity": "Abundant", "Id": "Larve" }, { "Rarity": "Abundant", "Id": "Cannabis_Bud" }, { "Rarity": "Uncommon", "Id": "Leather_Jacket" } ], "QuantityMin": 1, "QuantityMax": 2, "AllowDuplicates": true, "ShouldFilterItemsByZone": false, "InitialDamage": 93, "RandomDamage": 3, "InitialUsage": 93, "RandomUsage": 3, "PostSpawnActions": [ "SetClothesDirtiness_DeadPuppets" ] }

Is it the right way to add new items to the spawner preset? I've tested in local and it does not work (I've resetted the content of \AppData\Local\SCUM\Saved\Config\WindowsNoEditor\Loot\Nodes\ )

:steamsad:
xKiCkx  [developer] Jan 31 @ 5:49am 
Yeah you can just copy them and add them to override folder, you don't need to create them from 0, you can just add to stuff that is already inside or modify the stuff that is inside, as long as you get the results that you are happy with :)
Hello there again!
I'm embarassed to be here still but there is an odd behaviour of the files that I don't understand.

First of all: so far I am modifing only the puppets files, the goal is to give the "small" puppets some "small" reward while the big chunky bois will drop a more rewarding loot.

So far I've worked only on the military puppets files:
Character-Puppets-Military-Examine_SK_Millitary_Zombie_??.json

And the "template" is this one
{ "Items": [ { "Rarity": "Abundant", "Id": "Larve" }, { "Rarity": "Abundant", "Id": "Earthworm" }, { "Rarity": "Common", "Id": "Weapon_Improvised_Handgun" }, { "Rarity": "Common", "Id": "Cal_50_AE_Crafted" }, { "Rarity": "Abundant", "Id": "Human_Steak" }, { "Rarity": "Abundant", "Id": "Cannabis_Bud" } ], "QuantityMin": 1, "QuantityMax": 2, "AllowDuplicates": true, "ShouldFilterItemsByZone": false, "InitialDamage": 23, "RandomDamage": 17, "InitialUsage": 15, "RandomUsage": 13, "PostSpawnActions": [ "SetClothesDirtiness_DeadPuppets" ] }

Now, about this file everything work but the Human_Steak, the Cal_50_AE_Crafted and the Weapon_Improvised_Handgun. For some reasons, those item NEVER APPEAR in the loot of military puppets and I tested it thoroughly.

On the other hand, Cannabis_Bud, Earthworm and Larve shows up regularly in the loot of all the puppets, included military ones.

I don't know what's going on, why three items are displayed while other three are not?
Again, I'm sure I'm mistaking something I cannot see/understand... :-(
xKiCkx  [developer] Feb 3 @ 12:28am 
If you want to customize it on the type of the puppet that you are encountering you would need to enable this:

#SetShouldPrintExamineSpawnerresets

Once you kill the puppet you want to modify, search it and you will be prompted with the spawner preset that it's using, after that it's just modifying the spawner preset that was written after searching.
That's a very cool function! Thank you for explaining it to me!
I have a question: is there any item that, for some reasons, cannot be spawned when the player search a puppet? I don't know, something like an "unspawnable" item?

I'm asking because no matter what I do, there are certain items that do not appear in the loot after I search the corpse.
Human_Steak is one, for istance. I can spawn it with the admin command but if I add this snippet:

{ "Rarity": "Abundant", "Id": "Human_Steak" },

Inside any Character-Puppets-*.json (keep in mind that in the very same files I already added the larve, the earthworm and the cannabid bud that spawn without any problem, as you can see in the screenshot I attached few post ago), the steak will not appear.

I added the same snippet inside the node DeadPuppets.json because I've noticed that it is called from different files in the Override section.

{ "Name": "Human_Steak", "Rarity": "Abundant" },

Too bad there's no steak in the puppets' loot.

I don't understand why those three items (cannabis, larva, worm) do appear as intended while the steak do not. :steamsad: :steamsad: :steamsad:

AIUTOOOOOO!!!! :steamlaughcry:
xKiCkx  [developer] Feb 6 @ 2:17am 
Originally posted by Ye Olde Curmudgeon:
That's a very cool function! Thank you for explaining it to me!
I have a question: is there any item that, for some reasons, cannot be spawned when the player search a puppet? I don't know, something like an "unspawnable" item?

I'm asking because no matter what I do, there are certain items that do not appear in the loot after I search the corpse.
Human_Steak is one, for istance. I can spawn it with the admin command but if I add this snippet:

{ "Rarity": "Abundant", "Id": "Human_Steak" },

Inside any Character-Puppets-*.json (keep in mind that in the very same files I already added the larve, the earthworm and the cannabid bud that spawn without any problem, as you can see in the screenshot I attached few post ago), the steak will not appear.

I added the same snippet inside the node DeadPuppets.json because I've noticed that it is called from different files in the Override section.

{ "Name": "Human_Steak", "Rarity": "Abundant" },

Too bad there's no steak in the puppets' loot.

I don't understand why those three items (cannabis, larva, worm) do appear as intended while the steak do not. :steamsad: :steamsad: :steamsad:

AIUTOOOOOO!!!! :steamlaughcry:

Generally craftable items and items that don't have spawn points set (you can set most of them in the spawner parameters) won't be spawned from those.
< >
Showing 1-15 of 20 comments
Per page: 1530 50