• CSC - Cross Server Chat
    43 replies, posted
Has anyone managed to compile this for linux? The file you need that is. edit------------------- Yea I can't seem to get this working. Its probably something stupid I am doing though. The addon is not even loading I know that. I don't even get a error. When I type /csc it doesn't do anything.
-snip-
Hey, Is There A Way I can Receive Messages from the game on the webpage.
This addon is outupdated. It does not work.
[QUOTE=ShaunSki;42102252] I don't know what the problem is :([/QUOTE] The ports on both servers are the same, they must be different. Also you don't need to add the server on which it is running itself. Don't forget to change them in the Addserver thing as well.
Just committed an update with a couple of things you guys requested: - Included fixed linux build of glsock2 - Added get function in PHP class, so it is now possible to get in-game messages via PHP I hope to re-write the addon when I have some more time, as it's getting messy and I'd like to clean it all up. Also planning to improve the documentation as some of you guys are having difficulty installing. Please try to keep issues and requests to the GitHub page, is makes it a lot easier for me to manage than a thread.
[QUOTE=Matt W;42678910]Just committed an update with a couple of things you guys requested: - Included fixed linux build of glsock2 - Added get function in PHPclass, so it is now possible to get in-game messages via PHP I hope to re-write the addon when I have some more time, as it's getting messy and I'd like to clean it all up. Also planning to improve the documentation as some of you guys are having difficulty installing. Please try to keep issues and requests to the GitHub page, is makes it a lot easier for me to manage than a thread.[/QUOTE] Thanks For adding the get function in PHP class, just what i wanted and makes it very easy to put web chat on a website:)
[QUOTE=Matt W;42678910] - Included fixed linux build of glsock2 [/QUOTE] after I switch to Windows... I hate you.
I'm sorry for bumping this but my two servers recently got this and on the second server, the output was [TTT 1] 420 Xeno Claus: STEAM_0:0:30088168 Does anyone know why this is? TTT 1's config: [code] csc.config.port = 27015 // The port you want to host the CSC Server on csc.config.password = "FPGStaff" // Secure password so other servers cannot spam your chat remotly (These must be the same across all servers) csc.config.id = "TTT 1" // Unique server ID (visible in chat) so you can recognize your servers (This must differ on each server) csc.config.alltext = false // Do you want all chat to be global? csc.config.chatcmd = "!admin" // If not, what do you want the chatcommand / prefix to be? csc.config.faillimit = 3 // How many password failures before an IP ban (stops password bruteforce) csc.config.showonsent = true // Show the global chat on the same server that sent it? // Chat command only settings csc.config.cooldown = 10 // Cooldown for global chat (in seconds) csc.addServer("63.251.20.106", 27015) // Setup the first server, duplicate this for each entry /* Setting up permissions / custom checks */ /* Un-comment examples to use them */ // Admin only (gmod default admin) /* csc.config.customcheck = function(ply) return ply:IsAdmin() end */ // ULX Group check /* csc.config.customcheck = function(ply) return ply:IsUserGroup("ULXGROUPNAME") end */ [/code] TTT 2's Config: [code]csc.config.port = 27015 // The port you want to host the CSC Server on csc.config.password = "FPGStaff" // Secure password so other servers cannot spam your chat remotly (These must be the same across all servers) csc.config.id = "TTT 2" // Unique server ID (visible in chat) so you can recognize your servers (This must differ on each server) csc.config.alltext = false // Do you want all chat to be global? csc.config.chatcmd = "!admin" // If not, what do you want the chatcommand / prefix to be? csc.config.faillimit = 3 // How many password failures before an IP ban (stops password bruteforce) csc.config.showonsent = true // Show the global chat on the same server that sent it? // Chat command only settings csc.config.cooldown = 10 // Cooldown for global chat (in seconds) csc.addServer("67.202.70.159", 27015) // Setup the first server, duplicate this for each entry /* Setting up permissions / custom checks */ /* Un-comment examples to use them */ // Admin only (gmod default admin) /* csc.config.customcheck = function(ply) return ply:IsAdmin() end */ // ULX Group check /* csc.config.customcheck = function(ply) return ply:IsUserGroup("ULXGROUPNAME") end */ [/code]
Great job! There is a small issue with the PHP communication, on line 66: [img]http://puu.sh/68g2I.png[/img] When a chat message is sent via PHP, there is no 5th argument (which would be the player's SteamID); therefore there is no 6th argument, meaning the message won't be sent since the "text" variable isn't set. There may have been something else (I edited the script quite a bit) [img]http://puu.sh/68glM.png[/img] You can test my web chat out here: [url]http://devolved.us/index.php?page=chat[/url] You must be logged in to send chat messages though.
-snip- I'm an idiot...
I'm getting the same error with the broken linux file. I've used the updated one (that comes in the .zip), to no avail. And I'm 100% sure I installed it correctly. So is it still broken or is this outdated?
Sorry, you need to Log In to post a reply to this thread.