ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Host your own server with ZSWizard

 
Post new topic   Reply to topic    ZDaemon Forum Index -> ZDaemon Articles and Guides
View previous topic :: View next topic  
Author Message
Oxyde
Dominating!


Joined: 01 Feb 2012
Location: France (67) Host: Zero Dawn

PostPosted: Wed Apr 17, 2019 6:49 pm    Post subject: Host your own server with ZSWizard Reply with quote

With all of the current ZDaemon server hosts to choose from, it is unlikely but possible that you might not find what you are looking for, or you might simply want to play privately with your friends. This is where learning how to host servers comes in handy, this tutorial will cover everything you need to know, from basics to more technical stuff. It doesn't take much technical knowledge to host a server, so don't worry if you are unfriendly with technical vocabulary.


1°)a) Prerequisites
Hosting a ZDaemon server with ZSWizard can be complex task if you are not working in the ideal environment. In order host your own server, you will need the following elements:
  • A Windows OS computer (this tutorial is conducted using Windows 10 x64 1809).
  • The ZDaemon suite installed on the computer you wish to host the server on.
  • IWAD File of the game you want to host.
  • Any compatible WAD file that you wish to use (such as levels, skins, announcers...).
  • Port forwarding enabled on the computer you will host the server on, more on this below.

1°)b) Port Forwarding
In order to allow the ZDaemon server to communicate with the clients, and by extension the Master Server, you must allow the connection to go through a gate; This gate is called a "Port", opening the gate is called "Forwarding".
To figure out how to forward ports, please visit either portforward.com or contact your ISP's technical support.
Additionally, while not mandatory, it's recommended that you setup a local static IP adress for the hosting computer.


Should the port you are using not be forward already, the ZServ console will display this message:
Code:
You are trying to advertize the server to the master,
but it appears that you are NOT forwarding port 10666
(tcp AND udp) on your router. You need to do that
so people can find your server; if you don't know
how, you can try finding help at:
                    www.portforward.com

ZDaemon will employ an alternative technique to make
your server reachable, but it's not as fast or reliable
and it cannot support demo or wad downloads. Therefore,
you are strongly advised to forward port 10666 as suggested
above.

This is the trickiest part of the tutorial, the rest will be a breeze to go through!


Last edited by Oxyde on Thu Jan 02, 2020 1:08 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Oxyde
Dominating!


Joined: 01 Feb 2012
Location: France (67) Host: Zero Dawn

PostPosted: Wed Apr 17, 2019 6:49 pm    Post subject: Reply with quote

2°)a) Starting the ZDaemon Server Wizard (ZSWizard)
To access ZSWizard, simply follow these steps:
  • Start ZLauncher either locally or online
  • Click "Server"
  • Select "Start Server Wizard"
    • Alternatively, you can start ZSWizard directly by navigating to your ZDaemon installation folder, and execute "zswizard.exe"

You will be presented the ZSWizard main window:

Unless you have already used ZSWizard previously, select "New Setup" and click "Next".


2°)b) Customizing your server: Basics
The following page will let you setup the basics and core feature of your game server. Check below screenshot for a breakdown of the fields.

  • Banner
    • The name your server will display on ZLauncher for everybody else to see.

  • Port
    • The port used by your server. It should match what you setup in step 1.b. You can switch the port used by following instructions on the left.

  • Game
    • This will let you select the IWad you wish to use. Most servers use Doom II.

  • Game Mode
    • You can play a variety of different things on ZDaemon, the detail is below:

      • Cooperative
        • Battle with other marines against monsters. The level ends once the exit is reached, the timelimit is hit, the kill limit or the team kill limit is hit.

      • Survival
        • Battle with other marines against monsters with a limited number of lives. The level ends once the exit is reached, the timelimit is hit, the kill limit or the team kill limit is hit. If all players die, the level will restart.

      • 1-on-1
        • Fight against another player in a pumping showdown. The match ends when the fraglimit is hit, or the timelimit is hit.

      • Duel
        • Battle in a duel with another player with strict rules. The match ends when the fraglimit is hit, the timelimit is hit or the enemy player forfeits.

      • FFA
        • Dive guns blazing in a merciless brawl with other players. The match ends when the fraglimit is hit, or the timelimit is hit.

      • Team DeathMatch
        • You and your crew against up to 3 enemy teams. The match ends when the fraglimit is hit, or the timelimit is hit.

      • Capture the Flag
        • Teams collide in an intense battle for the enemy team's prize. The match ends when the timelimit is hit, or the scorelimit is hit.

      • Double Domination
        • An intense team based arena control battle. The match ends when the fraglimit is hit, or the scorelimit is hit.

      • King of the Hill
        • A team clash for the control of one single point in the arena. The match ends when the fraglimit is hit, or the scorelimit is hit.

  • DMFlags
    • DMFlags are compatibility options that let you alter how the game works, see the next section for more detail.

  • GamePlay Flags
    • GamePlay Flags, also known as DMFlags are compatibility options that let you alter how the game works; See the next section for more details.

  • WADs
    • Add custom files to add new levels, skins, and new content; See the next section for more details.

  • Maps
    • Select which levels you will play or not; See the next section for more details.


2°)c) Customizing your server: DMFlags
DMFlags are a critical part of setting up any server, as they ensure some settings don't break map layouts, or that players can enjoy an optimal environment. To change DMFlags, simply click on the "..." icon of the corresponding line.


To operate this screen, you can simply check each box to toggle features on/off
For quick setup, you can use both top fields "GameType" and "Preset", with the later overwriting the first. The presets work as follows:
  • OS DeathMatch 1.0
    • This preset emulates default DeathMatch as it is in DOS Doom.

  • OS DeathMatch 2.0 AltDeath
    • This preset emulates AltDeath, an alternative mode where all items respawn after some time, including weapons which are not permanant pickups.

  • OS DeathMatch 3.0 NewDeath
    • This preset emulates AltDeath except weapons are now permanent pickups.

  • NS DeathMatch
    • This preset creates DeathMatch withouth any OS Compliance flag, and allows for jump and freelook.

  • Instagib DeathMatch
    • This preset creates a DeathMatch variant without any item pickups, and the only weapon is the Railgun, along with zoom enabled.

  • OS Coop
    • This preset sets up a DOS like coop game, where item respawn is disabled.

  • NS Coop
    • This preset sets up a cooperative game withouth any OS Compliance flag, and allows for jump and freelook.

  • Heretic Coop
    • This preset sets up a Heretic DOS like coop game, where item respawn is disabled.

  • Classic CTF
    • This preset generates a CTF game for wads designed in the ZDaemon 1.06 era.

  • New CTF
    • This preset generates a CTF game for any modern CTF wad.

  • Survival
    • This preset sets up a modern Coop game, where item respawn is enabled and select few OC Compliance flags are enabled.
Furthermore, to setup your game in the most efficient way possible, you can also use the ZDaemon's website DMFlags Calculator.


2°)d) Customizing your server: Adding WAD files
This section will let you add WADs to change the level pack you want to play, or add skins to your server. Upon clicking the "..." icon of the corresponding line, you will be presented with this screen:

  • The left side list shows all the wads available in the folder(s) you have defined in ZLauncher.
    • The default location is the \wads\ folder within ZDaemon's folder.

  • The right side list shows all the wads currently loaded in your server.
    • You may load up to a maximum of 14 wads.

To operate in this screen, use the centered icons:
    Add a WAD to your server.
    Remove a WAD from your server.
    Remove all WADs from your server.
    Move a WAD up in the loading order.
    Move a WAD down in the loading order.

The bottom field "Filter" works as intended, though only in the available WADs list.
When you add WADs to the loading list, you can also make some wads "Optionnal" so that clients don't need them in order to play. This is useful for WADs that are strictly cosmetic such as skins.

2°)e) Customizing your server: WAD files addendum
ZDaemon has the ability to accept duplicate entries, for example, loading two WADs which both include MAP01. In case such a thing happens, the last entry loaded will overwrite the previous one.
In the below example screenshot, we can see the importance of the wad loading order, along with working with optionnal files.

  • The first loaded WAD is Alien Vendetta (av.wad).
  • The second is Alien Vendetta Map 20 Coop Fix (av20coopfix.wad).
  • The third is DoomKid's 120 Skins Pack (120skins_.wad).
      This is important because the second wad contains a modified version of MAP20, which is also present in av.wad:
      If we were to swap the loading order, the original MAP20 from av.wad would be loaded instead, which would make coop unplayable for this level!

As a general rule, if you should add any sort of patch, make sure it is loaded after all the other wads.

2°)f) Customizing your server: Maplist
To access the maplist editor, simply click the "..." icon of the corresponding line, you will be presented with this screen:

  • The left side list shows all the available maps to play.
    • The list is based on the IWAD you have chosen and may not reflect the actual number of maps available.

  • The right side list shows all the maps you have selected and the order they will play in.
    • The maplist will overwrite MAPINFO and secret exits regardless of what happens.

To operate in this screen, use the centered icons:
    Add a map to the played pool.
    Remove a map from the played pool.
    Remove all maps from the played pool.
    Move a map up in the playing order.
    Move a map down in the playing order.

You may check "Manual" at the top of the window to enable non standard maps to be added to the list. You can add different names such as "HUB01", "LOBBY", or "BOSS01" instead of the standard "MAP25" and "E2M7", and move them like you would with any other level. Though should this feature be needed, the wad author will likely mention it in some way.
A maplist is not mandatory but it allows for more control over your server. Note that, if map voting is enabled, and no maplist has been defined, you will not be able to vote for any map.

With that out of the way, you can now click "Next".


Last edited by Oxyde on Thu Jan 02, 2020 1:08 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Oxyde
Dominating!


Joined: 01 Feb 2012
Location: France (67) Host: Zero Dawn

PostPosted: Wed Apr 17, 2019 6:50 pm    Post subject: Reply with quote

3°)a) Server variables: Basics
As with before steps, this new window will be presented to you:

This new window will let you operate simple yet crucial elements of your server, the detail is below:
  • Advertise
    • Nowhere: Your server will not be broadcasted and will remain invisible. This does not prevent external connections so make sure you carefully distribute the IP.
    • On Master Server: Your server will be broadcasted to the Master Server and be visible for people around the world.
    • On LAN: Your server will be broadcasted to other computers in your network but not to the Master Server. It doesn't prevent external connections either.
    • On Master Server & LAN: Your server will be broadcasted to both the Master Server and and your local network.

  • Skill
      As you would expect it, this will change the difficulty of the game. Most Cooperative/Survival servers are hosted in Ultra Violence difficulty, and most DeathMatch/Competitive servers are hosted in Nightmare! difficulty.


3°)b) Server variables: Server Limits
  • Max. Clients
    • How many players can connect to your server at any time.

  • Max. Players
    • How many players can play on your server at any time.

  • Time Limit
    • Set a fixed time limit for all levels, value is in minutes. Set it to 0 to disable it.

  • Max Lives (Survival Mode Only)
    • Set the amount of times a player can be killed before getting game over.

  • Frag Limit (Duel, 1-on-1, FFA Modes Only)
    • Set the amount of frags required to win the match.

  • TeamScore Limit (Team DeathMath, Capture the Flag, King of the Hill, Double Domination Modes Only)
    • Set the amount of points required to win the match.

  • Warmup Limit (Duel Mode Only)
    • Set the maximum warmup duration before the match begins.

  • Overtime (FFA, Team DeathMatch Modes Only)
    • Define weither or not you allow for the Overtime rule to apply once the time limit has been hit.

  • Kill Limit (Survival, Cooperative Modes only)
    • Set the quantity of player individually killed monsters required for the level to end.

  • Team Kill Limit (Survival, Cooperative Modes only)
    • Set the quantity of player total killed monsters required for the level to end.


3°)c) Server variables: Other options

Voice Chat


To operate in this screen, use the right side icons:
    Add a player name to the commentaror role.
    Edit a player name with the commentator role.
    Remove a player name with the commentator role.


Bots

  • Dynamic Bots
    • This allows you to add bots to your server that will dynamically leave and join as human players come and go.

  • Allow Mixed
    • This value instructs the server to remove all bots in the presence of at least two players


Voting

  • Kick
    • Exclude a player from the game. A vote kick comes along a temporary 15-minute ban from the server.

  • Reset
    • Restart the current level.

  • Map
    • Change to any level from the ones defined in the maplist.

  • Random Captains
    • Used mostly for CTF, this will chose two random captains from the White team.

  • Random Map
    • Choose a random level from the previously defined maplist.


Environment

  • Gravity
    • Define how gravity affects players. 100% equals to normal gravity. (sv_gravity 800)

  • Air Control
    • Control what amount of movement players can benefit from in the air.
      • 0 (OS) matches standard vanilla air control, which equals to none.
      • 0+ (NS) matches ZDoom's standard (value of 0.00390625) which allows to more easily jump over certain ledges.
      • Any other value will let you control your movement according to the value you set up. A high air control value greatly decreases air movement speed.


Logging

  • Standard
    • Save a general log of everything that happens on the server.

  • Connection
    • A separate log that only tracks player connections/disconnections.

  • Frag
    • A separate log that only tracks player frags.

  • Weapon
    • A separate log that only tracks weapon grabs.

  • Kill (Cooperative/Survival)
    • A separate log that only tracks player kills.

  • CTF
    • A separate log that only tracks all flag based interections in CTF.


Advanced

  • Auto Restart
    • With this setting, you can choose what happens when all players leave the map.
      • Setting to "No" will let the level continue as normal.
      • Setting to "Yes" will reset the level currently played.
      • Setting to "Next Map" will change the current level to the next one in the maplist.

  • Random Maps
    • This setting will shuffle the order in which levels are played. A maplist is mandatory to use this option.

  • Splash Factor
    • This is a crucial setting for Rocket Jump. Splash factor controls how rocket blasts affect you.
      • Setting to a positive value increases the push back force from rockets. The higher the value, the stronger the push. The blast will deal standard damage.
      • Setting to 0 completely cancels push back force. The blast will deal no damage.
      • Setting to a negative value increases the push back force from rockets. The higher the value, the stronger the push. The blast will deal no damage.

  • Quiet Specs
    • Toggling this value will prevent text chat from spectators to appear for players. This does not affect voice chat.

  • Heapsize
    • Control how much memory you allow the server to consume. Most wads do not require this to be changed.


WAD Transfer

  • Enable
    • Allow players to grab the needed WADs directly from your server. This is specially useful if you want to host your own wads for test so you don't have to rely on a 3rd party host.

  • Max. Download Rate (kbps)
    • Define how fast people will grab your wads. With smaller internet connections, it is advised to set a rather small limit as the impact can be significant for players.

  • Max. Concurrent Transfers
    • How many simultaneous downloads can occur. Further requests are ignored and GetWAD will instead go to the URL defined. (see the next section)


Server Demos

  • Record
    • Select if wether or not you want to activate Server-Side Demos (SSDs). Setting this option to "Yes (Once one player joins)" means that recording will start once the player enters the game, rather than just connecting as spectator.

  • Publish
    • This option gives ZServ the ability to setup automatically a webpage with all available SSDs for players to download.
      • To access the server's demo page, simply right-click on the server in ZLauncher and click on "Server Demo Page...".
      • You can also access it manually by typing the IP of your server and adding "/demos/" in your web browser, for example: http://91.121.181.122:10603/demos/
      • Shutting down your server does not flush the currently recorded demos. Manual file management must still be made!
      • Obviously the server must be up and running for the webpage to be accessed!

  • Days Kept
    • How many days your demos will be kept on your server for people to use. Past this delay, the server will delete the files. Days are 24 hours cycles starting the date and time recording happened.

  • Include Voice
    • Select if you want voice chat recorded along the game events. This option has an impact on file size.
    • Min. Time (sec)
      • Choose minimum duration for a demo file to be saved. If a player connects, joins the game, but leaves before the amount of time specified here, the demo will be erased and not published.



Misc. CMDs

To operate in this screen, use the right side icons:
    Add a new CMD to your server startup sequence.
    Edit a CMD of your server.
    Remove a CMD from your server.
    Move a CMD up in the execution order.
    Move a CMD down in the execution order.

The use of this section is mostly designed for advanced users, which is why this will be covered in the "Advanced" ZSWizard tutorial.

With all these settings out of the way, you are now a couple of steps away from hosting your server! You've done great so far, keep it up!


Last edited by Oxyde on Thu Jan 02, 2020 1:18 pm; edited 8 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Oxyde
Dominating!


Joined: 01 Feb 2012
Location: France (67) Host: Zero Dawn

PostPosted: Wed Apr 17, 2019 6:51 pm    Post subject: Reply with quote

4°)a) Server administration
The following screen will let you adjust several adminitration related settings, such as access, remote console, and contact information.

  • RCon Password
    • RCon is short for Remote Console, it lets you interact with the server settings directly from your game client. Choose your password wisely! A dedicated RCon tutorial will be available soon.

  • Connect Password
    • The connection password allows to block all incoming connections unless the correct password is sent. A wrong password will not let you connect at all to the server.

  • Join Password
    • The join password allows to block all players joining unless the correct password is sent. A wrong password will let you connect but you will not be able to play.

  • Access List
    • The access list is an alternative method of restricting access to your server, which consists of making your server Invite-Only. If your name isn't in the list, you will not be able to connect at all to the server.
        Add a player name to the invite list.
        Edit a player name on the invite list.
        Remove a player name from the invite list.

  • URL
    • This is the web adress that GetWAD will go to if server downloads are either disabled or maxed out. GetWAD will not work for websites such as MediaFire where human interaction is needed.

  • Email
    • A publicly visible email adress for people to use in order to contact server administrators.


Wow, what a ride it's been! You are now ready to press the final "Finish >|" and get ready to start playing!


Last edited by Oxyde on Thu Jan 02, 2020 1:23 pm; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Oxyde
Dominating!


Joined: 01 Feb 2012
Location: France (67) Host: Zero Dawn

PostPosted: Wed Apr 17, 2019 6:51 pm    Post subject: Reply with quote

5°)a) Start your server!

Upon clicking of the final button, you are present with the final step of the wizard. This area operates as follows:
  • Auto-Restart
    • If your server crashes in some way, it will automatically restart itself.

  • Open Server Dir.
    • You can use this button to open an explorer window of the ZServ folder located within ZDaemon.

  • Save Preset...
    • You can use this field to save your current server settings so you can reuse them later.

  • Start Server
    • The magic button to finally start your ZDaemon server!

  • Join Server
    • Once your server has started, you can use this button to join automatically instead of having to use ZLauncher.

  • Switch to Full Mode
    • You can have the wizard run in a complete window way instead of the current step-by-step wizard method.


5°)b) Using basic console

The console allows to directly control your server while it is running, so you do not have to restart it.

You can use the "Setup" button to change DMFlags on the fly.


If you want to interact with your audience, you can simply type anything in the bottom field in order to a text message as "CONSOLE" to players.
Additionally, you can use commands in this field to work on your server, like kick/ban people, change gravity, or change level entirely. To do this, simply use the ZDaemon Console Command List (CCMDs) and start with a "/".
A couple of simple examples:
    /sv_gravity 700
      This will reduce gravity slightly. (default 800)

    /kick #3 "Stop."
      This will kick console player #3 with the message "Stop.".

    /set itemrespawntime 60
      This will increase the time needed for items to respawn. (default 30)

    /addbot
      This will add a bot to your game.

    /sv_respawnprotect 1
      This will activate 2" player spawn protection so the player cannot be spawn killed.

This is a simple list of the endless possibilities the console offers, but this will be covered in a separate tutorial.

This should answer all questions you might have about server hosting. Please feel free to contact me or any server host around if any question remain unanswered.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> ZDaemon Articles and Guides All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group