mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-01-23 08:14:44 +01:00
Added no auto pause feature
This commit is contained in:
parent
fd2f656e57
commit
a9fc7f32d9
11
README.md
11
README.md
@ -9,6 +9,7 @@ Current Version
|
|||||||
#### Factorio
|
#### Factorio
|
||||||
See [factorio's site](http://www.factorio.com)
|
See [factorio's site](http://www.factorio.com)
|
||||||
#### Docker image
|
#### Docker image
|
||||||
|
* Added possibility to add the no-auto-pause option
|
||||||
* Added possibility to allow commands in game
|
* Added possibility to allow commands in game
|
||||||
* Automatically takes latest save or autosave. when restarting the container.
|
* Automatically takes latest save or autosave. when restarting the container.
|
||||||
* Added possibility to change default autosave interval
|
* 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.
|
Where [PATH] is the path to the folder with your mods.
|
||||||
#### Allowing in-game commands
|
#### 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 \
|
docker run -d \
|
||||||
--env FACTORIO_DISSALOW_COMMANDS=false \
|
--env FACTORIO_DISSALOW_COMMANDS=false \
|
||||||
-p [PORT]:34197/udp \
|
-p [PORT]:34197/udp \
|
||||||
zopanix/factorio
|
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
|
ToDo's
|
||||||
-----
|
-----
|
||||||
* Add possibility to allow in-game commands ( can be considered as cheating :-p )
|
* Add possibility to allow in-game commands ( can be considered as cheating :-p )
|
||||||
|
@ -26,11 +26,17 @@ if [ "$FACTORIO_DISSALOW_COMMANDS" == false ]; then
|
|||||||
else
|
else
|
||||||
disallow_commands="--disallow-commands"
|
disallow_commands="--disallow-commands"
|
||||||
fi
|
fi
|
||||||
|
if [ "$FACTORIO_NO_AUTO_PAUSE" == true ]; then
|
||||||
|
no_auto_pause="--no-auto-pause"
|
||||||
|
else
|
||||||
|
no_auto_pause=""
|
||||||
|
fi"
|
||||||
echo "###"
|
echo "###"
|
||||||
echo "# Launching Game"
|
echo "# Launching Game"
|
||||||
echo "###"
|
echo "###"
|
||||||
exec /opt/factorio/bin/x64/factorio \
|
exec /opt/factorio/bin/x64/factorio \
|
||||||
$disallow_commands \
|
$disallow_commands \
|
||||||
|
$no-auto-pause \
|
||||||
--autosave-interval ${FACTORIO_AUTOSAVE_INTERVAL} \
|
--autosave-interval ${FACTORIO_AUTOSAVE_INTERVAL} \
|
||||||
--autosave-slots ${FACTORIO_AUTOSAVE_SLOTS} \
|
--autosave-slots ${FACTORIO_AUTOSAVE_SLOTS} \
|
||||||
--start-server \
|
--start-server \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user