-
-
Notifications
You must be signed in to change notification settings - Fork 831
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
Update feature : Online players check #786
Comments
I agree that would be a nice idea. Should be possible however Im not sure how to implement this yet. |
http://steamcommunity.com/groups/linuxgsm/discussions/0/364039531228165077/ Quotation from myself : "This would require to query the server and get the amount of players on it. I's an interesting idea but would be quite hard to do." |
@UltimateByte @dgibbs64 Yes. Querying a server from a script is not the easiest thing to do I guess. Anyway... I can experiment a little. By creating something that will run your update script, when the server is empty.. if I even are able to do that at all.. Anyway I hope it will be implemented if you have time or can ofc :) Thanks. |
Once again, Cedar has a clever idea about this : using "stats" command.
|
I use SteamCondenser in my stuff, but for a basic rcon implementation (in Node.js but easy to read), see https://github.com/randunel/node-srcds-rcon - we may want to create a function for rcon commands and use that to send and receive data to game instances. Using command stuffing and log scraping seems like a hacky approach. If I have some time (ha ha), I might try to add something like this. |
Also, there is this. I am using it to add these features to my forked gsquery.py: |
Node-Gamedig is now supported. This feature should now be possible |
#647 related |
Monitor has had a refactor and gamedig is better supported. This feature can now be developed for any game server that supports gamedig. However, will have to check results with bots |
gamedig support is much better in linuxgsm now. I will finally be looking to implement this functionality. |
Oh wow! That would be awesome! Totally forgot about this... Been using LinuxGSM for years.. So this would be great! Thanks! |
|
So I am looking at this issue and so far I have gone with if players on the server then the server will not stop. This will cover all eventualities of stopping the server when a command is run. However the only issue is that an admin might WANT the server to stop even if players are still on the server. I am unsure how best to handle that |
I think the most important thing is not to change the current default of stopping / restarting / updating the server even when players are connected to avoid breaking current setups. So a new setting to choose whether to "force" / "wait for no players online" is probably needed. The default being to force stopping the server. If an admin sets this to "wait for no players online" in the config, LinuxGSM users should be promoted when players are online to make sure they want to stop the server anyway. This behaviour should be overridable by adding an argument like . This way, admins who want this functionality will also see any hints from the Also it might be helpful to send alerts when stopping the server is delayed because of online players. link #3676 |
there will be a new var I have just added some other functionality that if the server is blocked from restarting it will create a restart-request.lock file. When Update will also only happen if no players are present. I expect as updates are released players will naturally drop off allowing the server to update itself without disturbing a running game. I think adding Unsure on how to handle alerts currently but will give it some thought. |
Sounds good!
Perhaps this can also be achieved by adding a |
So there a a few scenarios to this
Edit: add timeout setting to force restart after X mintues |
Tanks for your effort! @dgibbs64 I still think it might be useful to be able to set a grace period in the config, after which a |
I agree I will add that functionality |
Hi,
I would like to see a feature that checks for online players on the server before it starts the update. If there are players online. We can have a choice of letting them know it will be updated in 5 mins or so. Or just abort the update and recheck later.
I think this will be really nice to have.
This is not really a issue more like a feature request.
Thanks.
The text was updated successfully, but these errors were encountered: