Compiling Server

From Rigs of Rods Wiki

Jump to: navigation, search


This is a short guide how to checkout, compile and start the RoR multiplayer server :)

Contents

windows

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

  • install SocketW as root:
    • sudo su -
      • NOTE: this is for ubuntu users only
    • cp /home/rorserver/rorserver-trunk/bin/libmysocketw.so /usr/lib/

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"

Personal tools