Garry's Mod

Garry's Mod

[TTT] TS3 Bridge
52 Comments
MauriceGS 9 Dec, 2022 @ 12:05pm 
Anyone got a tutorial? I dont get it at all :(
[RoG] Rebels of Gaming 9 Sep, 2022 @ 3:06pm 
Guten Tag, vielleicht könnte mir jemand helfen ich habe ein Problem mit der Bridge:

Dropped wahke knoppix from server (object(TeamSpeak3_Adapter_ServerQuery_Exception)#24 (10) {
["return_code":protected]=>
NULL
["raw_code":protected]=>
int(513)
["raw_mesg":protected]=>
string(26) "nickname is already in use"
["message":protected]=>
string(26) "nickname is already in use"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(513)
["file":protected]=>
string(95) "/var/www/vhosts/xxxxxxxxx.net/httpdocs/bridge/ttt/TeamSpeak3/Adapter/ServerQuery/Reply.php"
["line":pr)

vielleicht könnte jemand mir helfen
Juice 3 Oct, 2021 @ 9:49pm 
I'm having the same issue as the two people below me. "API key is invalid", yet they're still set to the default "abc" in both the convar and the TS3Bridge.php
Carl | ClemontX 27 Apr, 2020 @ 1:18pm 
i give a +1 to the comment below, i have the same issue
Ich gebe ein +1 zu dem Kommentar unter mir, ich habe den gleichen Fehler, obwohl der API-Key überall gleich ist
Man from Ohio 24 Apr, 2020 @ 5:16am 
"Your Api Key is invalid" but everything has been set, in the TS3Bridge.php and in the .lua
Endooo 12 Apr, 2020 @ 12:23am 
Hey, kurze Frage, bin gerade dabei das Plugin einzurichten aber kenne mich leider nicht gut genug aus. Kannst du mir sagen, woher ich die ttt_ts3_bridge_url finde, soll das der ts servername sein oder liege ich da falsch? Mit dem Rest sollte ich klar kommen, aber irgendwie komme ich da garnicht klar, danke im voraus :)
Mr.Timbaba 1 Feb, 2020 @ 1:17pm 
Glaube der hat kein Zugriff auf die Dateien? Funktioniert es bei einem, falls ja... brauche Hilfe beim setup. ^^

Hier die Fehlermeldung:

Disconnect: object(TeamSpeak3_Adapter_ServerQuery_Exception)#24 (10) {
["return_code":protected]=>
NULL
["raw_code":protected]=>
int(513)
["raw_mesg":protected]=>
string(26) "nickname is already in use"
["message":protected]=>
string(26) "nickname is already in use"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(513)
["file":protected]=>
string(171) "/var/www/vhosts/xxxxxxxxx.plesk08.xxxxxxxx.com/server.xxxxxxxx.net/gos_server_stuff/
marcel1802 19 Dec, 2019 @ 6:12am 
Danke
CynCeyd  [author] 19 Dec, 2019 @ 6:09am 
Ich setz mich die Tage ran. Hatte bisher leider keine Zeit dafür.
marcel1802 18 Dec, 2019 @ 4:52pm 
Hätte jemand ein Beispiel für '$teamSpeakServerQuery'?
Oder kommt doch noch ein Guide? :)
Joe_72 26 Oct, 2019 @ 3:54am 
Hallo,
ich habe ein Problem mit dem Skript, als ich das am ersten Abend mit meinen Kollegen verwendet habe hat alles reibungslos funktioniert... aber am nächsten tag konnte keiner mehr dem Server beitreten und haben 2 Fehlermeldungen bekommen:

Undefined index: ip_address in ...\TS3Bridge.php on line 581
Undefined index: user_name in ...\TS3Bridge.php on line 581

Die Frage die ich mir jetzt stelle ist wo das Problem liegt
Ich hoffe das mit dem Gegebenen Informationen der Fehler gefunden werden kann,

Danke im Voraus :steamhappy:
ItsRobsii 10 Jul, 2019 @ 12:49am 
Das wäre echt geil, wollen dieses Feature unbedingt für unseren TTT Server haben. :steamhappy:
CynCeyd  [author] 10 Jul, 2019 @ 12:08am 
Nicht, dass ich wüsste. Ich habe aber vor in den nächsten Wochen ein Update rauszubringen. Dann könnte ich auch ein Guide schreiben.
ItsRobsii 6 Jul, 2019 @ 5:31pm 
Hat jemand dafür ein Guide vllt verfasst.? :)
CynCeyd  [author] 26 Jun, 2019 @ 4:32am 
Ja, kann ich gerne machen. Adde mich am besten, dann spammen wir die Kommentarsektion hier nicht so zu.
Snickers 8 Apr, 2019 @ 9:22am 
moin moin ich habe ein frage würdest du mir helfen das zu installieren ? da mein english fürn arsch ist :( LG Danke im vorraus
CynCeyd  [author] 5 Apr, 2019 @ 12:01am 
Wüsste nicht warum nicht, habs schon länger nicht mehr ausprobiert. Solange die bei GMod oder bei TeamSpeak nicht gravierende Änderungen in der API vorgenommen haben, sollte es aber funktionieren.
CynCeyd  [author] 6 Oct, 2018 @ 7:19am 
@RedocPlays
Hast du vielleicht die Anführungszeichen in der Config um die URL und/oder den Api-Key vergessen?
RedocPlays 2 Oct, 2018 @ 11:23am 
Hey, ich versuche dein Skript zu benutzen, aber erhalte jedes mal den Fehler:

httpclient.cpp (2374) : Assertion Failed: pHost && *pHost

Woran könnte das liegen?
Xopez  [author] 3 Jun, 2018 @ 5:27am 
du musst den webcontent auf einen Webserver legen. Den Webcontent findest du hier: https://github.com/CynCeyd/TS3BridgeTTT/tree/master/Web
Dort gibt in der PHP-Datei musst du einen Key definieren. Dieser kann egal was sein. den gibt es damit nicht jeder, das PHP skript aufrufen kann. Die URL muss auf die PHP Datei per HTTP oder HTTPS zeigen. Und der key muss denselben wert haben wie Der Key in der PHP.
Beide Convars gehören (wie jede Convar) in die server.cfg damit sie funktionieren.
76561198347967110 3 Jun, 2018 @ 4:56am 
When you've added the workshop plugin, you need to set two convars:

ttt_ts3_bridge_url (URL Format: "http://example.com/ts3bridge.php")
ttt_ts3_bridge_key (anything; just some key for security purposes, so that noone else can abuse the web script)

In welcher Datei muss ich das ändern? In meinem Addonordner ist das Plugin nicht gespeichert. Wo finde ich es?
CynCeyd  [author] 30 Jul, 2017 @ 12:54pm 
I would need some more info on that. Does the talk power get revoked straight after granting it?

You can, if you like, also add me. I guess that would lead to faster problem solving.
Xopez  [author] 30 Jul, 2017 @ 11:48am 
OK, we are playing with 7 People now. Sometimes after round if the text "round over" appears, 2 of 5 people get talk power granted and talk power revoked.
Xopez  [author] 30 Jul, 2017 @ 4:42am 
Seems like it's working. Added a subdomain which doesn't redirect to https://
http://ts3bridge.mightful-noobs.de/TS3Bridge.php as convar.
Joined and got moved. guess it's a problem with ssl not completly supported. Also tested death, roundstart and disonnect. So it's working quiet fine now for me. Thank you for your help :)
CynCeyd  [author] 30 Jul, 2017 @ 3:51am 
And yes, the GitHub version is just the same as here, just to answer the question.
CynCeyd  [author] 30 Jul, 2017 @ 3:45am 
I might have some idea, but I'm not sure if it'll work. The use of https could create some kind of issue, as I don't know if SSL / TLS is supported by the http module in Garry's Mod. I suggest to remove the https and replace it by a simple http. If that's the issue, I would do some research.
Xopez  [author] 30 Jul, 2017 @ 3:20am 
OK, I can take the reason out, because I changed to Steamworkshopversion and it's the same issue.
Xopez  [author] 30 Jul, 2017 @ 3:16am 
Is the Github version the same as here? because I took it. If thats a not working version it could be the reason.
Xopez  [author] 30 Jul, 2017 @ 3:08am 
Yeah. The generated URL in LUA should look like this: https://mightful-noobs.de/TS3Bridge.php?key=kZYJVPDDHsVDBj2VftnzMpLlDHvZ541U&action=connect&steamID=STEAM_0:0:40121098
If I open it its all fine. I get moved and the browser tells me "ok". Kick, mute, unmute working also fine via browser.
CynCeyd  [author] 30 Jul, 2017 @ 2:13am 
Did you execute the api calls manually already? Like try to make a call via a web browser and look if it's working there. It'd help me find the issue, as if the web browser call would work, the error has to be located in the lua code.
Xopez  [author] 29 Jul, 2017 @ 6:50am 
Still doesn't really work for me :/
I am dump or I don't know why.
I defined in server.cfg following

ttt_ts3_bridge_url "https://mightful-noobs.de/TS3Bridge.php"
ttt_ts3_bridge_key "kZYJVPDDHsVDBj2VftnzMpLlDHvZ541U"

I will change my key since i posted it.

Console says also:
ttt_ts3_bridge_url
"ttt_ts3_bridge_url" = "https://mightful-noobs.de/TS3Bridge.php" ( def. "" )
game replicated server_can_execute lua_server
- The URL for the TS3 bridge
ttt_ts3_bridge_key
"ttt_ts3_bridge_key" = "kZYJVPDDHsVDBj2VftnzMpLlDHvZ541U" ( def. "" )
game replicated server_can_execute lua_server
- The API key for the TS3 bridge

But still, it isn't working in the PHP Skript over Gmod.
Nothing is done on death, spawn, disconnect, connect.
No Errors from PHP and no Errors from LUA.

Variable on the PHP script is also wright
$apiKey = "kZYJVPDDHsVDBj2VftnzMpLlDHvZ541U";

only over the PHP script if i comment the api check, the comments are working.
Xopez  [author] 29 Jul, 2017 @ 5:40am 
Wow, that little mistake x)
It works fine now.
Maybe you should mention the little comma for the new line somewhere for people coming here, and wondering.
CynCeyd  [author] 29 Jul, 2017 @ 4:56am 
You are missing a comma. It should look like this:

{
"STEAM_0:0:40121098": "h51hYEWUpfBDnb4Cg8EPcNiHLB8=",
"STEAM_0:0:59954691": "b3PYddnA2WosUmw61MjUDUgUeAk="
}
Xopez  [author] 29 Jul, 2017 @ 2:45am 
https://mightful-noobs.de/TS3Bridge.php?action=connect&steamID=STEAM_0:0:40121098
-> no linked user account, guess i am filling the json still wrong :/
Xopez  [author] 29 Jul, 2017 @ 2:39am 
ok, just uncommented the verify so i can see see the message in the browser.

Get following No linked user account
Links.json looks like this:
{
"STEAM_0:0:40121098": "h51hYEWUpfBDnb4Cg8EPcNiHLB8="
"STEAM_0:0:59954691": "b3PYddnA2WosUmw61MjUDUgUeAk="
}

First Row is my SteamID which is right and my TeamSpeak UID which is also write.
CynCeyd  [author] 29 Jul, 2017 @ 1:54am 
I guess this is because your the TeamSpeak ID is not valid. You have to enter the unique id of a client in order for the script to work. You will find it under Tools -> Identities for yourself. You might have to click "Go Advanced" to show it. To verify that you've got the correct id, make sure it has an equal sign at the end.

If you want to retrieve the unique id of another player (as an admin on the TeamSpeak server), you go under Permissions -> List All Clients. There is a table with the column "Unique Identifier".
Xopez  [author] 28 Jul, 2017 @ 10:16am 
ok, fixed ttt_ts3_bridge_url. Don't why it didn't worked directly. After several restarts it's gone.
But still. Started a round, I am not moved and set $autoChannelMove = true.
Xopez  [author] 28 Jul, 2017 @ 10:01am 
Also get this:
ServerLog: TS3 Bridge URL not valid
But i set:
ttt_ts3_bridge_url "https://mightful-noobs.de/TS3Bridge.php"
and if you go there, its a valid link. Don't know if it works with https.
Xopez  [author] 28 Jul, 2017 @ 9:57am 
Don't know if I am doing it write.

filled links.json like this:

{
"STEAM_0:0:401210": "h51hYEWUpfBDnb4Cg8";
"STEAM_0:0:599546": "b3PYddnA2WosUmw61M";
}

I shortened the ID's
Took the SteamID and and the TeamSpeak UID, or do i need the Database ID of TeamSpeak?
CynCeyd  [author] 1 Jul, 2017 @ 10:57am 
Yes, as there is no other way to definitely identify a player. The only other option would be to identify the users by their name in TeamSpeak. I didn't implement that, though, since a lot of players do not have matching names.
DrOpossum 30 Jun, 2017 @ 10:17am 
Hey there,

For some reason, the script kicks every user trying to connect, which isnt in the links.json for "No linked user account".

How can I fix this ? Do i really need to insert every players Steam-ID into the links.json ?
Noa3 20 May, 2017 @ 11:10am 
i got the message: dissconected: no linked user account. what the fuck mean this? <.<
Cr4zyPi3t 12 May, 2017 @ 12:26pm 
Hey guys!
I developed a similiar plugin a year ago and version 2.0 is in beta!
I have plenty of testers and it is already running 24/7 on some servers without any issues.
You can download it here: https://github.com/grimsi/gamelinker

If you have any questions, feel free to send me a message on Steam!
Psycho Mieze 6 May, 2017 @ 6:37am 
CynCeyd können sie auch Deutsch Sprechen ?
In sachen von Skrip habe ich keine arnung es wäre schön
wen wir vieleicht kontackt aufbauen könnten damit sie mir es
Erklären könnten oder einrichten könnten schritt für schritt D:
Donko 30 Apr, 2017 @ 2:35am 
Well that was it. I forgot to add "" around the url in the cfg file. After the hours I've spent looking around, it figures that it was something really simple, and that I should have remembered. Thanks for the help and sorry for the seemingly complicated problem.
CynCeyd  [author] 30 Apr, 2017 @ 12:05am 
When you run the convar ttt_ts3_bridge_url in the server console, do you receive the URL you told me? If not, it would possibly explain why it doesn't work, as there is no URL in the script and thus outputting the error. If the URL you get in the server console matches with the one you wrote here, I need to do further research.
Donko 29 Apr, 2017 @ 5:54pm 
The plugin has not worked at any point yet, any valid url gives the same results.
I'm running the gmod server locally, on Windows 7.
The server is not installed on the same drive as the OS to prevent any potential issues with that.
The ttt_ts3_bridge_url is https://halfway-evening.000webhostapp.com/ttt/TS3Bridge.php , I'm just using a free web host.
I'm able to get results in the TS3 server by using the appropriate parameters in my browser's address bar, so at least I think I have the web and TS3 servers configured right.
CynCeyd  [author] 29 Apr, 2017 @ 1:44pm 
I did some quick research, but I had no success yet. My only idea is that maybe the convars are set incorrectly, but this is rather hard to prove via remote diagnosis. If you'd like further help on this, feel free to add me and I'll do my best.
CynCeyd  [author] 29 Apr, 2017 @ 1:32pm 
Did the plugin work at some point? At least the second error you get is common for permission issues on Linux - maybe you should try using chown or chmod to see if that would work.

Without further information it's quite complicated to help you on this issue. Do you maybe have further information or an error log containing PHP errors, so that I can see what is wrong?
Donko 28 Apr, 2017 @ 6:08pm 
Hey, I'm having some trouble getting this to work. I get the following two errors in the server console:
httpclient.cpp (2442) : Assertion Failed: pHost && *pHost
Assert( Assertion Failed: pHost && *pHost ):httpclient.cpp:2442
The first appears whenever something happens that would have the addon change a player's talk power, i.e., round start, player dies, player disconnects. The second only seems to appear once, when the server starts up.