tModLoader
169 lượt đánh giá
Discord World Logs
4
   
Giải thưởng
Yêu thích
Đã yêu thích
Bỏ thích
Mod Features: Utilities, Quality of Life
Mod Side: Both
tModLoader Version: 1.4.4
Kích cỡ file
Đã đăng
Đã cập nhật
290.150 KB
4 Thg06, 2024 @ 1:29pm
29 Thg01 @ 12:35pm
25 ghi chú thay đổi ( xem )

Đăng ký để tải xuống
Discord World Logs

Mô tả
Discord World Logging is here!!

With this mod, you are now able to persistently log various ingame Events and Player Chat to a new dedicated Save File and push them to a discord channel of your choice using Discord Webhooks!

If you just want to use regular logging, you can disable these discord messages to just keep a regular world log instead.





List of logged Events:
  • Server Start / Stop Messages
  • Player Chat
  • Player Join and Leave Notifications
  • Player Deaths (including cause of death and modded Items)
    • Player vs. Player
    • Player vs. Bosses/Mobs
    • Player vs Environment
  • Bosses (including modded)
    • Boss Spawns
    • Boss Kills
    • Boss Escapes
  • World Events
    • Slime Rain
    • Goblin Invasion
    • Blood Moon
    • Old Ones Army
    • Frost Moon
    • Pumpkin Moon
    • Frost Legion
    • Pirate Invasion
    • Solar Eclipse
    • Martian Madness
    • Lunar Events
  • NPCs (including modded)
    • NPC Deaths
    • NPC Arrivals

Modded Multiplayer Ready!
This Mod also works great for modded singleplayer, local and dedicated Multiplayer Servers (both self hosted and hosting service like GPortal)!

The persistent and without direct Server Access not editable chat logs enable proper chat moderation for Community Servers!


Highly customizable!
Basically everything in this Mod can be configured through the mod menu. From the Discord Username to a custom Avatar Image, every Event Category can be seperatly disabled.

To keep long running worlds from bloating the log file, a value can be specified to keep a maximum number of logs (with optional Timestamps for local logging)

How to configure:
It is recommended to follow Discords official Guide[support.discord.com] on how to get your Webhook.
Quick Setup Guide
  1. Right click your Discords Server Icon and hover over Server Settings
  2. Click on the Integrations-Tab
  3. Click on the WebHooks and create a new Webhook (or reuse an already existing one)
  4. Once a new Webhook has been created, click on it and retrieve the WebHook by clicking Copy Webhook-URL
  5. Head into tModLoader
  6. Head into the Mod Settings by clicking Workshop --> Manage Mods --> Open Config
  7. Paste your copied Discord-Webhook into the corresponding option (remove the placeholder)

You're all set!


Known Issues
  • Localization seems to be borked when using a dedicated server. I've yet to find a way to fix this issue and its driving me Nuts. The Logs are only available in english so far.
  • The Golem fight only tracks its 2nd stage
  • Modded bosses might log a couple more entries than planned. This is due to them e.g. spawning unhandled copies of themselves or spawning additional "Mini Bosses".
    • Please write a comment if there are any bosses from any mods that have duplicated logs. I'll make sure to enable support for them!


Changelog:
v1.3.3 --> v1.3.3.4
  • Fixed faulty chat logging when chat body contains quote characters (")
  • Fixed the Value for "Log-Lines to keep" in the Config
  • Updated to newest tModLoader Version

v1.3.2 --> v1.3.3
  • Added localized logging for Server Start / Stop Operations ("Server has started" & "Server has stopped"). Can also be turned off via config menu.
  • Fixed the proper use of "has escaped" instead of "has been defeated"
  • Fixed printing of timestamps for events even if its set to false
  • Changed localization key for TownPet deaths and Travelling Merchant departure
    • Now properly uses "has left" and "has departed" instead of "was slain"

v1.3.1 --> 1.3.2
  • Added new config boolean to prefix emojis to the discord logs for better readability
  • Fixed Player Join/Leave config boolean
  • Fixed Frost/Pumpkin Moon Localization Keys

v1.3.0 --> v1.3.1
  • Fixed Configuration Warning logic
  • Changed default value of DiscordWebhook config to avoid confusion

v1.2.4 --> v1.3.0
  • Now includes Chat Logging!

v1.2.3 --> v1.2.4
  • Added helper functions to easily exclude modded bosses from duplicated logging
    • Fixed duplicated logging for Calamity Boss "The Perforators"
  • Now consideres multi-segment bosses that can split into multiple seperate boss instaces as a single instance
    • This specifically fixes the log spam when fighting the eater of worlds

v1.2.2 --> 1.2.3
  • Fixed sending of truncated log lines to discord when maxmimum number of LogsToKeep has been reached.

v1.2.1 --> v1.2.2
  • Fixed incorrect initialization and logging of modded Town NPCs
    • thanks Kotomanicsoldier for the heads up

v1.2 --> v1.2.1
  • Minor Localization Fix

v1.1 --> v1.2
  • Implemented temp fix for duplicate logging when fighting the Golem. Now only tracks the 2nd stage of the fight instead of both phases, to closer reflect on winning or loosing.
  • Added the following localizations:
    • German / Deutsch
    • Spanish / Español
    • French / Français
    • Polish / Polski
    • Italian / Italiano
    • Portuguese / Português
    • Russian / Русский
    • Chinese / 中文

v1.0 --> v1.1
  • Added Warning if LocalLogs not enabled and DiscordWebhook still at default value
  • Fixed Ingame Workshop Icon

v0.9 --> v1.0
  • Removed uneccessary local translation keys
  • Fixed multiple log entries when fighting the Lunatic Cultist
  • Used default (localized) status message for Invasions
  • Fixed Lunar Events not correctly tracking on World Restart
Nguyên văn bởi tModLoader DiscordWorldLogs:
Developed By FlickyFlack
Thảo luận nổi bật Xem tất cả (4)
26
17 Thg12, 2024 @ 11:48pm
Bug Reports + ModList Dump
FlickyFlack
10
8 Thg07, 2024 @ 4:53pm
Feature Requests
FlickyFlack
7
26 Thg07, 2024 @ 6:41am
How can I change the language?
.kenni 🕊
60 bình luận
FlickyFlack  [tác giả] 14 Thg04 @ 1:09am 
@bruh9000 I'd rather refactor the code before anyone sees my spaghetti mess haha.
Completely forgot about making it public, I'll let you know once I push it.
bruh9000 10 Thg04 @ 12:07pm 
Hey, do you think you could put this on GitHub so we can contribute?
FlickyFlack  [tác giả] 29 Thg01 @ 12:35pm 
@Lanie Rubyss Thanks for the Heads up! Should now be fixed!
Lanie Rubyss 29 Thg01 @ 9:59am 
Apparently, if someone uses a " in text, the whole message is skipped by this mod. Might need to track and manually escape the " character, so it handles it properly.
Fusion 1 Thg11, 2024 @ 3:52am 
Yeah i already found that out from just getting bored of trying to fix it but it should have a disclaimer that you have to restart your client to disable the mod
FlickyFlack  [tác giả] 29 Thg10, 2024 @ 2:26pm 
@Fusion have you restarted the game? The Mod hooks into the Vanilla "OnLoad" Method to properly propagate the "has started" messages to the discord webhook. If you want to be 100% sure to disable the mod, you'll have to restart your client.
Fusion 27 Thg10, 2024 @ 4:17am 
I completely deleted the mod and its still spamming the fuck out of my chat when i play single player when its not even enabled
MildTomfoolery 17 Thg08, 2024 @ 6:07pm 
"the terraria chat leaked"
blue bird hippo 10 Thg08, 2024 @ 8:26am 
░░███████ ]▄▄▄▄▄▄▄▄ - - - FIGHT AGAINST BOB AND DOGE AND SAVE STEAM!
▂▄▅████████▅▄▃▂ COPY AND PASTE TANK TO JOIN WAR!
I███████████████████]
◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
爆胎 20 Thg07, 2024 @ 10:57pm 
Hello developer, I found some mod bosses during use, and the log information cannot distinguish whether they were defeated or escaped. Even if the boss is defeated, the information in the game is defeated, but World_Logs.txt records that they escaped