Last change
on this file since 29 was 28, checked in by alloc, 11 years ago |
SteamCMD within SDTD_BASE (still V.8)
|
File size:
1.2 KB
|
Rev | Line | |
---|
[17] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | # Tries to start the 7dtd instance.
|
---|
| 4 |
|
---|
| 5 | sdtdCommandUpdateengine() {
|
---|
| 6 | for I in $(getInstanceList); do
|
---|
| 7 | if [ $(isRunning $I) -eq 1 ]; then
|
---|
[19] | 8 | echo "At least one instance is still running (\"$I\")."
|
---|
[17] | 9 | echo "Before updating the engine please stop all instances!"
|
---|
| 10 | return
|
---|
| 11 | fi
|
---|
| 12 | done
|
---|
| 13 |
|
---|
[28] | 14 | if [ ! -e $SDTD_BASE/steamcmd ]; then
|
---|
| 15 | mkdir $SDTD_BASE/steamcmd
|
---|
[17] | 16 | cd /tmp
|
---|
| 17 | wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz
|
---|
[28] | 18 | tar -xvzf steamcmd_linux.tar.gz -C $SDTD_BASE/steamcmd
|
---|
| 19 | cd $SDTD_BASE/steamcmd
|
---|
[17] | 20 | ./steamcmd.sh +quit
|
---|
| 21 | fi
|
---|
| 22 |
|
---|
[28] | 23 | cd $SDTD_BASE/steamcmd
|
---|
[17] | 24 |
|
---|
| 25 | ./steamcmd.sh +@sSteamCmdForcePlatformType windows +login $STEAM_USER $STEAM_PASS +force_install_dir $SDTD_BASE/engine "+app_update 251570" validate +quit
|
---|
| 26 | chown $SDTD_USER.$SDTD_GROUP -R $SDTD_BASE/engine
|
---|
| 27 |
|
---|
| 28 | cp $SDTD_BASE/engine/Install/32bit/7DaysToDie.exe $SDTD_BASE/engine/
|
---|
| 29 | cp $SDTD_BASE/engine/Install/32bit/mono.dll $SDTD_BASE/engine/7DaysToDie_Data/Mono/
|
---|
| 30 | cp $SDTD_BASE/engine/Install/32bit/SteamworksManaged.dll $SDTD_BASE/engine/7DaysToDie_Data/Managed/
|
---|
| 31 | }
|
---|
| 32 |
|
---|
| 33 | sdtdCommandUpdateengineHelp() {
|
---|
| 34 | echo "Usage: $(basename $0) updateengine"
|
---|
| 35 | echo
|
---|
| 36 | echo "Update the engine (aka game) files of 7dtd."
|
---|
| 37 | }
|
---|
| 38 |
|
---|
| 39 | sdtdCommandUpdateengineDescription() {
|
---|
| 40 | echo "Update the 7dtd engine files"
|
---|
| 41 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.