-
Notifications
You must be signed in to change notification settings - Fork 72
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
Feat/seed vip #682
Feat/seed vip #682
Conversation
I've been running this for a few days on ours; looks to be working fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only saw the bad "Documentation" error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the "GTX Server Name Change" doc ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@cli.command(name="seed_vip") | ||
def run_seed_vip(): | ||
config = SeedVIPUserConfig.load_from_db() | ||
if config.enabled: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
won't this result in automatic restarts when the seed vip feature is disabled? (I mean supervisor restarting the service)
logger.debug( | ||
f"Did not receive a usable result from `get_online_players`, continuing" | ||
) | ||
continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be a sleep here as well? Otherwise the loop will re-reun this code instantly, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
logger.debug( | ||
f"Did not receive a usable result from `get_gamestate`, continuing" | ||
) | ||
continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as the comment before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
This is a pretty straight forward port of https://github.com/cemathey/hll_seed_vip to run as a service inside of CRCON itself.
Made some minor tweaks since it can access info internally instead of using the API.
This runs as a separate service (like all the other plugins)
Has a user config and updated menu
Opening a draft PR; I'm going to set this up in dry run mode on ours and verify that I get the same results as my externally hosted one, then again the next day with dry run off and the other tool in dry run and verify again.
For future reference, this possible languages that can be used when using
humanize
to nicely format date/time quantities: https://github.com/MarechJ/hll_rcon_tool/wiki/Seed-VIP-Localization