Raised This Month: $51 Target: $400
 12% 

CS:S Team Balance


Post New Thread Reply   
 
Thread Tools Display Modes
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 07-23-2011 , 05:30   Re: CS:S Team Balance
Reply With Quote #511

That should work AFAIK, nightrider.

Mine is:
Code:
	"hlxce"
	{
		"driver"			"default"
		"host"				"servername.hlstatsx.nfoservers.com"
		"database"			"servername"
		"user"				"servername"
		"pass"				"password"
		//"timeout"			"0"
		"port"			"3306"
	}
Verify that networking is enabled on your MySQL server, as I assume the API doesn't connect via a Unix socket. Also check any firewall settings that might affect its ability to connect through the localhost loopback. You might try telnet'ting to localhost on port 3306 to make sure it is at least accepting connections.
Mister_Magotchi is offline
niar82k
Member
Join Date: Aug 2007
Location: Germany
Old 07-23-2011 , 08:27   Re: CS:S Team Balance
Reply With Quote #512

I have the same problem! Can it be that the HLstatsX:CE SQL API for Sourcemod & hlxce-sm-api-0.4-alpha.zip APIs are different?

The problem occurs only on the Mapchange

Code:
L 07/23/2011 - 13:48:08: Info (map "de_dust2") (file "errors_20110723.log")
L 07/23/2011 - 13:48:08: [SM] Plugin encountered error 25: Call was aborted
L 07/23/2011 - 13:48:08: [SM] Native "SetFailState" reported: Lost database connection
L 07/23/2011 - 13:48:08: [SM] Displaying call stack trace for plugin "hlxce-sm-api.smx":
L 07/23/2011 - 13:48:08: [SM]   [0]  Line 257, Y:\Desktop\sourcemod-1.4.0-hg3360-windows\addons\sourcemod\scripting\hlxce-sm-api.sp::GetClientHLXPlayerId()
L 07/23/2011 - 13:48:08: [SM]   [1]  Line 235, Y:\Desktop\sourcemod-1.4.0-hg3360-windows\addons\sourcemod\scripting\hlxce-sm-api.sp::OnClientPostAdminCheck()
My databases.cfg

Code:
"hlxce"
	{
		"driver"			"mysql"
		"host"				"localhost"
		"database"			"hlstats"
		"user"				"USER"
		"pass"				"PASS"
	}

Last edited by niar82k; 07-23-2011 at 08:29.
niar82k is offline
nightrider
SourceMod Donor
Join Date: Dec 2008
Old 07-23-2011 , 12:44   Re: CS:S Team Balance
Reply With Quote #513

Thank you for the kind reply Mister Magotchi
I'll check

Update:
Strange if I start the server up with the hlxce-sm-api and teambalance plugins I get the same errors.

Code:
18 <Error> "HLstatsX:CE SQL API for Sourcemod" (0.4 alpha) by psychonic
        Load Errors:
         HLstatsX:CE SQL API for Sourcemod: Lost database connection
and in error log
Code:
L 07/23/2011 - 12:58:58: Info (map "de_dust2") (file "errors_20110723.log")
L 07/23/2011 - 12:58:58: [SM] Plugin encountered error 25: Call was aborted
L 07/23/2011 - 12:58:58: [SM] Native "SetFailState" reported: Lost database connection
L 07/23/2011 - 12:58:58: [SM] Displaying call stack trace for plugin "hlxce-sm-api.smx":
L 07/23/2011 - 12:58:58: [SM]   [0]  Line 257, C:\servers\pub01 - dust2\orangebox\cstrike\addons\sourcemod\scripting\hlxce-sm-api.sp::GetClientHLXPlayerId()
L 07/23/2011 - 12:58:58: [SM]   [1]  Line 235, C:\servers\pub01 - dust2\orangebox\cstrike\addons\sourcemod\scripting\hlxce-sm-api.sp::OnClientPostAdminCheck()
If however after the server is running I unload the two SourceMod plugins
sm plugins unload teambalance
sm plugins unload hlxce-sm-api


Then reload the plugins in this order the errors are gone and it works.
sm plugins unload hlxce-sm-api
sm plugins unload teambalance

After a map change or server restart it fails unless I would unload and load the plugins again.
__________________
[SIGPIC][/SIGPIC] the pantless
I am the Night Rider!, I'm a fuel-injected suicide machine.
I am a rocker! I am a roller!, I am an out-of-controller!



Last edited by nightrider; 07-23-2011 at 13:11.
nightrider is offline
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 07-23-2011 , 14:02   Re: CS:S Team Balance
Reply With Quote #514

Strange. Mine naturally load in that order (API first, balancer second).

Regarding niar82k's question about whether the .zip file I provided of the compiled API is the same as the code provided at Google Code, I just checked out the latest version of it and compiled it with the latest SourceMod development snapshot for Windows.
Mister_Magotchi is offline
nightrider
SourceMod Donor
Join Date: Dec 2008
Old 07-23-2011 , 14:05   Re: CS:S Team Balance
Reply With Quote #515

interesting
__________________
[SIGPIC][/SIGPIC] the pantless
I am the Night Rider!, I'm a fuel-injected suicide machine.
I am a rocker! I am a roller!, I am an out-of-controller!


nightrider is offline
Oldtimers
New Member
Join Date: Jul 2011
Old 07-27-2011 , 15:46   Re: CS:S Team Balance
Reply With Quote #516

Mister_Magotchi
It works only on windows?
Oldtimers is offline
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 07-27-2011 , 22:19   Re: CS:S Team Balance
Reply With Quote #517

I'm running it on LInux. I haven't tested it on Windows.
Mister_Magotchi is offline
Ares Veteran
Senior Member
Join Date: Jul 2010
Location: Hungary
Old 07-30-2011 , 03:43   Re: CS:S Team Balance
Reply With Quote #518

I have the same error than for nightrider.
__________________
P.M.C Clan
pmcfighters.co.nr

Ares Veteran is offline
Send a message via MSN to Ares Veteran
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 07-30-2011 , 12:28   Re: CS:S Team Balance
Reply With Quote #519

I don't know what to say right now. I'm on vacation out-of-state. The API works on my server, so I made the plugin work with it. Again, Psychonic maintains the API. Is it working for anyone else?
Mister_Magotchi is offline
musosoft
Senior Member
Join Date: Dec 2008
Location: Thailand
Old 07-31-2011 , 05:54   Re: CS:S Team Balance
Reply With Quote #520

Quote:
Originally Posted by Mister_Magotchi View Post
Is it working for anyone else?
I have the same problem as nightrider, it seems like hlxce sm api must be loaded before teambalance sometimes losts connection to sql on map load
testing if plugins reload after warmup round will temporary fix this problem

EDIT: hlxce sm api works without errors when plugin load is delayed after map load

Log:
Code:
L 07/31/2011 - 16:53:15: [SM] Plugin encountered error 25: Call was aborted
L 07/31/2011 - 16:53:15: [SM] Native "SetFailState" reported: Lost database connection
L 07/31/2011 - 16:53:15: [SM] Displaying call stack trace for plugin "hlxce-sm-api.smx":
L 07/31/2011 - 16:53:15: [SM]   [0]  Line 257, Y:\Desktop\sourcemod-1.4.0-hg3360-windows\addons\sourcemod\scripting\hlxce-sm-api.sp::GetClientHLXPlayerId()
L 07/31/2011 - 16:53:15: [SM]   [1]  Line 235, Y:\Desktop\sourcemod-1.4.0-hg3360-windows\addons\sourcemod\scripting\hlxce-sm-api.sp::OnClientPostAdminCheck()
__________________
Making FiveM servers nowadays. Can help with CS:GO, CS:S, and other Source server stuff too, just PM me. Thanks

Last edited by musosoft; 07-31-2011 at 17:28.
musosoft is offline
Reply



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 02:51.


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