1
0
mirror of https://github.com/bplein/factorio-docker.git synced 2024-11-24 08:42:31 +02:00

Added no auto pause feature

This commit is contained in:
Christophe Vandekerchove 2016-03-27 19:10:33 +02:00
parent fd2f656e57
commit a9fc7f32d9
2 changed files with 16 additions and 1 deletions

View File

@ -9,6 +9,7 @@ Current Version
#### Factorio
See [factorio's site](http://www.factorio.com)
#### Docker image
* Added possibility to add the no-auto-pause option
* Added possibility to allow commands in game
* Automatically takes latest save or autosave. when restarting the container.
* Added possibility to change default autosave interval
@ -85,13 +86,21 @@ docker run -d \
```
Where [PATH] is the path to the folder with your mods.
#### Allowing in-game commands
I've always disabled in-game commands because I think it is like cheating, however, you can enable them by setting the the "FACTORIO_DISSALOW_COMMANDS" to "false".
I've always disabled in-game commands because I think it is like cheating, however, you can enable them by setting the the "FACTORIO_DISSALOW_COMMANDS" variable to "false".
```
docker run -d \
--env FACTORIO_DISSALOW_COMMANDS=false \
-p [PORT]:34197/udp \
zopanix/factorio
```
#### Activating no-auto-pause in the game when no one is on the server
I do not recommend this feature, bud it can make the game more difficult if you're up for a challenge :-). Just set the "FACOTIO_NO_AUTO_PAUSE" variable to "true".
```
docker run -d \
--env FACOTIO_NO_AUTO_PAUSE=true \
-p [PORT]:34197/udp \
zopanix/factorio
```
ToDo's
-----
* Add possibility to allow in-game commands ( can be considered as cheating :-p )

View File

@ -26,11 +26,17 @@ if [ "$FACTORIO_DISSALOW_COMMANDS" == false ]; then
else
disallow_commands="--disallow-commands"
fi
if [ "$FACTORIO_NO_AUTO_PAUSE" == true ]; then
no_auto_pause="--no-auto-pause"
else
no_auto_pause=""
fi"
echo "###"
echo "# Launching Game"
echo "###"
exec /opt/factorio/bin/x64/factorio \
$disallow_commands \
$no-auto-pause \
--autosave-interval ${FACTORIO_AUTOSAVE_INTERVAL} \
--autosave-slots ${FACTORIO_AUTOSAVE_SLOTS} \
--start-server \