Comments (3)
I tryed using an separate user, but save error.
I also tried deleting the "saves" folder, when I run the docker command the folder even gets generated again.
And yes, i changed the ids to the correct ones for this user.
from openttd.
Also tryed using docker compose:
version: '3.3'
services:
openttd:
image: bateau/openttd:12.2
container_name: openttd-server
restart: unless-stopped
ports:
- "3979:3979/tcp"
- "3979:3979/udp"
volumes:
- /home/openttd/saves:/home/openttd/.openttd
environment:
# savepath: /home/openttd/saves
loadgame: "true"
savegame: "game.sav"
PUID: 1000
PGID: 1000
But got the same error:
openttd@v26779:~/docker$ docker-compose up
Creating network "docker_default" with the default driver
Creating openttd-server ... done
Attaching to openttd-server
openttd-server |
openttd-server | -----------------------------------
openttd-server | GID/UID
openttd-server | -----------------------------------
openttd-server | User uid: 1000
openttd-server | User gid: 1000
openttd-server | User Home: /home/openttd
openttd-server | -----------------------------------
openttd-server |
openttd-server | /home/openttd/.openttd/save/ not found...
openttd-server exited with code 0
openttd@v26779:~/docker$
from openttd.
I found another flaw on my end.
I have overseen that my volumes
thing is relative from the unseres directory.
And i´ve named savename
-> savegame
in the docker file....
No everything works, and this is the working docker compose file:
version: '3.3'
services:
openttd:
image: bateau/openttd:12.2 #https://registry.hub.docker.com/r/bateau/openttd/tags
container_name: openttd
restart: unless-stopped
ports:
- "3979:3979/tcp"
- "3979:3979/udp"
volumes:
- ~/server:/home/openttd/.openttd
environment:
# loadgame: "true"
# savename: "game.sav"
loadgame: last-autosave
PUID: 1000
PGID: 1000
from openttd.
Related Issues (20)
- Better manual HOT 2
- Missing k8s example openttd.yaml file? HOT 1
- openttd.sh error on line 15 HOT 1
- What is a proper way to manage dedicated server openttd.cfg configuration file? HOT 2
- Lagspike when autosaving HOT 1
- Please update to 1.10.2 HOT 2
- Old download URL in use HOT 2
- Update the latest tag in Docker Hub HOT 1
- Provide "load save if present" option HOT 2
- My files are under /home/openttd/.local/share/save ? also with env savepath:/home/openttd Portainer HOT 7
- 1.11.2 HOT 1
- Docker image for ARM HOT 8
- Game saves are going into another folder HOT 3
- Is there a way to change [plane_speed] setting on a multiplayer game? HOT 2
- Exit.sav is empty HOT 5
- OpenTTD 13.x - Docker CI Build - Looking for .deb files and failing HOT 2
- No map generated HOT 3
- Version mismatch HOT 2
- Add option for custom config file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openttd.