Difference between revisions of "Autostart"

From #openttdcoop wiki

Jump to: navigation, search
(Advantages)
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== OpenTTD Linux Autostart script==
+
{{update}}
<br>
+
__NOTOC__
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.<br>
+
== 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.
  
=How to use the script =
+
The scripts supports all plattforms which have a bash shell. (Linux/OSX/FreeBSD etc.)
<br>
+
1) Download the files from http://svn.openttdcoop.org/tools/autostart/<br>
+
2) Copy or rename ps.tmpl to ps.conf<br>
+
3) Edit ps.conf and set your option for either "nightly" or "svn" under TYPE =<br>
+
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.<br>
+
  
=Using TYPE="nightly"=
+
==How to use the script ==
<br>
+
# Download the files from http://svn.openttdcoop.org/ottdbash/autostart/
'''Advantages'''
+
# Copy or rename ps.tmpl to ps.conf
<br>
+
# Edit ps.conf and set your option for either "nightly" or "svn" under TYPE
 +
# Start the script
  
<br>
+
==Using TYPE="nightly"==
'''Disadvantages'''
+
The fastest type to update and start a client.
<br>
+
  
<br>
+
==Using TYPE="svn"==
=Using TYPE="svn"=
+
====Advantages====
'''Advantages'''
+
*Patches  
<br>
+
*Only updates changed files.
Patches with autojoin patch.
+
 
Only updates changed files.
+
====Dissadvantages====
<br>
+
*Needs to compile (takes time)
'''Dissadvantages'''
+
*Requires development library dependencies for openttd
<br>
+
 
Needs to compile (takes time)
+
==How to setup a server==
<br>
+
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 <nowiki>http://SERVER/PORT/rev</nowiki>
 +
 
 +
That one is for autologin feature:
 +
* PWKEY
 +
The script tries to read the server password from <nowiki>http://SERVER/PORT/PWKEY</nowiki>
 +
 
 +
(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.
 +
 
 +
==Changelog==
 +
====r240====
 +
Fix: exit on invalid passwords and commenting debug
 +
====r201====
 +
Fix: updated pw_arguments patch to current trunk
 +
====r178====
 +
Added possibility to create a binary pack. (TODO: integrate make bundle)
 +
====r166====
 +
New: The script now supports custom patches from the servers and also download
 +
of selfbuild binaries. (i.e. from TT-Forums)
 +
Removed: repatching from the password patch
 +
Added: Template for devserver
 +
====r164====
 +
Fix: change dir to script home
 +
====r142====
 +
Script supports now multiple servers with different conf files.
 +
(Templates available)
 +
Also added support for autojoining with Company password.
 +
====r141====
 +
New: Patch from Progman also supporting company password. (Argument -P)
 +
====r135====
 +
Progmans patch for autologin...
 +
====r129====
 +
Added support for multiple server, multiple OS and svn
 +
====r128====
 +
Experimental script for automatic update and start publicserver client.
 +
It's not finished and need some improvements, but I need help, so I
 +
commited to share the source. ;-)

Latest revision as of 15:20, 23 December 2009


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/ottdbash/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

Using TYPE="nightly"

The fastest type to update and start a client.

Using TYPE="svn"

Advantages

  • Patches
  • Only updates changed files.

Dissadvantages

  • Needs to compile (takes time)
  • Requires development library dependencies for openttd

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.

Changelog

r240

Fix: exit on invalid passwords and commenting debug

r201

Fix: updated pw_arguments patch to current trunk

r178

Added possibility to create a binary pack. (TODO: integrate make bundle)

r166

New: The script now supports custom patches from the servers and also download of selfbuild binaries. (i.e. from TT-Forums) Removed: repatching from the password patch Added: Template for devserver

r164

Fix: change dir to script home

r142

Script supports now multiple servers with different conf files. (Templates available) Also added support for autojoining with Company password.

r141

New: Patch from Progman also supporting company password. (Argument -P)

r135

Progmans patch for autologin...

r129

Added support for multiple server, multiple OS and svn

r128

Experimental script for automatic update and start publicserver client. It's not finished and need some improvements, but I need help, so I commited to share the source. ;-)

Powered by MediaWiki
  • This page was last modified on 23 December 2009, at 15:20.