Giter Club home page Giter Club logo

Comments (3)

MineTrainDevelopment avatar MineTrainDevelopment commented on May 19, 2024

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.

MineTrainDevelopment avatar MineTrainDevelopment commented on May 19, 2024

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.

MineTrainDevelopment avatar MineTrainDevelopment commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.