Project Zomboid | how to set spawn points in your project zomboid server
If you want to modify player spawning in Project Zomboid, there are two methods available: Forced and Custom Choice. Below, I'll explain both methods. For reference, keep a browser tab open to http://pzmap.crash-override.net as you go through the steps.
The example used below is based on the Muldraugh large warehouse.
Please ensure you replace the example coordinates and filenames with the actual ones relevant to your server setup.
Forced Spawning
-
Open your browser and visit http://pzmap.crash-override.net.
-
On the website, click
Lock Coordsand select your desired spawn location. For this example, I'm using:- Coords:
10629x9312 - Cell:
35x31 - Rel:
129x12
- Coords:
-
In your game server's
Zomboid\Serverdirectory, open theservertest.inifile. -
Find the line that says
SpawnPoint=0,0,0and replace it withSpawnPoint=10629,9312,0(using the coordinates from step 2). -
Save the
servertest.inifile.
Custom Choice Spawning
-
Download the
servertest_spawnpoints.luafile from your game server'sZomboid\Serverdirectory to your PC. -
Make a copy of
servertest_spawnpoints.luaand rename it toservertest_warehouse.lua. -
Open
servertest_warehouse.luaand modify theworldX,worldY,posX, andposYvalues based on the Cell and Rel information obtained from http://pzmap.crash-override.net.- For example:
{ worldX = 35, worldY = 31, posX = 129, posY = 12 }
- For example:
-
Save the
servertest_warehouse.luafile. -
Upload the modified
servertest_warehouse.luato your game server'sZomboid\Serverdirectory. -
Next, edit the
servertest_spawnregions.luafile in the same directory. -
Uncomment the line below the comment that says
uncomment the line below to add a custom spawnpoint for this serverby removing the two dashes at the beginning of the line. -
Add a new line after the Twiggy's Bar line:
{ name = "Muldraugh Large Warehouse", serverfile = "servertest_warehouse.lua" },
- Save the
servertest_spawnregions.luafile.