Difference between revisions of "Server Setup"

From #openttdcoop wiki

Jump to: navigation, search
m
m
Line 1: Line 1:
== Server Administration (Soap) ==
+
== Servers / Directories ==
 
+
=== Servers / Directories ===
+
 
{| class="wikitable"
 
{| class="wikitable"
 
|+ publicserver-new.openttdcoop.org
 
|+ publicserver-new.openttdcoop.org
Line 19: Line 17:
  
  
=== Directory Structure ===
+
== Directory Structure ==
 
Each server should adhere to the following directory structure:
 
Each server should adhere to the following directory structure:
  
====Top directory====
+
===Top directory===
 
Contains the SVN checkout, existing files should not be altered manually. The subdirectories bin/, bundle/, media/, os/, projects/ and src/ are also part of the SVN checkout and should not be altered manually.
 
Contains the SVN checkout, existing files should not be altered manually. The subdirectories bin/, bundle/, media/, os/, projects/ and src/ are also part of the SVN checkout and should not be altered manually.
  
====Patches/ (NOT YET IMPLEMENTED)====
+
===Patches/ (NOT YET IMPLEMENTED)===
 
Contains patches to applied to the source. Unless the server is meant to test patches for multi-player compatibility, patches in here should be multi-player safe. No changes in savegame allowed either, we want people to be able to download and play these games in vanilla OpenTTD
 
Contains patches to applied to the source. Unless the server is meant to test patches for multi-player compatibility, patches in here should be multi-player safe. No changes in savegame allowed either, we want people to be able to download and play these games in vanilla OpenTTD
  
====Server/====
+
===Server/===
 
In here is the actual running server. important files include:
 
In here is the actual running server. important files include:
 
* content_download: This should sym-link to shared content_download per user, generally ~/content_download/
 
* content_download: This should sym-link to shared content_download per user, generally ~/content_download/
Line 39: Line 37:
 
* save/uploads/: Set ofs-getsave to download savegames into this directory.
 
* save/uploads/: Set ofs-getsave to download savegames into this directory.
  
====Web/====
+
===Web/===
 
This directory willbe accessible through http as http://<serveraddress>/<port>/. Ofs-scripts will place some files here needed by tools such as autostart.
 
This directory willbe accessible through http as http://<serveraddress>/<port>/. Ofs-scripts will place some files here needed by tools such as autostart.
 
* grfversion: currently used #openttdcoop NewGRF package version (must be updated/created manually)
 
* grfversion: currently used #openttdcoop NewGRF package version (must be updated/created manually)
Line 45: Line 43:
 
* $OS.url (NOT YET IMPLEMENTED): links to the relevant binary downloads, kept up-to-date by ofs-svnupdate
 
* $OS.url (NOT YET IMPLEMENTED): links to the relevant binary downloads, kept up-to-date by ofs-svnupdate
  
=== Required extras ===
+
== Required extras ==
====Openttd File Scripts (OFS, http://dev.openttdcoop.org/projects/ofs)====
+
===Openttd File Scripts (OFS, http://dev.openttdcoop.org/projects/ofs)===
These file scripts should be installed in the server/ directory, where the server binary is located. Configure these for the above directory structure by editing the appropriate scripts. Each one contains a few configuration lines at the top of the file.
+
These file scripts should be installed in the server/ directory, where the server binary is located. Configure these for the above directory structure by editing the appropriate scripts. Each one contains a few configuration lines at the top of the file. For more information see the included README.txt
  
 
[[Category:Guides]]
 
[[Category:Guides]]

Revision as of 21:53, 8 November 2013

Servers / Directories

publicserver-new.openttdcoop.org
Name Address Port Admin Port IRC channel Directory
Public Server ps.openttdcoop.org 3983 3982 #openttdcoop ~/svn-publicserver/
games.openttdcoop.org
Name Address Port Admin Port IRC channel Directory
Welcome Server stable.openttdcoop.org 3999 3998 #openttdcoop.stable ~/svn-stable/

Both game port and admin port numbers should be unique for each server. Exceptions are temporary servers which will never run simultaneously. An example of this are the patch test servers (YACD, h2h, etc) which are run in #openttdcoop.dev


Directory Structure

Each server should adhere to the following directory structure:

Top directory

Contains the SVN checkout, existing files should not be altered manually. The subdirectories bin/, bundle/, media/, os/, projects/ and src/ are also part of the SVN checkout and should not be altered manually.

Patches/ (NOT YET IMPLEMENTED)

Contains patches to applied to the source. Unless the server is meant to test patches for multi-player compatibility, patches in here should be multi-player safe. No changes in savegame allowed either, we want people to be able to download and play these games in vanilla OpenTTD

Server/

In here is the actual running server. important files include:

  • content_download: This should sym-link to shared content_download per user, generally ~/content_download/
  • ofs-*: Filehandling scripts used by Soap. These can be executed manually for troubleshooting.
  • openttd: The game, need I say more? Preferably use ofs-start.py to start it rather than simply running ./openttd. Ofs-start will ensure the right cfg file and latest autosave gets loaded
  • openttd.cfg: Server configuration file
  • openttd.log: As OpenTTD now gets started with -D -f and no longer within a screen session, the console output gets logged into this file. Tail -f openttd.log if you need a live feed of console output
  • openttd.pid: Used by ofs-start to determine wether openttd is already running or not. Contains the pid from the last time ofs-start started the server
  • save/autosave/: Ofs-start will load the most recent savegame from here, including autosavesoap.sav (generated when Soap shuts down the server for restart/update etc.)
  • save/uploads/: Set ofs-getsave to download savegames into this directory.

Web/

This directory willbe accessible through http as http://<serveraddress>/<port>/. Ofs-scripts will place some files here needed by tools such as autostart.

  • grfversion: currently used #openttdcoop NewGRF package version (must be updated/created manually)
  • rev (NOT YET IMPLEMENTED): contains the currently installed SVN revision, kept up-to-date by ofs-svnupdate
  • $OS.url (NOT YET IMPLEMENTED): links to the relevant binary downloads, kept up-to-date by ofs-svnupdate

Required extras

Openttd File Scripts (OFS, http://dev.openttdcoop.org/projects/ofs)

These file scripts should be installed in the server/ directory, where the server binary is located. Configure these for the above directory structure by editing the appropriate scripts. Each one contains a few configuration lines at the top of the file. For more information see the included README.txt

Powered by MediaWiki