Author Topic: hosting multiple servers using greek2me's dedicated server script  (Read 1875 times)

i've always had this issue with not being able to host multiple servers at once using greek2me's dedicated server script (on ubuntu 15.04 btw) for whatever reason. once i start up 1 server, whenever i attempt to start another one up the console echos back out an error that reads "Failed to start server". i would attempt to figure this issue out myself but the lack of debugging tools available and my very terrible knowledge of linux code or whatever its called makes this impossible for me

here's what i input to start my server up:
blockland-server -p /home/user/blockland
that starts the first server up without any errors
blockland-server -p /home/user/blockland2 -n 1
^ that just echos "Failed to start server"

/blockland2/'s ownership and permissions is the same as /blockland/'s, and i can actually start up a server from /blockland2/ fine without any errors if i do not have any servers running

could someone help me with my issue please

edit: and yes i did spend a lot of time searching the forums trying to find a fix to my issue

um i think greek is active, especially on steam (he mods the discussions).
did you try pming him/adding him on steam?

Yeah, I never figured it out either. Lugnut and I spent hours debugging it and never got it working properly.

i never had this issue

i remember i had to tweak the script a bit. i don't remember if this is an up-to-date version (it isn't) or what i changed but this is the one i used iirc:
https://dl.dropboxusercontent.com/u/11058668/vos/blockland-server

it's also possible that it isn't because i modified it on the vps itself and never copied it back over but w/e

i never had this issue

i remember i had to tweak the script a bit. i don't remember if this is an up-to-date version (it isn't) or what i changed but this is the one i used iirc:
https://dl.dropboxusercontent.com/u/11058668/vos/blockland-server

it's also possible that it isn't because i modified it on the vps itself and never copied it back over but w/e
your script doesn't seem to work either, after i wait a few seconds and try to attach the server's screen to the shell it says it doesn't exsist. screen -list shows the server isn't up too

edit: and yes the path is /home/username/blockland2/Blockland.exe

i never had this issue

Yeah, for some people the script works but inexplicably doesn't for others. We suspected a configuration issue but were never able to narrow it down.

Yeah, for some people the script works but inexplicably doesn't for others. We suspected a configuration issue but were never able to narrow it down.
otto-sans should say what kind of ownership/permissions he has on his bl folders, as well as the path to the folders
that'll probably help

otto-sans should say what kind of ownership/permissions he has on his bl folders, as well as the path to the folders
that'll probably help
i don't actually have the VPS anymore so i couldn't tell you the specifics

i deeply need some sort of workaround if anyone knows of one
if it involves not using greek2me's script that's fine, i just want to be able to host more than 1 server

if it involves not using greek2me's script that's fine, i just want to be able to host more than 1 server
there's your solution, here's a simpler-but-less-user-friendly version

bl-ded [server_num] [gamemode]

Code: [Select]
#!/bin/sh

# edit this to your liking
SERVER_PATH="/srv/blockland$1"

screen -dmS blockland$1 xvfb-run -a -e /dev/stdout wineconsole --backend=curses $SERVER_PATH/Blockland.exe ptlaaxobimwroe -dedicated 1 -gamemode $2

(also @Greek, why no -a option on xvfb-run? and why are you not letting it print errors?)

EDIT: failed to mention this will let you see what's going wrong, you could even modify Greek's if you wanted to with this command
EDIT2: take out screen -dmS blockland$1 if you want to just see what goes wrong. ctrl-c should kill it.
« Last Edit: August 19, 2015, 12:16:18 AM by TheBlackParrot »

What is Greek2me's dedicated server script? I can't even find it anywhere.

there's your solution, here's a simpler-but-less-user-friendly version

bl-ded [server_num] [gamemode]

Code: [Select]
#!/bin/sh

# edit this to your liking
SERVER_PATH="/srv/blockland$1"

screen -dmS blockland$1 xvfb-run -a -e /dev/stdout wineconsole --backend=curses $SERVER_PATH/Blockland.exe ptlaaxobimwroe -dedicated 1 -gamemode $2
this command (without any modifications except for the file path of course) works. thank you so much theblackparrot

this command (without any modifications except for the file path of course) works. thank you so much theblackparrot
no problem
if you want to reattach to one of the blockland sessions, use screen -r blockland#. Ctrl-A-D will detach it without killing it

no problem
if you want to reattach to one of the blockland sessions, use screen -r blockland#. Ctrl-A-D will detach it without killing it
i already know that, but that'll probably help people who don't know
also is there a way to make you be able to scroll up through your bl console? when i scroll up i just scroll up through the shell and it doesn't scroll through the bl console properly

i already know that, but that'll probably help people who don't know
also is there a way to make you be able to scroll up through your bl console? when i scroll up i just scroll up through the shell and it doesn't scroll through the bl console properly
i don't think there's a way