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

Serilog logging #68

Merged
merged 21 commits into from
Jul 22, 2024
Merged

Serilog logging #68

merged 21 commits into from
Jul 22, 2024

Conversation

GravityWolfNotAmused
Copy link
Owner

Added Tags:

  • Steam:
    • @Time
    • @SunMoon
  • BattleMetrics
    • @SunMoon

Configuration Values Added:

  • ServerInformation
Variable Name Type Is Required Notes Example Values
SunriseHour integer Nullable There is a hidden default of 6 am 6
Sunset Hour integer Nullable There is a hidden default of 8 pm 20

What is this?

Sunset and Sunrise hours are used to help determine when you consider it to be day and when you determine it's night based on server time.

How can I use it?

Steam Users
When utilizing a game that speaks with Steam Web API and holds onto the game's time inside of its Gametype, I will parse it out and use it for the server's time. This will influence whether these tags work for you or not. The only servers I am aware of are DayZ, but many games use Gametype to hold information about the server and do.

Battlemetric
When utilizing a game that is tracked by BattleMetrics, was already available to you, so I have added the SunMoon tag to your available tags.

What will it look like?
image

image

What does my config look like now, and how can I configure when it's daytime or nighttime?
There is no difference due to these variables not being required by older version configs. To configure what hour is after sunrise you will set SunriseHour to that value instead of null. To configure what hour is the last hour of daylight before night time set SunsetHour to a value instead of null. If both values are null, or only one is set the bot will default to 0600 - 2000 daytime cycle (July).


    {
      "Name": "My Server",
      "Address": "204.36.363.66:27016",
      "Token": "",
      "StatusFormat": "@Players/@MaxPlayers Q: @QueuedPlayers @Time @SunMoon",
      "Status": 3,
      "UseNameAsLabel": false,
      "ProviderType": 0,
      "ChannelID": null,
      "SunriseHour": null,
      "SunsetHour":  null
    }

New Data Providers:
5, 6 - RCONClient and SteamQuery

Added Exceptions:
ParsingException for when Rcon response did not contain the minimum information
RconAuthenticationException for when you fail to authenticate with RCON
ConfigurationException for when you are missing a nullable value in your configuration due to the way you are configured.

Big Sads:
Sadly it doesn't seem that Queued Players can be found by Steam Query 🥲

@GravityWolfNotAmused GravityWolfNotAmused merged commit 7873c22 into dev Jul 22, 2024
3 checks passed
@GravityWolfNotAmused GravityWolfNotAmused deleted the serilog-logging branch July 22, 2024 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant