Dedicated server set up

Dedicated server set up

Postby end user » 22 Sep 2014, 05:53

Hi

I'm trying to get TO running under Ubuntu 12.04 server wth no x/gui. I found that its possible to run gui software on a headless server with xvfb

I tried runnin the following but not luck getting the server running.

nohup xvfb-run -a overload.sh ./overload -dedicated -mission xa/notc/mis/eth1/mission.mis &

This is the log from nohp.

{l Code}: {l Select All Code}
%
Initializing platform...
%
Input Init:
%
% Xlib:  extension "RANDR" missing on display ":101".
AL lib: alsa.c:785: no playback cards found...
AL lib: alsa.c:853: no capture cards found...
AL lib: oss.c:179: Could not open /dev/dsp: No such file or directory

SFXALProvider - No valid devices found!
%
DebugDrawer Enabled!
%
GFX Init:
%
Invalid window
%
   Null device found
%
%
GFXStringEnumTranslate: Unassigned value in GFXStringTextureFormat: 13
%
--------- Loading DIRS ---------
%
%
--------- Parsing Arguments ---------
%
Binding server port to default IP
%
UDP initialized on port 0
%
Attempting to create GFX device: GFX Null Device []
%
Initializing GFXCardProfiler (GFX Null Device Renderer)
%
   o Chipset : 'NULL Device'
%
   o Card    : 'GFX Null Device Card'
%
   o Version : '0'
%
   o VRAM    : 0 MB
%
   - Scanning card capabilities...
%
   - Loading card profiles...
%
      - No card profile core/profile/GFXNullDeviceRenderer.cs exists
%
      - No card profile core/profile/GFXNullDeviceRenderer.NULLDevice.cs exists
%
      - No card profile core/profile/GFXNullDeviceRenderer.NULLDevice.GFXNullDeviceCard.cs exists
%
      - No card profile core/profile/GFXNullDeviceRenderer.NULLDevice.GFXNullDeviceCard.0.cs exists
%
Device created, setting adapter and enumerating modes
%
Format GFXFormatR8G8B8A8 not supported with specified profile.
%
Format GFXFormatR8G8B8A8 not supported with specified profile.
%
Format GFXFormatR8G8B8X8 not supported with specified profile.
%
Format GFXFormatR8G8B8A8 not supported with specified profile.
%
Format GFXFormatR8G8B8A8 not supported with specified profile.
%
% - PostFX Manager - Executing core/scripts/client/postFx/default.postfxpreset.cs
%
% - PostFX Manager - Applying from preset
%
% - PostFX Manager - PostFX enabled
%
core/scripts/client/core.cs (108): Unable to find object: 'Canvas' attempting to call function 'setCursor'
%
 % - Initialized Core
%
--------- Initializing Directory: scripts ---------
%
sfxStartup...
%
SFXSystem::createDevice - created Null device 'SFX Null Device'
%
   Provider: Null
%
   Device: SFX Null Device
%
   Hardware: No
%
   Buffers: 16
%
--------- Initializing Terminal Overload: Server Scripts ---------
%
--------- Starting Dedicated Server ---------
%
Level file xa/notc/mis/eth1/mission.mis not found.
%
createServer(): no level info
%
Engine initialized...
%
end user
 
Posts: 7
Joined: 23 Jul 2014, 23:07

Re: Dedicated server set up

Postby Akien » 22 Sep 2014, 06:46

The log seems to tell you the path is wrong: "Level file xa/notc/mis/eth1/mission.mis not found."

What about simply "nohup xvfb-run -a overload.sh ./overload"?
Godot Engine project manager and maintainer.
Occasional FOSS gamedev: Lugaru, OpenDungeons, Jetpaca, Minilens.
User avatar
Akien
 
Posts: 737
Joined: 22 Feb 2014, 13:14

Re: Dedicated server set up

Postby end user » 22 Sep 2014, 06:57

Akien {l Wrote}:The log seems to tell you the path is wrong: "Level file xa/notc/mis/eth1/mission.mis not found."

What about simply "nohup xvfb-run -a overload.sh ./overload"?


That line didnt work

was it suppose to be

nohup xvfb-run -a ./overload.sh ./overload?

Anywasy when I ran it like above I got this




{l Code}: {l Select All Code}
--------------------------------
Terminal Overload Startup Script
--------------------------------

Checking for commands required by this script...
/usr/bin/dirname
/bin/grep
/sbin/ldconfig
/usr/bin/objdump
/usr/bin/test

Checking for libraries required to run Terminal Overload...
Checking for 32 bit version of libdl.so.2...
 -> /lib/i386-linux-gnu/libdl.so.2
Checking for 32 bit version of libX11.so.6...
 -> /usr/lib/i386-linux-gnu/libX11.so.6
Checking for 32 bit version of libXft.so.2...
 -> /usr/lib/i386-linux-gnu/libXft.so.2
Checking for 32 bit version of libstdc++.so.6...
 -> /usr/lib/i386-linux-gnu/libstdc++.so.6
Checking for 32 bit version of libpthread.so.0...
 -> /lib/i386-linux-gnu/libpthread.so.0
Checking for 32 bit version of libGL.so.1...
 -> /usr/lib/i386-linux-gnu/mesa/libGL.so.1
Checking for 32 bit version of libm.so.6...
 -> /lib/i386-linux-gnu/libm.so.6
Checking for 32 bit version of libgcc_s.so.1...
 -> /lib/i386-linux-gnu/libgcc_s.so.1
Checking for 32 bit version of libc.so.6...
 -> /lib/i386-linux-gnu/libc.so.6
Checking for 32 bit version of librt.so.1...
 -> /lib/i386-linux-gnu/librt.so.1
Starting game...
%
Initializing platform...
%
Input Init:
%
% Xlib:  extension "RANDR" missing on display ":102".
AL lib: alsa.c:785: no playback cards found...
AL lib: alsa.c:853: no capture cards found...
AL lib: oss.c:179: Could not open /dev/dsp: No such file or directory

SFXALProvider - No valid devices found!
%
DebugDrawer Enabled!
%
GFX Init:
%
Invalid window
%
   Null device found
%
%
GFXStringEnumTranslate: Unassigned value in GFXStringTextureFormat: 13
%
./overload Line: 1 - syntax error
%
>>> Advanced script error report.  Line 1.
%
>>> Some error context, with ## on sides of error halt:
%
ELF##
%
>>> Error report complete.

%
end user
 
Posts: 7
Joined: 23 Jul 2014, 23:07

Re: Dedicated server set up

Postby Akien » 22 Sep 2014, 08:12

I think the ./overload is not needed. Maybe "nohup xvfb-run -a overload.sh"? Note that I have no experience with this stuff.
Godot Engine project manager and maintainer.
Occasional FOSS gamedev: Lugaru, OpenDungeons, Jetpaca, Minilens.
User avatar
Akien
 
Posts: 737
Joined: 22 Feb 2014, 13:14

Re: Dedicated server set up

Postby fr1tz » 22 Sep 2014, 10:57

end user {l Wrote}:Hi

I'm trying to get TO running under Ubuntu 12.04 server wth no x/gui. I found that its possible to run gui software on a headless server with xvfb

I tried runnin the following but not luck getting the server running.

nohup xvfb-run -a overload.sh ./overload -dedicated -mission xa/notc/mis/eth1/mission.mis &

This is the log from nohp.

{l Code}: {l Select All Code}
%
Initializing platform...
%
Input Init:
%
% Xlib:  extension "RANDR" missing on display ":101".
AL lib: alsa.c:785: no playback cards found...
AL lib: alsa.c:853: no capture cards found...
AL lib: oss.c:179: Could not open /dev/dsp: No such file or directory

SFXALProvider - No valid devices found!
%
DebugDrawer Enabled!
%
GFX Init:
%
Invalid window
%
   Null device found
%
%
GFXStringEnumTranslate: Unassigned value in GFXStringTextureFormat: 13
%
--------- Loading DIRS ---------
%
%
--------- Parsing Arguments ---------
%
Binding server port to default IP
%
UDP initialized on port 0
%
Attempting to create GFX device: GFX Null Device []
%
Initializing GFXCardProfiler (GFX Null Device Renderer)
%
   o Chipset : 'NULL Device'
%
   o Card    : 'GFX Null Device Card'
%
   o Version : '0'
%
   o VRAM    : 0 MB
%
   - Scanning card capabilities...
%
   - Loading card profiles...
%
      - No card profile core/profile/GFXNullDeviceRenderer.cs exists
%
      - No card profile core/profile/GFXNullDeviceRenderer.NULLDevice.cs exists
%
      - No card profile core/profile/GFXNullDeviceRenderer.NULLDevice.GFXNullDeviceCard.cs exists
%
      - No card profile core/profile/GFXNullDeviceRenderer.NULLDevice.GFXNullDeviceCard.0.cs exists
%
Device created, setting adapter and enumerating modes
%
Format GFXFormatR8G8B8A8 not supported with specified profile.
%
Format GFXFormatR8G8B8A8 not supported with specified profile.
%
Format GFXFormatR8G8B8X8 not supported with specified profile.
%
Format GFXFormatR8G8B8A8 not supported with specified profile.
%
Format GFXFormatR8G8B8A8 not supported with specified profile.
%
% - PostFX Manager - Executing core/scripts/client/postFx/default.postfxpreset.cs
%
% - PostFX Manager - Applying from preset
%
% - PostFX Manager - PostFX enabled
%
core/scripts/client/core.cs (108): Unable to find object: 'Canvas' attempting to call function 'setCursor'
%
 % - Initialized Core
%
--------- Initializing Directory: scripts ---------
%
sfxStartup...
%
SFXSystem::createDevice - created Null device 'SFX Null Device'
%
   Provider: Null
%
   Device: SFX Null Device
%
   Hardware: No
%
   Buffers: 16
%
--------- Initializing Terminal Overload: Server Scripts ---------
%
--------- Starting Dedicated Server ---------
%
Level file xa/notc/mis/eth1/mission.mis not found.
%
createServer(): no level info
%
Engine initialized...
%


Almost there, the path to the mission file is wrong. Try content/xa/notc/mis/eth1/mission.mis

Also a suggestion, since there are already servers running eth1 and eth3, why not run eth4?
User avatar
fr1tz
RotC Moderator
 
Posts: 274
Joined: 01 Jun 2013, 18:22

Re: Dedicated server set up

Postby end user » 22 Sep 2014, 11:46

Ok that got it working :) Server is live :P
end user
 
Posts: 7
Joined: 23 Jul 2014, 23:07

Re: Dedicated server set up

Postby Julius » 22 Sep 2014, 16:45

awesome, thanks!

Anything else you had to change? Would be cool to have it documented for others.
User avatar
Julius
Community Moderator
 
Posts: 3297
Joined: 06 Dec 2009, 14:02

Re: Dedicated server set up

Postby end user » 22 Sep 2014, 17:38

Julius {l Wrote}:awesome, thanks!

Anything else you had to change? Would be cool to have it documented for others.


Not much just some setting in the defaults.cs files but I'll do a write up shortly on what I did.
end user
 
Posts: 7
Joined: 23 Jul 2014, 23:07

Re: Dedicated server set up

Postby end user » 22 Sep 2014, 22:12

Ok this set up is for Ubuntu Server 12.04 but should be the same for any Debain/Ubuntu based distro

If you don't already have the required libraries do the following in the terminal

{l Code}: {l Select All Code}
sudo apt-get install ia32-libs-multiarch


Now you need to install xvfb and the required libraries.

{l Code}: {l Select All Code}
sudo apt-get install xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps


Download Terminal Overload the from the main site http://www.terminal-overload.org

Un zip/Untar the install file into your home dir or where ever you want.

{l Code}: {l Select All Code}
tar -zxvf terminal-overload-0.2.0-linux32.tar.gz


In the directory where you untared the terminal files go into notc/server and look for defaults.cs Edit that file and add the following lines

{l Code}: {l Select All Code}
// Information about the server
$Pref::Server::Name = "Server Name Here";
$Pref::Server::Info = "More Server Info Here";


Change the Server Name Here and More Server If Here line with your own

{l Code}: {l Select All Code}
// Misc server settings.
$Pref::Server::MaxPlayers = 20;


Change the MaxPlayers to the desired amount.

Upload or save the file with the new changes.

Now go into the terminal overload directory and type in the following to start your server

{l Code}: {l Select All Code}
nohup xvfb-run -a ./overload -dedicated -mission content/xa/notc/mis/eth4/mission.mis &


where you see eth4 you can replace with with eth1 or eth3 to run the server with a different map.


That should be it. Since this is new to me that all I got so far. As I learn to control the server I'll add more info. Also to kill the server you'll have to get the PID of the overload session. Type in top in terminal and look for the overload name and then kill -9 PID to kill the current server session.
end user
 
Posts: 7
Joined: 23 Jul 2014, 23:07

Who is online

Users browsing this forum: No registered users and 1 guest