AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Any] Source Chat Relay [Discord <=> Ingame] (https://forums.alliedmods.net/showthread.php?t=311079)

TerryChung 10-08-2023 13:38

Re: [Any] Source Chat Relay [Discord <=> Ingame]
 
Quote:

Originally Posted by RumbleFrog (Post 2811330)
Do both servers run at the same time? Why do they have to be the same entity

Game Server 1 and Bot Server are on same machine. So when I boot Game Server 2, it just overide the display_name and does not generate new id in database

RumbleFrog 10-08-2023 13:40

Re: [Any] Source Chat Relay [Discord <=> Ingame]
 
Quote:

Originally Posted by TerryChung (Post 2811336)
Game Server 1 and Bot Server are on same machine. So when I boot Game Server 2, it just overide the display_name and does not generate new id in database

Why do you want them to be the same entity, I can only see limitations and problems having them being the same entity ID. They automatically generate unique ones when booting.

TerryChung 10-08-2023 13:47

Re: [Any] Source Chat Relay [Discord <=> Ingame]
 
Quote:

Originally Posted by RumbleFrog (Post 2811338)
Why do you want them to be the same entity, I can only see limitations and problems having them being the same entity ID. They automatically generate unique ones when booting.

But Game Server 2 does not generate new id in database :(

1 database & 1 bot server = for 1 and 2 game server will work?

RumbleFrog 10-08-2023 14:01

Re: [Any] Source Chat Relay [Discord <=> Ingame]
 
Quote:

Originally Posted by TerryChung (Post 2811341)
But Game Server 2 does not generate new id in database :(

1 database & 1 bot server = for 1 and 2 game server will work?

Yes it will work. If game server 2 does not generate new ID in DB, it likely has an issue connecting to the relay server. Check game server 2's log.

TerryChung 10-08-2023 23:31

Re: [Any] Source Chat Relay [Discord <=> Ingame]
 
Quote:

Originally Posted by RumbleFrog (Post 2811342)
Yes it will work. If game server 2 does not generate new ID in DB, it likely has an issue connecting to the relay server. Check game server 2's log.

Alright, finally managed to make it work. The problem is just game server port, both game server are on different server machine and use same port number. After changing the game server 2's port to another number, the id will generate new one.

Btw, the chat message that send from discord will get cut off. Like if I send testing123 from the discord to the game server chat, it only shows ting123.

EDIT:
Ok tried remove all my plugins and just left the base sourcemod plugin still gets cut off

EDIT2:
Managed to solved the chat message chopped/cut-off issue. Recompile the plugin by Lunreth's guide in Page 24

evans 12-18-2023 04:26

Re: [Any] Source Chat Relay [Discord <=> Ingame]
 
Quote:

Originally Posted by zaviier (Post 2786897)
what do you mean? i still need to do port forwarding thing on VPS?
they not open by default?

Yeah, error 10061 is definitely related to firewall issues.
If you are not able to set up ports or firewall, probably better don't waste ur time with establishing of any kind of game server....that's my advice.

avan 01-30-2024 06:36

Re: [Any] Source Chat Relay [Discord <=> Ingame]
 
I'm not sure if this has already existed, but I really hoped that in the simple message format that we are able to add %hostname% to identify where the relay came from

snalething 05-01-2024 15:12

Re: [Any] Source Chat Relay [Discord <=> Ingame]
 
I've configured SCR, but player messages don't appear to make it to the relay and aren't posted in the discord server.

I've configured the Discord Channel & Server Entities to channel 1, for both send and receive.
https://i.imgur.com/XCW0OfD.png
https://i.imgur.com/gP9DVma.png

I've left rf_scr_flag and rf_scr_prefix blank:
Code:

rf_scr_flag
"rf_scr_flag" = ""
- If prefix is enabled, this admin flag is required to send message using the prefix
rf_scr_prefix
"rf_scr_prefix" = ""
- Prefix required to send message to Discord. If empty, none is required.

Messages are getting relayed from Discord to the TF2 server. Player join/disconnect and map end/start events are also getting relayed in Discord. I'm not getting any errors.

Every message sent in the server should make its way to the discord channel right? Did I miss something?


All times are GMT -4. The time now is 00:46.

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