DropTable Tutorial Disable - ASharpPen/Valheim.DropThat GitHub Wiki
Tutorial - Disabling drops for DropTable
This tutorial will describe how to disable the resin drop from felling fir trees.
Identify what to modify
First of all, to modify a DropTable drop entry we need to either find the DropTable config file of what we are modifying, or extract a list of what is being loaded.
- Go to your
BepInEx/Configfolder. - Open the
drop_that.cfg.
If it doesn't exist yet, run the game to have it generate.
- Find the
WriteDropTablesToFilessetting under the[Debug]section, and enable it. This will tell Drop That to create a bunch of files showing the DropTable loot tables that is available on world start.
WriteDropTablesToFiles = true
- Run the game and enter a world.
- Check the
Bepin/Debugfolder, for a file calleddrop_that.drop_table.prefabs.txt. If you can't find it, check your logs. There should be a line describing what files are being created and where. - Open it up, and find the drop entry that you want to change.
- Search for FirTree, which should lead us to a part of the file that shows us all the drops a fir tree will have, looking something like this:
## DropTable Source: TreeBase;
[FirTree]
DropChance=50
DropOnlyOnce=False
DropMin=1
DropMax=2
[FirTree.0]
PrefabName=FirCone
Weight=1
AmountMin=1
AmountMax=1
DisableResourceModifierScaling=False
[FirTree.1]
PrefabName=Feathers
Weight=0.25
AmountMin=1
AmountMax=1
DisableResourceModifierScaling=False
[FirTree.2]
PrefabName=Resin
Weight=0.25
AmountMin=1
AmountMax=1
DisableResourceModifierScaling=False
What we are searching for is the Prefab name and the ID of the drop we want to disable.
We see that resin is under [FirTree.2], so that is the one we will be changing.
Modifying the drop
To make our changes, we must go back to the configs.
- Go to your
BepInEx/Configfolder. - Open the
drop_that.drop_table.cfg. - Add the following to the end of it.
[FirTree.2]
Enable = false
- Save the file.
Done!
We have now told Drop That that it should disable the drop with ID 2 from the FirTree DropTable loot table. Note that for DropTable loot tables, that means you should now see more feathers and fir cones dropping, as the resin will no longer be polluting the pool when the table rolls its drops 1-2 times.