Setting up a server#

Requirements#

  • A PC/VPS, running either Windows 10 or Windows Server 2019.
  • Knowledge on how to port forward
  • A Plutonium forum account
  • Notepad++/Any other code editor
  • A Copy of the game installed in C:\gameserver\T4.

img

1. Preparation#

  1. Download the Plutonium Launcher, and place it in your server folder.

  2. Run plutonium, so it can download the required files.

  3. Download the T4 Config Files

  4. Save/Extract the configs to C:\gameserver\T4

img

1.2 Creating a server key#

  1. Open the Plutonium Server Key page.

  2. Fill in the name of the server and select the correct game.

  3. Click on create, then copy the server key.

  4. Paste the key into the start bat under set key=xxxx, replace xxxx with your key.

img

2. Basic server configuration#

1. Open the start.bat file for the server you want, make sure you note down the port it is using. If you are hosting a server on the same machine you are running the game from, please change the port number to something different (28963 for example).
2. Edit your server.cfg file with whatever changes you want (i.e. RCON Password/Map Rotation/Round Limits/etc/etc).
3. Double click the bat file.
4. Wait for the server to finish loading.

img

Port Forwarding#

Hosting a game server requires you to port forward to make your server accessible from outside of your network. Since every router is different we can't make a guide for every router so we recommend searching "your router name + port forward" on Google. Port forward the port you specified in your start.bat file.

You will also need to add the port to your Windows Firewall, refer to this Tom's Hardware article.

3. Advanced server configuration (Mods / FastDL)#

You can read our guide here about loading mods onto a dedicated server.

To setup FastDL, read our guide here.

4. (Optional) Slimming down server directory#

  • You can delete the video folder inside main.
  • You can remove certain files from IWDs (Use 7-Zip to open IWDs)
  • You can remove images from iw_00.
  • You can remove the entire IWD of files iw_01 through iw_13.
  • Do NOT touch iw_14.
  • You can delete iw_15 through iw_20.
  • Do NOT touch iw_21.
  • You can remove images and sound from iw_22.
  • You can delete iw_23.
  • You can remove images from iw_24
  • You can delete iw_25.
  • You can remove images and sound from iw_26.
  • You can delete iw_27.
  • You can remove images and sound from localized_english_iw00.
  • You can delete localized_english_iw01 through localized_english_iw03.
  • You can remove images and sound from localized_english_iw04.
  • You can delete localized_english_iw05 and localized_english_iw06.

Final Image

5. (Optional) Install a server management tool (IW4MAdmin)#

Verify g_log "games_mp.log" is unique (in your server.cfg file)

Tip

Set g_log to your server name for example if you are hosting a TDM and a Search and Destroy server your g_log's might look like this:

g_log "tdm_server.log"
g_log "sd_server.log"

Verify g_logSync is set to 2.

  1. Download .NET Core 6.0.x Runtime or newer [Windows]/[Linux].
  2. Download IW4MAdmin.
  3. Follow the IW4MAdmin setup guide.

6. (Optional) Hosting a second server#

Make a copy of the start.bat file and the server.cfg file and rename them.
Edit the server.cfg to meet your needs.
Edit the copy of the bat file to: use your new server key, use a new port, and use your new config file.
(You must forward the second port as well)
Start the server through the new .bat file.

Additional Notes / FAQ#

Why can't I find my server hosted at home while others can?#

Your router probably doesn't support NAT-Loopback (aka. NAT-Reflection) and that's why it doesn't know how to forward the network traffic. In order to connect to your server, open the console and type connect 127.0.0.1:yourPort (If you are hosting on the same machine you are playing on), If not, you will need to find your servers private IP address (same one you used for port forwarding) and connect using that. For example: connect 192.168.1.5:yourPort

I can't open my game while my server is running?#

This is due to the client having a check that only one copy is open at a time. Simply start the client first, then your server. Note that if you do this, you will have to change your servers port to a different one as the client takes 4976 when it starts.

You said we can delete game files to save disk space, is it worth it?#

We recommend it, the files to host MP and ZM servers from the same folder with all maps and modes require roughly 1.7GB instead of 22GB and HIGHLY speeds up loading times as unnecessary files are not loaded.

Why does everyone get an time out during a map change?#

We are not entirely sure but it seems to be related to certain dvars not being set to their default value. Only known dvar to cause this is party_maxplayers.