Raised This Month: $32 Target: $400
 8% 

[Any] Source Chat Relay [Discord <=> Ingame]


Post New Thread Reply   
 
Thread Tools Display Modes
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 10-05-2019 , 15:04   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #181

v2.1.0 is now available with the addition of command to manually send event payloads through channels.

Command documentation: https://rumblefrog.me/source-chat-re...vent-name-data

A new event as a service example: https://github.com/rumblefrog/source...ervice_test.sp
__________________
RumbleFrog is offline
Gumiland
Member
Join Date: Jun 2016
Old 10-12-2019 , 12:25   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #182

maybe add a feature to the discord ed where the bot uses rich presence or updates the channels used for relays with player count
i.e
#Relay 5/32
__________________
Gumiland is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 10-12-2019 , 17:15   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #183

Quote:
Originally Posted by Gumiland View Post
maybe add a feature to the discord ed where the bot uses rich presence or updates the channels used for relays with player count
i.e
#Relay 5/32
Not sure how you propose how I should do this. Because a single channel can bind to multiple other entities and vise Versa.
__________________
RumbleFrog is offline
EvilYoshi
New Member
Join Date: Oct 2019
Old 10-15-2019 , 20:42   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #184

i keep getting socket error 3 and 4 10060 and 10057 my relay server is hosted on the same machine as my csgo server and so is the mysql database any help you could give would be great
EvilYoshi is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 10-15-2019 , 21:22   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #185

Quote:
Originally Posted by EvilYoshi View Post
i keep getting socket error 3 and 4 10060 and 10057 my relay server is hosted on the same machine as my csgo server and so is the mysql database any help you could give would be great
Those numbers don't mean anything to me. Show logs. What is 10060, and 10057?
__________________
RumbleFrog is offline
EvilYoshi
New Member
Join Date: Oct 2019
Old 10-15-2019 , 21:33   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #186

L 10/15/2019 - 20:29:06: "me<9><STEAM_1:0:513282855><TERRORIST>" say "not gonna shoot"
L 10/15/2019 - 20:29:06: [Source-Chat-Relay.smx] Source Chat Relay socket error 4 (errno 10057)

L 10/15/2019 - 2015: [Source-Chat-Relay.smx] Source Chat Relay socket error 3 (errno 10060)
L 10/15/2019 - 2018: World triggered "Round_Start"

when i do r/enitities it says no entities found in database

it seems everytime a message is sent ingame the server console out puts those errors

Last edited by EvilYoshi; 10-15-2019 at 21:34.
EvilYoshi is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 10-15-2019 , 23:06   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #187

Quote:
Originally Posted by EvilYoshi View Post
L 10/15/2019 - 20:29:06: "me<9><STEAM_1:0:513282855><TERRORIST>" say "not gonna shoot"
L 10/15/2019 - 20:29:06: [Source-Chat-Relay.smx] Source Chat Relay socket error 4 (errno 10057)

L 10/15/2019 - 2015: [Source-Chat-Relay.smx] Source Chat Relay socket error 3 (errno 10060)
L 10/15/2019 - 2018: World triggered "Round_Start"

when i do r/enitities it says no entities found in database

it seems everytime a message is sent ingame the server console out puts those errors
So what host did you put in the game server config file? I'm assuming this is Windows because 10060 and 10057 only exist on Windows.
__________________
RumbleFrog is offline
EvilYoshi
New Member
Join Date: Oct 2019
Old 10-16-2019 , 00:22   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #188

Correct it is a windows 2019 vps
EvilYoshi is offline
EvilYoshi
New Member
Join Date: Oct 2019
Old 10-16-2019 , 09:34   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #189

Im laughing so hard the problem was due to the ip in the servers source chat relaycfg missing a period
EvilYoshi is offline
Dongorongoro
New Member
Join Date: Oct 2019
Old 10-20-2019 , 09:13   Re: [Any] Source Chat Relay [Discord <=> Ingame]
Reply With Quote #190

Gotta admit, I found the setup a bit confusing.

The first snag I hit was getting the Discord bot token. I'm unfamiliar with Discord bots and it wasn't immediately clear that the bot token and client secret were different things. The authentication failure error message helped me figure it out pretty quickly, but it'd be nice to explicitly outline things; something like
Quote:
  1. Go to the the Discord Developer Portal.
  2. Create a new app.
  3. Click the 'Bot' option in the settings menu on the left-hand side, then click 'Add Bot'.
The second problem I ran into was not realizing that you can't use private messages to configure the bot on Discord. Unlike the first problem, I sat there scratching my head for a couple minutes; the link to your troubleshooting page is broken and the error message "Could not fetch guild: HTTP 404 Not Found, {"message": "404: Not Found", "code": 0}" was very unhelpful. I only figured it out after reading through the thread and finding someone else post this problem. It'd be appreciated if you explicitly said to control it in a text channel rather than through PM.

The last problem I had was that embeds are used to configure the server through Discord, even when SimpleMessage = true. I don't have link previews enabled, so the only thing I saw was this:

Thankfully I had problems with embeds not showing up from a silly Discord game bot before, so I figured this one out pretty quick, too. I feel like this one could be really frustrating for someone who has link previews disabled and hasn't run into this kinda thing before; ya should really mention that having link previews turned on is a requirement to set it up!

I really dislike having link previews turned on, and I'd very much appreciate a text-only way to configure the bot. Many thanks for making the messages themselves not require embeds though!

The service thingy didn't work for me either, failing with
Quote:
Failed to start Source Chat Relay: exit status 1
Running it inside of screen seems to work just fine.

Lastly, I'd really love ya forever if the strict reliance on MySQL was dropped. Allowing the use of PostgreSQL instead would be great. I feel like some others would appreciate something like SQLite or flat files so they didn't need to run an entire external database, too. If I knew the slightest bit of Go I'd do it myself; it brings me great pain running multiple RDBMSes — especially since it seems to only be storing configuration data. I'd be happy to help you out with testing and writing the SQL for Postgres if you'd be willing to implement the logic in the server itself. The pq library says it's compatible with the database/sql module you seem to be using?

Hopefully all my complaining doesn't discourage ya, I must admit you've made a nice little tool here! Thank ya much!
Dongorongoro is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode