[Support] DiscordGSM


Recommended Posts

18 hours ago, Cornflake said:


Hey,

So your valheim server seems to works now. That’s good to know, what was your issue now?

 

If gamedigquery doesn’t list your game it will basically not work you have to use one of the other Query types: sourcequery , ut3query or fake

https://github.com/DiscordGSM/DiscordGSM/wiki/SourceQuery

https://github.com/DiscordGSM/DiscordGSM/wiki/UT3Query
 

i don’t know what query type Terria is using, but you could try if one of it works 

 

basically you don’t need gamedigquery at all, as an example I used sourcequery for all my GameServers a while ago and it worked the same. 
 

you just need to look what query port you game uses and what Protocol. And don’t forget to forward the UDP port. 

The problem with the Valheim server turned out to be a combination of a wrongly placed "," and no write permissions in Discord. 

 

The Terraria server has the game port (7777) forwarded with both the TCP and UDP protocols. This is what I can see in the Terraria config;

image.thumb.png.712a39651ec77e4846cd34ea2d76d4b2.png

 

How can I see what the correct query type and port is? I tried setting the server.json to use the sourcequery, but that did not help. 

Link to comment
2 hours ago, workermaster said:

The problem with the Valheim server turned out to be a combination of a wrongly placed "," and no write permissions in Discord. 

 

The Terraria server has the game port (7777) forwarded with both the TCP and UDP protocols. This is what I can see in the Terraria config;

image.thumb.png.712a39651ec77e4846cd34ea2d76d4b2.png

 

How can I see what the correct query type and port is? I tried setting the server.json to use the sourcequery, but that did not help. 

 

I really dont know, the only thing is you can google it up what type it uses.

 

most gameservers uses the sourcequery, games like minecraft uses ut3query

 

so if you port forward the UDP port on your router be sure that the port is getting forwarded to your container aswell.

looks like in the picture that its only forwarding TCP if you trust the description

Link to comment
39 minutes ago, Cornflake said:

 

I really dont know, the only thing is you can google it up what type it uses.

 

most gameservers uses the sourcequery, games like minecraft uses ut3query

 

so if you port forward the UDP port on your router be sure that the port is getting forwarded to your container aswell.

looks like in the picture that its only forwarding TCP if you trust the description

I went on the Discord community of that bot and they told me that the bot will only display server information if the game supports a few different query types. Turnes out that Terraria (and Satisfactory and Wreckfest) are just not supported. 

 

They said that I can change the query type to "fake" in the servers.json and that managed to sort of fix it;

image.png.0ff9f040da5b2eaf61a1434483dacacc.png

 

The downside of the "fake" query is that the online/offline status are not always up to date and it can't display much more than that. But this is enough for me. 

 

Guess that the bot itself is rather limited in what servers it supports. Sure, Gamedigquery has a long list of supported servers, but there are plenty more that are not supported (yet) 

image.png

Link to comment

2022-03-21 13:38:28: 1 servers queried.
2022-03-21 13:38:28: Discord presence updated | 1 game servers
2022-03-21 13:38:28: ERROR: Failed to fetch message for server: Valheim Server. 
400 Bad Request (error code: 50035): Invalid Form Body
In message_id: Value "[int][optional][autofill] id of the message to update." is not snowflake.
2022-03-21 13:38:30: 
 1 error(s) in update_messages().
2022-03-21 13:38:32: 0 messages updated.
2022-03-21 13:39:28: 1 servers queried.
2022-03-21 13:39:28: ERROR: update_messages error threshold(0) reached. Reposting messages.
2022-03-21 13:39:30: ERROR: Failed to send message for server: Valheim Server. Missing permissions ?
400 Bad Request (error code: 50035): Invalid Form Body
In embed.thumbnail.url: Scheme "[string][optional] url of the thumbnail image url https" is not supported. Scheme must be one of ('http', 'https').
2022-03-21 13:39:32: 0 messages reposted.
2022-03-21 13:39:32: 0 messages updated.

 

 

 

This is what i get.. i think i dont see the failure right now xD

i gave my bot all the posting permissions in discord and in the discord Bot setup link, i tryed even the 8 for Admin rights.

 

 

nvm i found i, it wants a legit Picture file or atleast delete the picture command.

Edited by domrockt
Link to comment
Posted (edited)
1 hour ago, domrockt said:

2022-03-21 13:38:28: 1 servers queried.
2022-03-21 13:38:28: Discord presence updated | 1 game servers
2022-03-21 13:38:28: ERROR: Failed to fetch message for server: Valheim Server. 
400 Bad Request (error code: 50035): Invalid Form Body
In message_id: Value "[int][optional][autofill] id of the message to update." is not snowflake.
2022-03-21 13:38:30: 
 1 error(s) in update_messages().
2022-03-21 13:38:32: 0 messages updated.
2022-03-21 13:39:28: 1 servers queried.
2022-03-21 13:39:28: ERROR: update_messages error threshold(0) reached. Reposting messages.
2022-03-21 13:39:30: ERROR: Failed to send message for server: Valheim Server. Missing permissions ?
400 Bad Request (error code: 50035): Invalid Form Body
In embed.thumbnail.url: Scheme "[string][optional] url of the thumbnail image url https" is not supported. Scheme must be one of ('http', 'https').
2022-03-21 13:39:32: 0 messages reposted.
2022-03-21 13:39:32: 0 messages updated.

 

 

 

This is what i get.. i think i dont see the failure right now xD

i gave my bot all the posting permissions in discord and in the discord Bot setup link, i tryed even the 8 for Admin rights.

Hey, your servers.json has wrong entities 

don’t just use the example file, delete those rows you don’t need or don’t use. Then it will work fine 

 

if you can’t find the error you can post your file here and I will take a look at it 

Edited by Cornflake
Link to comment
9 hours ago, Cornflake said:

Hey, your servers.json has wrong entities 

don’t just use the example file, delete those rows you don’t need or don’t use. Then it will work fine 

 

if you can’t find the error you can post your file here and I will take a look at it 

 

 

I get the hang on it, you are absolutly right, thank you for confirming my thoughts. i had to many not working rows for Valheim, now it works just fine. A fun and nice Docker, we dont need to Pin any server datas like Morons anymore. We are Bot upper Class citiziens now.

Edited by domrockt
  • Upvote 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.