Unturned

Unturned

Not enough ratings
Unturned Custom Spawn Tables
By Wolf_Maniac
A guide to teach you how to make custom spawn tables for your map!!!


For more help join here:
https://discord.gg/Xkh6cDn
   
Award
Favorite
Favorited
Unfavorite
Where do I find them?
Where do you find spawn tables?
The spawn table assets are located in Unturned>>Bundles>>Spawns>>Whatever you're creating/editing spawns for.
Components:
What are the components:
Inside every folder in the "Spawns" folder (and which ever type of spawn you are trying to create) there's only one component: the Asset.dat file. Unlike other folders that contains both an Asset.dat file and an English.dat file.

Asset.dat:
It contains all the information about the spawn table. Including what will spawn in each table and how much of a chance another spawn table or asset (individual item) will be able to spawn.



Creating your own spawn tables:
How to create your own spawn tables (Outside the editor):

Step 1:
You can start from scratch or copy an existing spawn table (make sure you aren't editing the original). I recommend using Notepad++ to edit the files. First, you make sure that your spawn table Asset.dat file has it's own unique ID and GUID that hasn't been used.

Step 2:
You can now start modifying or creating your own custom spawn table. The coding below is needed to complete this process:

Table_#_Spawn_ID (ID of another spawn table)
Table_#_Weight (Chance of spawn, the bigger the number, the higher the chance)
This means that your spawn table has a specific chance of spawning something from that other spawn table.

Table_#_Asset_ID (ID of an item)
Table_#_Weight (Chance of spawn, the bigger the number, the higher the chance)

You can have both Table_#_Spawn_ID and Table_#_Asset_ID. Just make sure you indicate how many tables are in your custom spawn table at the top. Also mind you that the the everything starts at an index of zero and going up from there. For example if you have something like this:

Table_0_Spawn_ID
Table_0_Weight
Table_1_Asset_ID
Table_1_Weight
Table_2_Asset_ID
Table_2_Weight


This would be a total of three tables and must be indicated at the top of the Asset.dat file where it says "Tables."

Step 3:
Edit your custom spawn table to your desire. Then it can be used on maps by making a spawn table in the editor and then putting the ID of your custom spawn table where it says Spawn ID (NOT Spawn Index).

You can view your custom spawn table in "Spawn Tables" in the Unturned Menu.
Menu>>Workshop>>Spawn Tables.

How to create your own spawn tables (Inside the editor):

Step 1:
Go into the level/map editor for Unturned. Spawn tables inside the editor can be found and edited in the "Spawns" tab and then by selecting the specific spawn that you want to create/edit.

Step 2:
Enter a name for the spawn able and click "add" to create the spawn table. Inside the newly created spawn table, you can create tiers (or different "spawn groups" that have different chances of spawning). Each tier has a percentage chance of spawning (which can be adjusted by a slider beneath the tier).
Examples for tiers: Common, Uncommon, Rare, Epic, Legendary, Mythical
Examples for tiers: Clothes, Guns, Ammo, Melee etc

Step 3:
Within each tier you can start adding the items (for item spawn tables), vehicles (for vehicle spawn tables), or animals (for animal spawn tables) IDs. You add spawns to a spawn table by entering the ID and clicking "add."

Step 4:
Now you can place the item, vehicle or animal nodes around the map.

Zombie Spawns:

The spawn tables for zombies in the editor can be found under the "Spawns" tab and then by selecting zombies.

Step 1:
Just like the other spawns in the editor you have to make a spawn table by entering a name and clicking "add."

Step 2:
Each spawn table represents a different type zombie. Each one can be customized with different clothing, item spawns, health, damage if it's a hulk etc. Each clothing type ('Gear," "Hat," 'Shirt," "Bottom") has it's own percentage chance of spawning on the zombie. So for example if the "Shirt" clothing type had the slider at 50% then the zombie would have a 50% chance of spawning. Multiple clothing IDs for each clothing type can be entered as well.

Step 3:
If you haven't given the zombie a "loot" or item spawn table during the customization process then do so now. Each zombie spawn table their is two options: "Spawn ID" and "Spawn Index."

Spawn ID: Corresponds to a spawn table outside of the editor.
Spawn Index: Corresponds to a spawn table inside the editor.

The Spawn Index of a spawn table is the number beside the name of the spawn table.

***Note a zombie can ONLY have a Spawn ID or a Spawn Index.***

The Spawn ID or Spawn Index indicates what spawn table it uses for item drops.

Step 4:
Once finished, you can now place the zombie nodes around the map so zombies will spawn (zombies will only spawn in baked navigation meshes).
Adding custom assets to official spawn tables
Where do I start:
Navigate to where your custom asset is. Inside the folder of your asset there should be three files: Asset.dat (named the same as the folder of the asset), English.dat and the Unity.3d file.

Step 1:
Add a new folder inside the folder of your asset. This folder is for spawns (what spawn tables will use your custom asset). You can make this from scratch or copy a pre-existing spawn folder from Unturned>>Bundles>>Spawns. DO NOT EDIT THE ORIGINAL.

Step 2:
Give the asset.dat file of your spawn table it's own unique ID and GUID.

Step 3:
Edit the asset.dat (make sure if you used a pre-existing one that you made a copy, so you aren't editing the original). Also mind you that the the everything starts at an index of zero and going up from there. Below is an example of the coding used:

Root_#_Spawn_ID (ID of the spawn table that your asset will spawn in)
Root_#_Weight (Chance of spawn, the bigger the number, the higher the chance)
This means that your spawn table has a specific chance of spawning something from that other spawn table.

Roots 3
Root_0_Spawn_ID
Root_0_Weight
Root_1_Spawn_ID
Root_1_Weight
Root_2_Spawn_ID
Root_2_Weight


Step 4:
You're asset should now have three files and a spawns folder (witht the spawn asset.dat file within that) with the custom assets folder. You're custom asset should now spawn in any of the spawn tables you linked it to (for example you can make a custom gun spawn in the military base on Washington).
34 Comments
briz0309 Jul 5, 2023 @ 5:16pm 
i cant join discord server...
Wolf_Maniac  [author] Mar 12, 2023 @ 12:27pm 
You can create spawn tables with modded or vanilla weapons yes.
The_Blaze_king Mar 11, 2023 @ 7:19pm 
Am I able to do this with custom modded weapons?
Wolf_Maniac  [author] May 24, 2022 @ 3:32pm 
You won't find it as a file. That is why it's in the map editor vs making it through a file outside the editor.
frogsåup May 9, 2022 @ 1:24am 
it was made inside the editor and i cant find it as a file
Wolf_Maniac  [author] May 8, 2022 @ 8:07pm 
Make sure you have an unique ID and GUID. Also it is important that you are using spawn ID and not index if it a spawn table created outside the editor (in notepad)
frogsåup May 8, 2022 @ 5:59am 
i have no error logs, spawntables simply spawn wrong things or nothing
NotVeryLean May 8, 2022 @ 1:41am 
thanks for the response
Wolf_Maniac  [author] May 7, 2022 @ 7:37pm 
Friggis:

Well if you make a custom asset you will have a unity file of some sort (unity.3d or if you use masterbundle). The item won't appear in game without it. Then the english and asset.dat file are the files that holds the ingame information (like for example the description and the "stats". Like if it's a gun you will be editing the damage etc). Then if you want the item to spawn in the game you have to add the id from the asset.dat file into the spawn table.
Wolf_Maniac  [author] May 7, 2022 @ 7:33pm 
Frog you can see in the error logs if the ids conflict with other assets