Skip to content

Releases: nwesterhausen/valheim-discordconnector

1.5.2 Record Retrieval Fixes

28 Oct 22:19
12c6775
Compare
Choose a tag to compare

Fixes:

  • Highest and Lowest leaderboards were not checking the correct tables
  • Configurable retrieval strategy for all records (either SteamID, PLayer Name, or both) -- always returns player names

Due to how records.json recorded stats and the LiteDB, you will not be able to use the old records with strategies
involving the SteamID because prior to 1.5.0 we were not recording the SteamID with the record.

1.5.1 Toggles for new Leaderboard

28 Oct 15:26
4ef37ef
Compare
Choose a tag to compare

Fixes:

  • Have toggles for the new leaderboard (Bottom N Players or the Inverse Ranked leaderboard)

1.5.0 Change to LiteDB

28 Oct 15:17
edda27b
Compare
Choose a tag to compare

Features:

  • Change from using a JSON file for a database to LiteDB
  • Added a Bottom Player leaderboard (inverse of top player)
  • Changed the message formatting to accept the %PUBLICIP% variable in any message.
  • Custom leaderboard heading messages

Because of how unreliable storing the records in a "roll-your-own"
database with a JSON file was, and because of the increased flexibility
in what could be stored, I've changed the storage system for the
recorded player stats to use LiteDB. Currently this means records for
join/leave/death/shout/ping will be timestamped, include the position of
the event, have the player name, and the player's steamid. Hopefully
adding this additional information will allow for more customization
options for the users of this mod.

It is set up to do a migration on first load of the updated plugin, the
steps it follows for that is:

1. check if records.json (or configured name) exists
2. read all records from the file
3. parse the records
4. loop through all the records and add them to the database

	Records added this way will have position of zero and a
	steamid of 1.

5. move the records.json file to records.json.migrated

If you don't want to have it auto-migrate the records, rename your
records.json or delete it. If the name does not match exactly it will
not migrate the data.

For the migration steps, it will be outputting log information (at INFO
level) with how many records were migrated and which steps completed.

1.4.4 Fix event messages not following rules

27 Oct 17:04
ea00036
Compare
Choose a tag to compare

Fixes:

  • Position being sent with event messages even if event position was disabled in config, or having 2 event messages sent every event change.

1.4.3 Event message fixes and more

24 Oct 13:39
bc09926
Compare
Choose a tag to compare

Fixes:

  • Event messages were sending the wrong message (start instead of end and vice-versa)
  • Event Stop messages were sending zero coordinates
  • If you had enabled first death message and death message (this is default settings), you would
    get two messages. This has been changed to merge the messages into one if both settings are on
    and it's a player's first death. (Thanks @thedefside )

Features:

  • Added toggles to enable/disable some event debug messages (all disabled by default)
  • Added a toggle to enable/disable a debug message with responses from the webhook (disabled by default)

1.4.2 Fix Least Deaths Message

23 Oct 20:53
8c5127a
Compare
Choose a tag to compare

Fixes:

  • Least deaths leaderboard wasn't respecting the correct config entry. (Thanks @thedefside)

1.4.1 Remove event debug logging

23 Oct 11:21
27ec52b
Compare
Choose a tag to compare
  • Removed event check log lines

Will likely add a set of toggles to turn on debug messages by type in a future release, to aid with troublehsooting/debugging.

1.4.0 Bugfixes and User-defined Variables

22 Oct 17:36
6cf2c4f
Compare
Choose a tag to compare

Features:

  • 10 user defined variables that can be used an any messages (%VAR1% thru %VAR10%). These are set in their own configuration file,
    games.nwest.valheim.discordconnector-variables.cfg which will get generated first time 1.4.0 is run.
  • The position of where the player/ping/event coordinates are inserted into messages is configurable using the %POS% variable in
    the messages config. It won't be replaced if the "send coordinates" toggle is off for that message. If you don't include a %POS%
    variable, it will append the coordinates as happens with previous versions.

Fixes:

  • Fixed an off-by-one error in the Top Players leaderboard (the default leaderboard) (Thanks @thedefside)
  • Fixed configuration not referencing proper settings (Thanks @thedefside)
  • Fixed event messages (now properly functioning on dedicated servers)

Breaking Changes:

  • If you used %PLAYERS% in any of the event messages, you need to remove it. With the changes required for the event messages
    functionality, it is not supportable at this time.

1.3.0 More Leaderboard Options

20 Oct 11:36
7105504
Compare
Choose a tag to compare

Features

  • Adds rankings to periodic leaderboard
  • Adds configurable number of ranks to include
  • Adds a most X leaderboard (sent at same interval)
  • Adds a least X leaderboard (sent at same interval)

1.2.2 No Shutdown Message Fix

18 Oct 21:44
437c3b7
Compare
Choose a tag to compare

Fixes:

  • No shutdown message when some other mods are loaded (Like World of Valheim suite)

Also this update modifies when the startup, shutting down, and shut down messages are sent. There now will likely be a bit
of a pause because the startup message gets sent when the game is initialized instead of when the loading of the map starts
for the server.