Giter Club home page Giter Club logo

openttd's People

Contributors

adaamz avatar bateau84 avatar dependabot[bot] avatar djgummikuh avatar euch avatar frodus avatar gregdek avatar leehmanqq avatar s-konijn avatar spacexcheesewheel avatar willnwalker avatar zoltantamasvajda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

openttd's Issues

Multi arch builds

Could you build openttd with multi arch manifests for amd64, arm and arm64/aarch64?

How to generate the openttd.cfg ? And where place it ?

Hello I have a problem with this docker container. The documentation talk about a .openttd directory but what about the openttd.cfg ? Should I create it manually ? Where to place it ?

I tryed to put one on .openttd/openttd.cfg but no effect ...

Thank you in advance for your help :)

Game Save Failed: File not writeable

Hello

I have an issue using the image, namely (auto) saving. The config file is loaded, and I am seemingly able to load a save file, but saving itself fails - I figure due to some writing permission issues.

Image: bateau/openttd:latest
System: Synology DS918+
Volume: docker/openttd, mounted to /home/openttd/.openttd RW
Env:

  • PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  • savename: game.sav
  • loadgame: true
  • PGID: 100
  • PUID: 1026

Above PGID/PUID from local user "docker": uid=1026(docker) gid=100(users) groups=100(users)

Also attempted to "chown -R" my local folder, docker/openttd as follows: drwxrwxrwx+ 1 docker users

Still, the log indicates the below errors. What am I missing?

2020-03-24 19:57:21	stdout	usermod: user openttd is currently used by process 1
2020-03-24 19:57:21	stdout	groupmod: Permission denied.
2020-03-24 19:57:21	stdout	groupmod: cannot lock /etc/group; try again later.
2020-03-24 19:57:21	stdout	/openttd.sh: 15: [: /home/openttd: unexpected operator
2020-03-24 19:57:21	stdout	
2020-03-24 19:57:21	stdout	-----------------------------------
2020-03-24 19:57:21	stdout	GID/UID
2020-03-24 19:57:21	stdout	-----------------------------------
2020-03-24 19:57:21	stdout	User uid:    1000
2020-03-24 19:57:21	stdout	User gid:    1000
2020-03-24 19:57:21	stdout	User Home:   /home/openttd
2020-03-24 19:57:21	stdout	-----------------------------------
2020-03-24 19:57:21	stdout	
2020-03-24 19:57:21	stdout	We are loading a save game!
2020-03-24 19:57:21	stdout	Lets load /home/openttd/.openttd/save/game.sav
2020-03-24 19:57:21	stdout	dbg: [net] Starting dedicated version 1.9.3
2020-03-24 19:57:21	stdout	dbg: [net] [core] starting network...
2020-03-24 19:57:21	stdout	dbg: [net] [udp] initializing listeners
2020-03-24 19:57:21	stdout	dbg: [net] [core] network online, multiplayer available
2020-03-24 19:57:21	stdout	dbg: [net] Detected broadcast addresses:
2020-03-24 19:57:21	stdout	dbg: [net] 0) 172.17.255.255
2020-03-24 19:57:21	stdout	dbg: [net] [udp] closed listeners
2020-03-24 19:57:21	stdout	dbg: [net] [udp] initializing listeners
2020-03-24 19:57:21	stdout	dbg: [net] [udp] closed listeners
2020-03-24 19:57:21	stdout	dbg: [net] [udp] initializing listeners
2020-03-24 19:57:21	stdout	dbg: [net] starting listeners for clients
2020-03-24 19:57:21	stdout	dbg: [net] [tcp] listening on IPv4 port 0.0.0.0:3979 (IPv4)
2020-03-24 19:57:21	stdout	dbg: [net] starting listeners for admins
2020-03-24 19:57:21	stdout	dbg: [net] [tcp] listening on IPv4 port 0.0.0.0:3977 (IPv4)
2020-03-24 19:57:21	stdout	dbg: [net] starting listeners for incoming server queries
2020-03-24 19:57:21	stdout	dbg: [net] [udp] listening on IPv4 port 0.0.0.0:3979 (IPv4)
2020-03-24 19:57:21	stdout	‎*** Game paused (number of players)
2020-03-24 19:57:24	stdout	dbg: [net] Network revision name is '1.9.3'
2020-03-24 19:57:24	stdout	dbg: [net] [udp] queried from 172.17.0.1
2020-03-24 19:57:34	stdout	dbg: [net] [udp] queried from 172.17.0.1
2020-03-24 19:57:34	stdout	dbg: [net] [server] Client connected from 172.17.0.1 on frame 128
2020-03-24 19:57:34	stdout	dbg: [net] Closed client connection 2
2020-03-24 19:57:38	stdout	dbg: [net] [server] Client connected from 172.17.0.1 on frame 169
2020-03-24 19:57:42	stdout	‎*** Game still paused (connecting clients, number of players)
2020-03-24 19:57:43	stdout	‎*** Player has joined the game (Client #3)
2020-03-24 19:57:43	stdout	‎*** Game still paused (number of players)
2020-03-24 19:57:43	stdout	‎*** Game unpaused (number of players)
2020-03-24 19:57:54	stdout	dbg: [net] [rcon] client-id 3 executed: 'save test2'
2020-03-24 19:57:54	stdout	dbg: [sl] Game Save Failed
2020-03-24 19:57:54	stdout	File not writeable
2020-03-24 19:58:40	stdout	dbg: [sl] Game Save Failed
2020-03-24 19:58:40	stdout	File not writeable
2020-03-24 19:58:40	stdout	ERROR: Autosave failed

Exit.sav is empty

Again, really happy with this docker image & thank you for putting it together!

It's working like a dream, but I'm noticing that when the docker container is stopped & restarted, the exit.sav file (autosave function) is 0 bytes. So it seems that the container is shut down before the save file has been generated. Perhaps a longer wait time needs to be built into the shutdown script for this to function? (not sure on how these things work with Docker)

As posted previously, running on a Synology DS216+II

Server version mismatch?

Hi!

I'm probably doing something wrong, but I get the container up and running, and also can see the server in the game browser when adding it.

But the client lists "Server version: 1.5.3" even though I've tried :latest and :1.6.1
The docker log says "Starting dedicated version 1.6.1"
Any clue what's up?

Is there a way to change [plane_speed] setting on a multiplayer game?

Can it be changed? I have a really big map and need to change it since the planes are too slow and don't make any sense.
I know it cannot be changed for multiplayer games, but can it be forced somehow? hacking the save?

background:
I have a server almost one year old and people playing in it.

{SOLVED} Error: /home/openttd/.openttd/save/game.save not found...

I´ve generatet a save file in the game, and put on my server at: /home/openttd/saves/game.save

And tryed to user this docker command:
sudo docker run -it --rm -e PUID=1000 -e PGID=1000 -p 3979:3979/tcp -p 3979:3979/udp -v /home/openttd/saves:/home/openttd/.openttd -e "loadgame=true" -e "savepath=/home/openttd/saves" -e "savename=game.save" --name openttd-server bateau/openttd:12.2

What am i doing whrong?
I've always shied away from docker. So im very new to this topic. but after reading documentation's, and other poples problems, i cant find the problem my self.

It works when i try to run it with just "savepath=/home/openttd/saves" -e “loadgame=last-autosave".
Saving and loading works, but my saves folder is empty. Afer restarting the docker container, the savegames are lost, and cant be loadet with the "load" command anymore.

Loading save game

Hi, just wanted to mention that on the docker it's listed as "autosave" for loading the last one. However, in your code on here, it looks like it's actually loading "last-autosave" instead.

1.11.2

please im going insane your thing is the only thing ive found that actually works and manages to load our save but theres a version mismatch

idk hw to do docker myself can you please update it thank you xxx

Docker image for ARM

Hi there,

Any plans to add ARM comparability to the docker container at some point?

Michael

Old download URL in use

Hi!

You are currently using an old URL for OpenTTD downloads here:

wget -q https://proxy.binaries.openttd.org/openttd-releases/${OPENTTD_VERSION}/openttd-${OPENTTD_VERSION}-linux-${ID}-${UBUNTU_CODENAME}-amd64.deb

proxy.binaries.openttd.org has been replaced with cdn.openttd.org a few months back. You already changed this for OpenGFX here:

6038f23

Possibly a good idea to also change the other to point to cdn.openttd.org, as proxy.binaries.openttd.org will retire somewhere in the future (it currently redirects you to cdn.openttd.org).

https://cdn.openttd.org/openttd-releases/

Contains all official releases ever made by OpenTTD.

Thank you!

PS: if you want to verify cdn.openttd.org is the correct URL: check the download links on https://www.openttd.org/downloads/openttd-releases/latest.html

Docker repo out of date

While the code on this Github repository seems to be up to version 1.6.1 the Docker Hub repo seems to be only on version 1.6.1-RC1 (https://hub.docker.com/r/bateau/openttd/tags/).

When you can could the Docker repo be updated to the latest 1.6.1 build.

Thanks in advance and for the work on the Docker container so far.

What is a proper way to manage dedicated server openttd.cfg configuration file?

Hello,
thank you for this great repository, finally an idea attractive and educative enough to get me into Docker. I've read through the available documentation, studied and understood most of the committed files and succeeded in deploying an OpenTTD server using Docker on Ubuntu 18.04 in Azure. (My attempt with Azure Container Instances failed on inability to expose TCP and UDP on 3979 properly so it deployed, but was not reachable)

When I examine the running container I notice an unpleasant lack of openttd.cfg file which I would like to modify. I did not make use of the k8s orchestration yet, the file failed to validate for me, despite some efforts. Also there is -x parameter, preventing config changes to be saved and it seems intentional, why is it? I would be very grateful for some directions on how to manage the config file properly. Thanks in advance.

openttd.cfg

I need a configuration file, at least an example.
I have not found a standard example anywhere.
Nowhere is there information on the detailed configuration of a dedicated server.
All I need, is a standard configuration file, to replace the server name, that's all.
Could you provide a standard configuration file with which this container works out of the box.
So that I can make changes to it by changing the name of the server. I do not need to read the wiki, please do not copy the link to the wiki here. I need a normal example configuration file.

Better manual

Sorry for my stupidity. I have play with m$, linux servers and many different dedicated servers virtualization etc and I have an image in my head how docker works... But I can't get my mind bend over this.

Could you please, please, please provide some basic usage commands and config manual for openttd + docker.

  • Where config files suppose to be
  • Where files actually are and how to access them
  • How to launch server
  • How to stop server

... I just f**** hate all this extra bs around docker. Change my mind.

[img]https://i.imgur.com/0V09mA3.png[/img]

Update the latest tag in Docker Hub

Hey!

I see that you are using an automated script for generating images for all versions specified in the releases file and tagging the appropriate version in docker. It would be helpful if you also tagged the latest tag (which is currently some old version) so it would be possible to just run docker run bateau/openttd and get the latest OpenTTD.

It should be possible if you just pull the latest release using head -1 releases and make a new build which is tagged latest. What do you think?

Mistake in README.md

Hello, the README here on Github as well as on Docker hub has a mistake in naming the variable for a savegame "savegame". But the container expects "savename".

Otherwise, thanks for the image!

Add option for custom config file

Right now I don't see an option for a custom config file being used, and I see the line -c "/usr/share/games/openttd/openttd used throughout the openttd.sh file

Would it be possible to do a variable that enabled a custom config file to be used? Something like config=true or config=<PATH>?

Please let me know if I'm doing something wrong. I've tried putting the config file in .openttd and in .config/openttd without luck.

Version mismatch

Currently there's a version mismatch when running the latest version of this container and latest version of OpenTTD
Container version: 13.0-RC1
OpenTTD verison: 13.3

Game saves are going into another folder

First of all: Thank you so much for creating this!

I'm running your docker file through my Synology and have set user permissions appropriately, etc.

It took me a long time to figure this out, but it seems to be that your server is looking for saves in the path set, but is actually saving them somewhere else for me.

I'm probably doing something wrong, but all save files are being created here:

/home/openttd/.local/share/openttd/save

Using the -v command, I'm connecting /home/openttd/.openttd through Docker. The dedicated server is loading the openttd.cfg file from there perfectly, has populated that folder with all subfolders, but for some reason, all save files are going elsewhere.

No map generated

When launching the container with no previous save the new game created appears as a 0x0 server which cannot be connected to. I'm not sure if i'm just not launching it correctly or if its failing to correctly load the game. When launching i use the command given in the example section of the README

Lagspike when autosaving

Is there a way to mitigate the lagspikes that happen when autosaving without changing the autosave-interval?

Provide "load save if present" option

Hey!

Maybe I'm dumb but...
I'm trying to run an openttd server that I can just spin up (providing an existing openttd.cfg file). I'm expecting it to create a new map if none has been initialized yet but load a savegame if it's already present. I set save_on_exit to 1 in the config and the savegame is written if I initialize the server without -e loadgame but if I provide -e loadgame=exit it expects the file to already be there. That way I will have to recreate the container twice everytime I want to reset the map, surely that can't be the best way?
Help please! :D

Please update to 1.10.2

Is it possible to update the Dockerfile to 1.10.2?

It still indicates 1.10.1:

ARG OPENTTD_VERSION="1.10.1"

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.