Overview
Im going to guide you through the configuration of creating a server through the LogMeIn Hamachi application.This guide looks like the guide right here (created by Grapfruit) but this is an old guide so i decided to create another one.
Intro
Hi.
In here, i will guide you through the process of how to host a server with the application Hamachi. This entire guide will be for the latest version of Project Zomboid, which is 36.4.
I will do my best to update the guide as long as the game update itself.
Setting up Hamachi
First things first, you need to download the program. Click here[secure.logmein.com]
(This link is a direct download through their website)
Once the programm is installed, you need to create an account/username and a password. Confirm these 2 things through e-mail and connect to your account. When it’s done, you’re going to need to click on the power button. Once the connection is done, click on the tab ‘Network‘ and ‘Create a Network‘. Choose a ID and a password and click ‘Create‘ on the bottom. These infos will be the one that you will give to your friends. Once it’s done, invite your friends in the network and it should be looking like that (with a different hamachi IP) :
Congratulations, your Hamachi has been setup !
Connecting to a Hamachi network
Very simple here, if you want to connect to a friend hamachi server, click on the tab ‘Network‘ and ‘Join an existing Network‘
Enter the ID and password of your friend’ network and click ‘Join‘
Setting up the Server
Set Launch Options
First things you need to do when you want to setup the server is to open your steam window, click on the tabs ‘Library‘ and right-click on ‘Project Zomboid‘ and ‘Properties‘. In the ‘General‘ tabs, on the bottom left of the properties window, click on ‘Set Launch Options‘ and add this text :
-nosteam
Note : Currently, my skin is Metro for Steam for those who are wondering
This launch option will make to server NOT accessing through steam for the server.
BAT File
Next, find the BAT file in your game file. Go to C:Program FilessteamappscommonProjectZomboid (or wherever is your steam folder) and find the ProjectZomboidServer.bat file (BAT is a Windows Batch File). Right-Click on it and create a Shortcut to your Desktop. When it’s done, you’re gonna need to double-click on it and wait until the CMD window start. First thing you’re gonna see in the window is the CMD asking you for a Admin password. This password that you will create will be the password you’re gonna need to enter the server as a Admin player. Very important that you remember it !
So, write the password in the CMD window and click enter. Re-enter it again to confirm and click enter again. Now the server will create and access the server file and launch the server. Once the server is running, you will see this :
Server Options and Server Files
If you want to change ANY kind of options in your server (SpawnPoints, zombie difficulty or other options) you need EVERYTIME to stop the server. If you don’t the server will not have your options that you just changed. Keep that in mind ! To change your server options, as i said, you need to stop the server. To do so, in your CMD window, write :
quit
and click enter. Once the server is stopped, you will see this :
When the server is stopped, you can change your settings in 2 ways !
Through the game
This is the easiest ways if you want to change any options ! When your game is open, you can click on ‘Host‘ in the main menu. When your server was created, it was created in the name of ‘servertest‘. When you access your ‘host‘ options, your settings will already be there waiting for you to be changed.
Click on the picture to enlarge
Click on ‘Manage settings‘ and ‘Edit selected settings‘. Here, you can access any options you want for your server like your password, the name, zombie options, mods ETC
Click on the picture to enlarge
Through the files
Second way, also very easy, is accessing the options through your files.
First, go to C:UsersYourNameZomboidServer
You’re gonna have 4 files : servertest.ini ; sandboxvars.lua; spawnpoints.lua and spawnregions.lua
You need to access 2 files : servertest.ini and SandboxVars.lua
The servertest.ini are everything your need to know about the server itself and the SanboxVars.lua is everything about the Sandbox side of the server like the start year, time, day, tempertaure, alarm, Events and also the Zombie settings. These 2 files can be changed through the Notepad.
When you’re done changing your settings, you can start the server again with the Shorcut on your desktop or through the steam files in the PZ folder.
Joining your Server
Now that you changed your options, settings and everything, you are ready to join your server. There is one last thing you need to do before that and it’s entering your server info.
In the main menu, go in ‘Join’ and you should have a text box to your right with a bunch of info that you need to fill. Im going to fill it with you, one by one.
- Favorite Name : This is the name that will appear for you and ONLY for you. So if you want to call it Fruit Loop’s server, it’s YOUR decision.
- IP : This IP is not your PC IP but your Hamachi IP. To access your Hamachi IP, in your Hamachi window, right click on the IP right on your Power button and click ‘Copy IPv4 adress’. This will copy your hamachi IP in your clipboard. Once that is done, open back your PZ window and paste the IP in the IP text box. You should have the same thing as your hamachi server. This is also the IP that you will give to your friend.
- Port : DO NOT CHANGE THIS ! This should be default 16261. Your friend should have the same thing.
- Server Password : This is the server that you created in your server options file (servertest.ini) or directly through the game.
- Description : This is optional but this is a personal description of the server. You can leave this box blank.
- Account Username : This is where you create an account for the server. This is the name that your friend will see in-game. I recommand to NOT change it, unless you want to play with another character. Every character has his/her own account username unless he/she dies.
- Account Password : This is the password you need to enter for your account. This can be left blank.
Click on the picture to enlarge
Once everything is filled, click on ‘Save‘ and ‘Join Server‘
You should have the option to choose a spawnpoints followed by the character creation screen ! If it’s that, congrats, you joined your server !
Adding Mods.
Now that you server is running like a champ, it’s time to change things a little bit and adds some mods !
Through this part of the guide, i will describe the step by using the mods PumpPower
When you want to add a mods, because you have :
-nosteam
in your Launch Options, the game does not have access to your mods if you already have some installed. So you needs to copy them in your server folder. Here is how.
Remember that i’m using the PumpPower mods as an example
- Access to your workshop file in your steam folder C:Program Files(x86)Steamsteamappsworkshopcommoncontent108600647865345mods (Folder 108600 is your ProjectZomboid game file and 647865345 is your Workshop ID)
- Copy the PumpPower folder
- Go to your server file C:UsersYourNameZomboidServer
- Paste your mod file in here
- Go to your server mods file C:UsersYourNameZomboidMods
- Paste your mod file also in here
It should be like that :
Click the picture to enlarge
Once it’s done, there is 2 way to continue.
- If your Project zomboid was open when you copied the mod folder, close the game and re-launch it. Now, Access to your server options (Don’t fortget to close the server by writing ‘quit’ in your CMD window) and in the Mods tabs add the PumpPower mod. Be sure it’s in the list and save.
- Stop the server by entering the ‘quit’ command in the CMD window. Go to your server file C:UsersYourName ZomboidServer and open the servertest.ini file. Scroll until you find the Mod options and write down the mod ID
Mods=PumpPower
Note : if you want to add 2 or more mods, you need to add ; between each mod. more like this :
Mods=PumpPower;Hydrocraft;ChainSaw;
Once your mod has been written, save and close the servertest.ini file.
Before launching your server, make sure in the main menu, under the tabs ‘Mods‘ that your mod is ‘Enabled‘ in green. You can now launch the server with the BAT file.
Your friends need to do the same thing. Copy their mod file in their server file and enabling them in the main menu.
Outro
Finally, i want you to have fun on this game. Thank you for reading this and share with your friend so you can have great moments together !
If you have any correction, any comments or suggestion for this guide or maybe more guide, please feel free to leave a comments below or to give me feedback directly to my profile.
Thanks guys, stay alive !