mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-10 04:37:23 +01:00
Added dissalow_commands feature
This commit is contained in:
parent
dfb8b32a10
commit
b056148d75
@ -9,6 +9,7 @@ Current Version
|
||||
#### Factorio
|
||||
See [factorio's site](http://www.factorio.com)
|
||||
#### Docker image
|
||||
* Added possibility to allow commands in game
|
||||
* Automatically takes latest save or autosave. when restarting the container.
|
||||
* Added possibility to change default autosave interval
|
||||
* Added possibility to change default autosave slots
|
||||
@ -83,6 +84,14 @@ docker run -d \
|
||||
zopanix/factorio
|
||||
```
|
||||
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".
|
||||
```
|
||||
docker run -d \
|
||||
--env FACTORIO_DISSALOW_COMMANDS=false \
|
||||
-p [PORT]:34197/udp \
|
||||
zopanix/factorio
|
||||
```
|
||||
ToDo's
|
||||
-----
|
||||
* Add possibility to allow in-game commands ( can be considered as cheating :-p )
|
||||
|
@ -20,11 +20,17 @@ else
|
||||
echo "###"
|
||||
fi
|
||||
|
||||
# Checking options
|
||||
if [ $FACTORIO_DISSALOW_COMMANDS -eq "false" ]; then
|
||||
disallow_commands=""
|
||||
else
|
||||
disallow_commands="--disallow-commands"
|
||||
fi
|
||||
echo "###"
|
||||
echo "# Launching Game"
|
||||
echo "###"
|
||||
exec /opt/factorio/bin/x64/factorio \
|
||||
--disallow-commands \
|
||||
$disallow_commands \
|
||||
--autosave-interval ${FACTORIO_AUTOSAVE_INTERVAL} \
|
||||
--autosave-slots ${FACTORIO_AUTOSAVE_SLOTS} \
|
||||
--start-server \
|
||||
|
Loading…
Reference in New Issue
Block a user