How to create your own server (Local/Online)

Preamble

The following instructions will guide you through setting up your very own local server to play on.

There are a few bits of information which are essential to running an online server.

You must know how to:

1. Port Foward (only required if you wish to play online with others on your own server)

2. Edit server config files

3. Navigate your way through your operating systemI'll try to explain every step throughout the entire guide as clear as possible so you wont get lost.

===========================================================================

Ways Of Starting The Server

Method 1:

The easiest way to start a server is by starting the game and clicking the "Run server" button right at the main menu screen. However, closing the game will also close the server. If you don't like this then try Method 2.

Method 2:

In order to start a server outside a game instance you have to navigate to your game directory.

On Steam: Right click DDRaceNetwork > Properties > Local Files > Browse...

This should open the steam directory. Then open the ddnet directory and double click the "DDNet-Server.exe", which starts the server & terminal.

============================================================================

Before starting the server, we should configure the server to your liking which will be explained in the next section.

===========================================================================

Configuration

There is one key file that you can configure before running the server.

The file can be found in your ddnet/data directory and is called autoexec_server.cfg which can be edited manually with Notepad or any other plain-text editor.

===========================================================================

# Let's go over the some very basic options which you can edit.

# This will edit the server name

sv_name "My DDNet server"

# Password for JOINING the server, leaving this option blank will remove the password

password "Test123"

# RCON (F2) passwords for admin. If you don't set one, a random one will be created and shown in the terminal window of the server

sv_rcon_password "Test123"

# Map to start the server with

sv_map "Sunny Side Up"

# Register server, this option will make the server accessable for others (which requires port-fowarding) or just for people within the same Network.

sv_register 0

# When an option can be enabled or disabled, it's enabled with 1, disabled with 0.

# All possible server settings can be found here. [Link][ddnet.tw]

===========================================================================

Port Fowarding For Online Play

1. Configure your router

The default port for a ddnet server is 8303 UDP. If you specify an alternate port when creating the server, forward that port instead. You can alter the port in the autoexec_server.cfg with the sv_port option.

If you're having trouble with port fowarding, I recommend checking this guide here:

https://steamcommunity.com/sharedfiles/filedetails/?id=459573674

2. (optional)

In some cases you may have to configure your firewall if you run something like a AV software which also has a custom firewall. You will need to set the firewall to allow unsolicited incoming connections for the server. If you are unsure how to do this, please refer to the manual or contact the support provider for your firewall software, or (not recommended) temporarily disable your firewall for the duration that you host the server.

3.

Start the game and create a local server (after you're done configuring the autoexec_server.cfg)

===========================================================================

Joining The Server

Players or yourself wishing to join the newly created server may do so in multiple ways:

Joining by directly inputting a public IP and port into server address bar and then connect. (If the server is set to public)

Typing localhost into the server address bar and then connect (Yourself only)

Selecting the server from the LAN Tab.

Easiest method, using the LAN Tab:

If you have friends on the same network as you or you're running the server from the same machine, you may join the server via the LAN Tab.

Joining by using the public ip address:

To join by IP, you will need to know your own personal public IP. You can find your own public ip address by googling services like www.whatismyip.com. After acquiring the IP, simply click play and type in your public ip address and server port into the server address bar down at the button, then click connect. If the server has been set up correctly to accept public connections, you should be able to join the server.

Localhost method: (Yourself only)

Similar to the public ip method, you use "Localhost" as the address and then click connect.

===========================================================================

Managing Your Server

You can manage your server by using the admin password to login to the server using the rcon console (F2). If you didn't set a default rcon password in the autoexec_server.cfg, a random one will be created and shown in the terminal window of the server. (If you started the server from within the game, you have to Alt-Tab in order to see the terminal.)

The generated password shown in the terminal will look similar to this:

+---------------------------+

| rcon password: 'GZ8a4V' |

+---------------------------+

You can set the Admin/Moderator/Helper rcon password in the autoexec_server.cfg.

Once again:

All available server/rcon commands can be found here (Click Me)[ddnet.tw]

===========================================================================

Q&A - Questions And Answers

Q: I still didn't manage to create a server, is there an alternative?

A: If this doesn't work out for you, then I'd advice you to use the Trashmap servers which tamikro provides. Visit this site [Link][trashmap.ddnet.tw] or this site [Link][zaf.ddnet.tw] if you're from south africa. The interface is pretty straight foward, you create a server, upload your map and then run it. You can find your server in the Internet tab.

Q: I've created my own map, how can I test it on my local server?

A: After saving the map locally, boot up your server, join it and log into the server using the rcon password. Then use the "change_map (map name)" command.

[The map may show up in the vote menu aswell. If it doesn't, then use the method above.]

OT Q&A: Q: I made a map, where can I submit it?

A: First, make sure you follow the mapper guidelines written on the DDNet forums.

---------- Link: Here [Link][forum.ddnet.tw]

Then join our Discord Server [Link][discord.gg]

and read through the information given in this channel: #📌info [Click after joining the Discord][discord.com]

Q: How do I add skins to my game?

A: We have 2 Options available.

Option A: Visit the skin database [Link][ddnet.tw] , look for the skin you like the most and remember the name. Then simply type the skin name into the name field in Settings > Tee. (Alternatively, open the console by pressing f1 and type in: "player_skin [name of the skin]" / "dummy_skin [name of the skin]" without [])

Option B: Download the skins you want from this site [Link][ddnet.tw] (downloading all skins will increase load time drastically)

&

Open the game, go to Settings > Tee, in the lower right corner you can find a button called "Skins directory", click it. Move all skins.png's you've downloaded into that directory.

Q: I accidentally changed to a unsupported display resolution. How do I fix this?

A:

1. Close your game if it's still running.

2.Press the windows key + r to open 'Run'.

3.Then copy+paste this line:

PowerShell "(gc %AppData%\Teeworlds\settings_ddnet.cfg) | Where-Object { $_ -notmatch 'gfx_screen_height|gfx_screen_width' } | Set-Content -Path %AppData%\Teeworlds\settings_ddnet.cfg"4. Hit Enter

5. Start your game===========================================================================

Closure

That's about it. If there is something missing or still way to confusing, write a comment down below.

I'll try to help you as best as I can.

I'll add more Q&A points to the guide on a later date.

Thanks for reading ❤️

===========================================================================

Source: https://steamcommunity.com/sharedfiles/filedetails/?id=2474013400					

More DDraceNetwork guilds