[BUG] server crashed when player joined
BugmanBugman opened this issue ยท 8 comments
What happened?
Game crashed when player joined
What should happen?
-for it not to crash
Steps to reproduce
- have open server with webhook enabled
- player join
Version
1.16.4
Mod version _2.0.2
Config file
-https://hatebin.com/kyovefklcb
REMOVE YOUR BOT TOKEN BEFORE UPLOADING!!!
Crash report if available (use https://paste.dimdev.org)
https://hatebin.com/tmldamdqmj
Additional info
Try downloading that file again and test if this happens again.
Might be an corrupted file or something else caused it to get loaded incompletely
Or try the new alpha version, if you encounter new bugs with that, please report them too
That crash report is helpful (even tho it might be an configuration problem, like an empty channel ID variable)
I got a similar error, might be related:
Crash report: https://pastebin.com/U1uywrHB
That crash report is helpful (even tho it might be an configuration problem, like an empty channel ID variable)
This was my first idea. Here is my config (just masked a bit of the token / channe ID): https://pastebin.com/mp0RgS3T
In the "DiscordIntegration-Data" folder there is "LinkedPlayers.json" file that is empty. Maybe is this the cause?
serverChannelID = ""
change it to
serverChannelID = "default"
but i will also add some checks that it won't actually crash the server but log an error
Thanks for the fast response.
Sadly this change makes no difference. I still got the server-crash.
I even changed all of the ChannelID to "default" like this:
channelDescriptionID = "default"
serverChannelID = "default"
deathChannelID = "default"
chatInputID = "default"
chatOutputID = "default"
Edit: Changing the value to the actual ChannelID also makes no difference.
Forget what I said, serverChannelID = "default" fixes the problem. I was still having 2 files in my config folder ("dcintegration-common.toml" and "Discord-Integration.toml") and I was editing the wrong config.