Releases: nwesterhausen/valheim-discordconnector
2.1.4 Fix Some Message POS Toggles
Fixes:
- Death messages were referencing "LeavePosEnabled" instead of "DeathPosEnabled"
- Shout messages were referencing "PingPosEnabled" instead of "ShoutPosEnabled"
2.1.3 Extra Discord Message Fix
Fixes:
- Extra JSON data was getting sent to Discord when some LiteDB lookups were happening
Changes:
- Configs get dumped to 'config-dump.json' instead of 'config-debug.json'
2.1.2 Mistlands Update
Changes:
- Use new stable version 0.212.7 for building
2.1.1 Dependency Hotfix
Fixes:
- Missing dependency in final bundle (error in csharp project file)
2.1.0 Customizable Leaderboards
A full leaderboard overhaul is in the version. The previous settings for the statistic leaderboards are depreciated in favor of configuration defined statistic leaderboard settings. Look in the discordconnector-leaderboards.cfg
file and configure any number of the 4 leaderboards to present the kind of data you want. In addition to multiple leaderboards, there are now time-based filters for the leaderboards; restrict them to today or this week or leave them set to all-time. By default, all leaderboards are disabled. If you were using a leaderboard before, you will have to set up a leaderboard to accomplish what you were sending before and enable it. Sorry for the inconvenience but this was the safest tradeoff.
Also relating to statistic leaderboards, there is a new statistic available for the leaderboards, 'Time Online' which uses the saved 'join' and 'leave' records to estimate a player's time on the server and present that as a value. This obviously doesn't work if you had disabled one or the other pieces of tracking (either disabled recording 'join' or 'leave' stats in the toggles config file). This values are calculated when the leaderboard is created but that should be OK since it is in a non-blocking task call.
The new Active Player's Announcement can be configured to announce server activity at a pre-defined interval. Configurable stats for it include players currently online, unique players online today, unique players online this week and unique players all time. It will use the same method set in the main config file (discordconnector.cfg
) for how to determine individual players to count unique players for these time spans.
Additionally, the configuration files are nested in a subdirectory now. This is from a request on the plugin repository. When loading 2.1.0 (or future versions), the Discord Connector config files that are in the BepInEx/config
directory will be automatically moved to the subdirectory and loaded from there. The subdirectory is BepInEx/config/games.nwest.valheim.discordconnector
, and the config files themselves have shortened filenames. The records database is also moved to this subdirectory and renamed records.db
.
Features:
- Adds new tracked stat for time on server (only works if you have enabled join and leave stats) The duration provided will probably be inaccurate
- Adds dynamically configured leaderboards (disabled by default)
- Adds an Active Players Announcement (disabled by default)
Changes:
- Configuration files are now nested in a subdirectory (first run will migrate them automatically)
- Database file moved into the subdirectory (first run will migrate it automatically)
config-debug.json
file is dumped to subdirectory after config load to be useful for debugging issues with the plugin (sensitive info is redacted, i.e. the webhook url)- Multiple-choice config options use Enums on the backend now instead of Strings (may affect
discordconnector.cfg
: How to discern players in Record Retrieval) - Building the plugin with the optimization flag present; in my tests, startup time of a Valheim server with just DiscordConnector installed was quicker
- Public IP is only queried if it is used (by including the %PUBLICIP% variable in a message)
2.0.8 %WORLD_NAME% Change
Changes:
%WORLD_NAME%
will now only replace with world name once server has started up
2.0.7 Some Null Reference Guards
Changes:
- Further guards against null-reference exceptions
2.0.6 Remove Extraneous Discord Message
Fixes:
- Fixes plugin crash that could occur if the game was initiated more than once.
- Removed extraneous discord message on server load
2.0.5 Customizable Position Data
Features:
- Adds a config option to format how position data is formatted
- Adds a config option to format how the automatically-appended position data is formatted
- Adds a new variable which can be used in any messages:
%WORLD_NAME%
turns into the name of the world.
Changes:
%POS%
now renders without the enclosing parentheses.
2.0.4 Non-Player Shouts
Features:
- Adds a config option to enable sending non-player shouts to Discord. This is in the main config file and disabled by default.