workermaster Posted March 18 Share Posted March 18 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; 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. Quote Link to comment
Cornflake Posted March 18 Author Share Posted March 18 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; 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 Quote Link to comment
workermaster Posted March 18 Share Posted March 18 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; 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) Quote Link to comment
domrockt Posted March 21 Share Posted March 21 (edited) 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 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 March 21 by domrockt Quote Link to comment
Cornflake Posted March 21 Author Share Posted March 21 (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 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 March 21 by Cornflake Quote Link to comment
domrockt Posted March 22 Share Posted March 22 (edited) 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 March 22 by domrockt 1 Quote Link to comment
Recommended Posts
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.