Autostart

From #openttdcoop wiki

Revision as of 11:02, 19 April 2008 by Ammler (Talk | contribs) (style)

Jump to: navigation, search

OpenTTD Bash Autostart script

The autostart/ compile script automatically downloads, compiles and starts the correct OpenTTD Linux version to join the Public Server or Member Zone Server. The script can use the nightly download or use svn to compile you're local gameset.

The scripts supports all plattforms which have a bash shell. (Linux/OSX/FreeBSD etc.)

How to use the script

  1. Download the files from http://svn.openttdcoop.org/tools/autostart/
  2. Copy or rename ps.tmpl to ps.conf
  3. Edit ps.conf and set your option for either "nightly" or "svn" under TYPE =
  4. Start the script witihin your terminal type: "./start" or start it from within your file browser and run it, don't click on "run from terminal" for you convenience.

Using TYPE="nightly"

The fastest type to update and start a client.

Using TYPE="svn"

Advantages

  • Patches with autojoin patch.
  • Only updates changed files.

Dissadvantages

  • Needs to compile (takes time)

How to setup a server

You need a webserver at same address as the OTTD server is.

This 2 Variables in the conf are required for server:

  • SERVER
  • PORT

The script tries to read the revision from http://SERVER/PORT/rev

That one is for autologin feature:

  • PWKEY

The script tries to read the server password from http://SERVER/PORT/PWKEY

(I suggest to use a md5sum string for PWKEY.)

Hint: We do also symlink data and save folder from the ottd server, so people could download missing GRFs or saves.

Powered by MediaWiki