Compiling Server
From Rigs of Rods Wiki
This is a short guide how to checkout, compile and start the RoR multiplayer server :)
Contents |
windows
- required software (if not already installed):
- Recommended SVN Client: Tortoise SVN
- Visual Studio Express 2008 SP1 C++
- CMake
- svn checkout this directory: https://rorserver.svn.sourceforge.net/svnroot/rorserver/trunk
- to be continued
debian x86 (lenny)
- install all compile tools (as root):
- apt-get install subversion build-essential cmake
- create a user which we will use from then on:
- useradd -m rorserver
- passwd rorserver
- su rorserver
- cd
linux generic
- checkout and build the server:
- svn co https://rorserver.svn.sourceforge.net/svnroot/rorserver/trunk rorserver-trunk
- cd rorserver-trunk/
- mkdir build
- cd build/
- cmake ..
- make -j3
- make install
- cd ../bin/
- install SocketW as root:
- sudo su -
- NOTE: this is for ubuntu users only
- cp /home/rorserver/rorserver-trunk/bin/libmysocketw.so /usr/lib/
- sudo su -
running a server
it is useful to let the server run in a screen session, so you can detach from it:
- install screen under linux
- apt-get install screen
After this is done, login as rorserver, or (su rorserver) and go to your bin dir. Then start screen:
- screen
Inside screen, you can start the server itself:
- ./rorserver -terrain nhelens -port 12000 -verbosity 2 -logverbosity 1 -inet -maxclients 12 -name MyServerName -logfilename myserver1.log
when the server is running, you can detach the screen by pressing "CTRL+A, d". You can then close your ssh connection and the server continues to run :)
When you later want to reattach to the screen, simply write "screen -r"
