mirror of
https://github.com/bplein/factorio-docker.git
synced 2025-01-26 03:52:15 +02:00
Added dissalow_commands feature
This commit is contained in:
parent
dfb8b32a10
commit
b056148d75
@ -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 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
|
||||||
* Added possibility to change default autosave slots
|
* Added possibility to change default autosave slots
|
||||||
@ -83,6 +84,14 @@ docker run -d \
|
|||||||
zopanix/factorio
|
zopanix/factorio
|
||||||
```
|
```
|
||||||
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
|
||||||
|
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
|
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 )
|
||||||
|
@ -20,11 +20,17 @@ else
|
|||||||
echo "###"
|
echo "###"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Checking options
|
||||||
|
if [ $FACTORIO_DISSALOW_COMMANDS -eq "false" ]; then
|
||||||
|
disallow_commands=""
|
||||||
|
else
|
||||||
|
disallow_commands="--disallow-commands"
|
||||||
|
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 \
|
||||||
--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