Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2018-12-09 00:00:00Z and 2018-12-10 00:00:00Z
Avatar
Is there a tutorial on how to host a ddnet server on a vserver?
00:40
or any other mod
Avatar
@NeXus I'm sure there's one somewhere, it's really not complicated u can get the binary or build the server yourself on ur vps and clone maps from ddnet-maps, after that it's just a matter of setting the configuration u want and writing a service file to start it on boot and such. What part of the whole process are you not understanding ?
Avatar
Hm like everything ^^ Which binary files? Cant I just upload the ddnet folder and run the ddnet-server file
Avatar
If your pc and the vps are running the same OS it should work yeah
Avatar
No I run ubuntu 16.4 on my vps, but I downloaded linux ddnet version (edited)
Avatar
you downloaded it where, on your vps ?
Avatar
on my desktop, but I want to upload it to my vps via ssh or ftp, thats correct? (edited)
Avatar
I mean yeah you could do that, it's usually way faster to just download it directly from your vps
Avatar
ok, and in which directory do I put these files
00:55
For webhosting its var/www for example
00:56
or does it not matter
Avatar
it doesn't really matter like put it in your home directory /home/YOURUSERNAME
Avatar
ty Ill try
Avatar
what os is your vps running ? do you want to have a server with all maps like on ddnet's servers ?
Avatar
ubuntu 16.4, no
00:59
Just want to experiment, but Ill probably do a race server after that
Avatar
alright, yeah so you need to configure like the server config's file for like the basic settings, storage.cfg should be generated if it doesn't exists or something, then you can just run the server from an ssh session like ./DDNet-server
01:02
be aware that's not a really good way to do it like if you want to have mutiple servers running and so on
01:02
it also won't start on boot nor restart automatically if it crashes
01:02
but for testing purpose i guess it's alright
Avatar
for sv_map where does the system get the maps from
01:04
I mean theres no config_directory/maps
Avatar
i think without configuring anything it'll take the directory where the executable is/maps or ~/.teeworlds/maps something like that
Avatar
you also won't get /save and so on
01:06
Dont need all that for now ^^ Database integration maybe later
Avatar
yeah, you'd also need to open ports if you have a firewall that blocks by default
Avatar
Cool my server is online, worked like a charm
01:12
ty
01:12
^^
Avatar
awesome ! that's not really a good way to do that but for testing purpose let's say it's ok. Just ask when you'll need a better way
01:19
( as it is you'll need something like tmux or screen to let your server run when you close your ssh session, also if you're not used to linux be aware don't run your server as "root" that's pretty bad )
Avatar
Wait what, the server will close when my ssh connection is gone?
01:31
How do I make it 24/7
Avatar
you can either write a systemd unit file or simply install tmux and use that
01:34
tmux is like a tool you use to attach and detach consoles, so you can get into a tmux console, launch your server and it'll stay running in the background, you can then reattach the console using "tmux attach" or "tmux a" to get back to the console running your server
01:36
systemd unit files are just simple files that allows you to use "systemctl start yourunit.service" to start your server, with the possibility to replace start by stop/enable/disable, start and stop are obvious enable/disable are like run at boot
01:37
i don't know which way appeals more to you, either are fine, unit files are more something you'd use in production, tmux is fine for testing and so on
01:44
You know whats up with this?
Avatar
If you build the server that won't happen ^^
01:48
it's easy to do like it's a matter of 4 or 5 commands
Avatar
I have the source code how to build it
01:49
probably this cmake
Avatar
yeah first you need to have the required libraries installed
01:50
sudo apt-get install cmake git libcurl4-openssl-dev libfreetype6-dev libglew-dev libogg-dev libopus-dev libopusfile-dev libpnglite-dev libsdl2-dev libwavpack-dev python
01:51
you then get into the source directory
01:51
you create a new directory "build" and get inside it
01:52
you run "cmake .. -DCLIENT=OFF" and then "make" and you'll get the server binary in this build folder
01:53
you need to have "build-essential" installed too i don't know if it is by default
Avatar
how did you get the source ?
Avatar
[CLIENT] Pack (Page 1) — Modifications — Teeworlds Forum — Everything Teeworlds!
Avatar
oh but that's not ddnet
Avatar
i know, i dont want ddnet. But its the same no? (edited)
01:55
with compiling
Avatar
no not at all, i mean it totally depends on the program
Avatar
not at all? Its both based on teeworlds
01:57
And cmake worked too, or is it smth ddnet invented
01:58
oh ok a friends tells me i have to use bam
Avatar
i guess this is more based on teeworlds
01:58
so you'd need to try the teeworlds way
02:15
Do I miss libraries?
02:18
Avatar
yup
Avatar
i think i have everything now but I still get "no such file or directory" errors ;/
Avatar
that means you don't have everything ^^ you need sdl, the header files specifically something like "libsdl-dev" maybe
02:28
idk what am I missing
02:29
these two with "no" ?
Avatar
i don't know what those are i knew you did not have sdl because the errors where about SDL.h, why are you launching bam like that according to https://teeworlds.com/?page=docs&wiki=compiling_everything for 0.6 you could run it with "server_release"
Avatar
ok now only http_parser.h fails (edited)
02:41
why is this so scuffed omg
Avatar
no idea i don't know how bam works
Avatar
Yea I gave up thats stupid
03:01
not even the build.py script works lmao
Avatar
i mean you're not supposed to run build.py at any point of the process
Avatar
I think it was made to do a 1 click installation
03:03
when i look into the code i see that it wants to download bam, vanilla tw, and doing compile stuff
03:04
but its useless if it doesnt work
Avatar
is there any way of compiling bam with visual sutdio 2017 ?
Avatar
No idea you're supposed to build it using a .bat script
20:04
im not really sure whats failing here
20:04
i thought it could be a wrong library linked but .. as i told im not sure
Avatar
curl missing
Avatar
uff .. i was obviously being blind there, what the *** Thanks 😄
20:09
it compiled, finally 😂 thank you :))
Exported 93 message(s)