Your clarifications are very helpful; thank you.
The “Write” button only saves files, it doesn’t create them—if it doesn’t already exist, then nothing is kept once you exit the game. I had assumed you weren’t using the Spawn Tables main menu tab at all, and had just manually created + edited a file within a text editor.
Manually create a .DAT file with whatever name you want. E.g., ExampleNameHere.dat could be your file name. Make sure it’s an actual .dat file, and not actually something like ExampleNameHere.dat.txt instead.
(While debugging / working on the file, you could set it in the .../Bundles/Spawns/Items
directory. But at some point, you’ll want to actually move it out and into your modded project files—wherever that may be.)
Open the file in a text editor, such as Notepad++. Add at least the following lines to the file, and then save the file:
Type Spawn
ID 5888
At this point, you can either make your changes in-game from the main menu, or you can reference the official documentation. If you’re referencing official docs, then manually add whichever properties you need (or use the “Raw” button from the in-game menus to copy-paste properties over). If you’re planning to just use the tools available from the main menu, then you shouldn’t need to do anything else with this file. Save and close.
(Note that this tab does not include the ability to use the Root_#_Override property, which at this time can only be done manually from a text editor if you happen to need that property for something.)
Open Unturned, and input the ID of the spawn table. In this example, it’s 5888. Add roots and tables, and customize their weight as you desire. Click the “Apply Weights” button when you’re done customizing weights to calculate the spawn chance percentages.
If you’re done editing your spawn table, click “Write”. This will save your changes to the ExampleNameHere.dat file you created earlier.