automatic/unattended SPADS install

automatic/unattended SPADS install

SpringRTS Perl Autohost for Dedicated Server

Moderators: Moderators, Lobby Developers, SPADS AutoHost

Post Reply
User avatar
bibim
Lobby Developer
Posts: 952
Joined: 06 Dec 2007, 11:12

automatic/unattended SPADS install

Post by bibim »

SPADS now supports fully automatic/unattended installation when using spadsInstaller version 0.23 (only in unstable SPADS release for now).

To perform a fully automatic installation, you need to create a file named "spadsInstaller.auto" in your SPADS installation directory (the location where you extracted the spadsInstaller.tar package). This file must define the settings values which are normally asked during the installation. Here are 4 examples below.

1) This file will install SPADS with default values for all settings except "release" (because the default release is "testing" and the testing release doesn't support automatic installation yet), and the 3 last settings which have no default values so they must be defined:

Code: Select all

release:unstable
etcDir:
varDir:
logDir:
springBinariesType:
autoManagedSpringVersion:
mapModDataDir:
downloadedGameShortName:
downloadMaps:
springServerType:
useLatestMod:
lobbyLogin:SpadsLogin
lobbyPassword:SpadsPassword
owner:OwnerLogin
2) This file will produce the exact same installation as the previous one, the only difference is that the default values are written explicitly:

Code: Select all

release:unstable
etcDir:etc
varDir:var
logDir:log
springBinariesType:official
autoManagedSpringVersion:104.0
mapModDataDir:new
downloadedGameShortName:ba
downloadMaps:yes
springServerType:dedicated
useLatestMod:yes
lobbyLogin:SpadsLogin
lobbyPassword:SpadsPassword
owner:OwnerLogin
3) This file will install SPADS the same way as previous files except SPADS will always use the stable version of Spring engine, and it will use an existing Spring data directory for games and maps and a specific game version:

Code: Select all

release:unstable
etcDir:etc
varDir:var
logDir:log
springBinariesType:official
autoManagedSpringVersion:stable
mapModDataDir:/home/spring/data
springServerType:dedicated
modName:Balanced Annihilation V9.46
lobbyLogin:SpadsLogin
lobbyPassword:SpadsPassword
owner:OwnerLogin
4) This last example will install SPADS so that it will use an existing Sring installation:

Code: Select all

release:unstable
etcDir:etc
varDir:var
logDir:log
springBinariesType:custom
unitsyncPath:/home/spring/spring104.0/libunitsync.so
baseDataDir:/home/spring/spring104.0
mapModDataDir:/home/spring/data
springServerType:dedicated
springServer:/home/spring/spring104.0/spring-dedicated
modName:Balanced Annihilation V9.46
lobbyLogin:SpadsLogin
lobbyPassword:SpadsPassword
owner:OwnerLogin
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: automatic/unattended SPADS install

Post by Forboding Angel »

Oh, super cool, thanks!
User avatar
FabriceFABS
Posts: 354
Joined: 28 Jul 2010, 16:20

Re: automatic/unattended SPADS install

Post by FabriceFABS »

:arrow: Top !
Merci.
User avatar
bibim
Lobby Developer
Posts: 952
Joined: 06 Dec 2007, 11:12

Re: automatic/unattended SPADS install

Post by bibim »

As new features get added to SPADS installer, new settings must be added to the "spadsInstaller.auto" file to perform full automatic installations.

Instead of updating this post to add the exact list of settings required currently, I decided to make the installer automatically generate a file "spadsInstaller.lastRun" containing the list of install settings which have been used during last successful SPADS installation.

That way, if you want to perform automatic installation replicating exactly the last installation performed locally, you just need to rename the file "spadsInstaller.lastRun" generated during last SPADS installation to "spadsInstaller.auto".

This feature is available in SPADS installer 0.31 and later.

(it is also possible to use a partial "spadsInstaller.auto" file, only defining a part of the required installation parameters, that way only a part of the installation process is automatized)
Post Reply

Return to “SPADS AutoHost”