Project Zomboid

Project Zomboid

Nuclear Future: An Experimental Nuclear Reactor
 This topic has been pinned, so it's probably important
Chaos  [developer] 26 Nov, 2024 @ 4:44pm
"How to Configure a Dedicated Server"
Installation
To install this mod on your dedicated server, follow these steps:

Locate the server configuration file, which typically ends with .ini (e.g., ZAP.ini).
You can usually edit this file through the dashboard provided by your server host.
Update or add the following lines to the configuration file:
Mods=Diederiks Tile Palooza;tkTiles_01;UIAPI;SpeedFramework;MoodleFramework;RadiatedZones;NUCExperimentalReactor; Map=NucMap;Muldraugh, KY WorkshopItems=2337452747;2384329562;2760035814;2941768575;2859296947;3019024205;3286902127

Testing Recommendation:
It is recommended to set up a fresh server with only these mods first to ensure everything works correctly. After confirming, you can expand the server with additional mods.

Sandbox Options
If you're satisfied with the default settings, there's no need to make any changes.

However, if you'd like to start with your own customized settings, you'll need to modify the SandboxVars file (ending with .lua, e.g., ZAP_SandboxVars.lua) before downloading the mod. Insert your desired configurations, adjust them as needed, and save the file. When the mod is downloaded and installed, your customized entry will not be overwritten.

If you want to change settings while the game is running, simply edit the automatically generated SandboxVars.lua file (created with default values) using a text editor. After making the changes, restart your server to apply them.

Here’s an example code snippet for reference. However, it’s recommended to let the mod generate the SandboxVars.lua file automatically first to ensure you’re working with the latest code.

NUC = { FalloutEnable = true, FalloutRadEnable = true, ItemRadEnable = true, ZoneRadEnable = true, OverrideGlobalPowerEnable = true, DestructionAllowed = false, EnableCustomSpawnPoints = true, -- Minimum=15 Maximum=60 Default=30 MinDaysFixed = 15, -- Minimum=30 Maximum=365 Default=150 TransTime = 30, -- Minimum=30 Maximum=365 Default=90 TransfuseTime = 30, -- Minimum=30 Maximum=365 Default=60 ComFusesTime = 30, -- Minimum=30 Maximum=365 Default=90 ExtPmpTime = 30, -- Minimum=30 Maximum=365 Default=120 PumpTime = 30, -- Minimum=1 Maximum=365 Default=30 NuclearRodDays = 30, -- Minimum=3 Maximum=14 Default=7 FalloutDay = 7, EnableReducedCoreMBRequirement = false, -- Minimum=0 Maximum=10 Default=6 Hackdifficulty = 6, -- Minimum=0 Maximum=10 Default=7 CreateRedDiskPerkReq = 7, -- Minimum=0 Maximum=10 Default=3 CreateRedSecCardPerkReq = 3, -- Minimum=0 Maximum=10 Default=0 CreateBlueSecCardPerkReq = 0, -- Minimum=0 Maximum=10 Default=3 RegRDDBasicPerkReq = 3, -- Minimum=0 Maximum=10 Default=3 BlueDiskPerkBonus = 3, },

Custom Spawn Point

The provided spawn point configuration works only in single-player mode by default.

To make it work on a dedicated multiplayer server, follow these steps:

Copy the SpawnPoints() function from this mod:
workshop/content/108600/3286902127/mods/NUCMAP_TEST/media/maps/NucMap/spawnpoints.lua
and paste it into your server's ZAP_spawnpoints.lua file.
(Note: The file name might vary depending on your server setup.)
Alternatively, you can overwrite your server's spawnpoints.lua file with the mod's version.

Add the following line to your ZAP_spawnregions.lua file:
{ name = "NucMap", serverfile = "ZAP_spawnpoints.lua" },

Example of the updated ZAP_spawnregions.lua file:
Your SpawnRegions() function should look like this:

function SpawnRegions() return { { name = "Muldraugh, KY", file = "media/maps/Muldraugh, KY/spawnpoints.lua" }, { name = "West Point, KY", file = "media/maps/West Point, KY/spawnpoints.lua" }, { name = "Rosewood, KY", file = "media/maps/Rosewood, KY/spawnpoints.lua" }, { name = "Riverside, KY", file = "media/maps/Riverside, KY/spawnpoints.lua" }, { name = "NucMap", serverfile = "ZAP_spawnpoints.lua" }, } end

Enable custom spawn points:

Set
EnableCustomSpawnPoints = true
in your SandboxVars file.
Alternatively, remove the "if" condition from the SpawnPoints() function before copying and pasting it.
Note: This method has been tested and confirmed to work on ZAP-Hosting servers. File names and setup steps might vary depending on your hosting provider.
Last edited by Chaos; 7 Dec, 2024 @ 2:58pm
< >
Showing 1-2 of 2 comments
zeph 22 Apr @ 3:27am 
how would you go about enabling the custom spawn point when hosting a game for friends on your own pc
Chaos  [developer] 11 May @ 4:01pm 
custom spawn point are working for local hosted games
< >
Showing 1-2 of 2 comments
Per page: 1530 50