Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] - Automatically update game server files if server is idle #51

Closed
1 task done
GMBridge opened this issue Jan 24, 2024 · 5 comments
Closed
1 task done
Assignees
Labels
enhancement New feature or request

Comments

@GMBridge
Copy link

Have you read the Important information text above

  • Yes i did

Current behavior

need to manually restart container to download & apply updates from steam to game server

Desired behavior

check with XX interval if updated game server files are available from steam, then if new files are detected, check if server is 'idle' (either via RCON to get player count or by monitoring for a lack of UDP traffic), if server is idle, apply the update & restart game server. if server is not idle, RCON broadcast a message to let players know there is a pending update that needs to be applied.

Links to screenshots

No response

To Reproduce

Steps to reproduce the behavior:

  1. new feature request

Software setup

  • OS: centos
  • Docker: 25.0

Hardware setup

  • vCPU: 6
  • RAM: 16
  • Disk: 2tb

Additional context

No response

@jammsen jammsen self-assigned this Jan 24, 2024
@jammsen jammsen added the enhancement New feature or request label Jan 25, 2024
@jammsen
Copy link
Owner

jammsen commented Jan 25, 2024

Hey @GMBridge nice idea, thanks for the feature request. This could take a bit of time though, as you can see there are more problems then 1 and adding features comes when every thing else is stable 😄

Leaving this here as inspiration:
https://github.com/Didstopia/7dtd-server/blob/master/update_check.sh

@GMBridge
Copy link
Author

i really like how lloesche handled stuff in their valheim container, may also have some good ideas for things https://github.com/lloesche/valheim-server-docker

@jammsen jammsen changed the title feature request - automatically update game server files if server is idle [Feature Request] - Automatically update game server files if server is idle Jan 25, 2024
@thejcpalma
Copy link
Contributor

Will look into this for the server restart feature I'm implementing, will discuss it with @jammsen on the best way to do it 😊
Feel free to spark more ideas or links for us to be inspired ✨

@thejcpalma
Copy link
Contributor

Feature

Auto update server when no players are connected (X amount of time between checks for version) .
Willing to hear suggestions on this implementation.

Willing to implement this feature.

Warning

Will only work when RCON is enabled, as it will need to fetch player info and the only way to obtain that currently is with RCON.

Depends on #181

@jammsen
Copy link
Owner

jammsen commented Feb 13, 2024

This is fixed in the release on latest from 5 minutes ago. See Changelogs or Discord message regarding the new release and what to lookout for. We dont cover the idle part, but you can setup restarts via Cron-Expressions, which should help you out.

Im closing this issue as resolved, feel free to reach out again if you need help.

If you like this project, please consider giving this repo and the Docker-Hub-Repo a Star.

@jammsen jammsen closed this as completed Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants