View Single Post
vn_lind
Member
Join Date: Jul 2017
Old 02-08-2021 , 10:38   Re: CS:S Team Balance
Reply With Quote #660

Quote:
Originally Posted by Carnifex View Post
Figured it out. It's a problem with the windows-settings. I found the game-rules in the sm-core (games.css.txt) and pasted it in teambalance.games.txt.

I didn't find "SetModel" so i took it from "SetModelFromClass". Works on my machine. When i switch to the linux server, i will check if the settings are ok.

Code:
"Games"
{
	"cstrike"
	{
		"Signatures"
		{
			"RoundRespawn"
			{
				"library"	"server"
				"windows"	"\x55\x8B\xEC\x51\x89\x2A\x2A\x8B\x2A\x2A\x8B\x10\x8B"
				"linux"		"@_ZN9CCSPlayer12RoundRespawnEv"
			}
			"SwitchTeam"
			{
				"library"	"server"
				"windows"	"\x55\x8B\xEC\x83\xEC\x2A\x89\x4D\x2A\x8B\x45\x2A\x50\xE8\x2A\x2A\x2A\x2A\x83\xC4\x04\x85\xC0\x74"
				"linux"		"@_ZN9CCSPlayer10SwitchTeamEi"
			}
			"SetModel"
			{
				"library"	"server"
				"windows"	"\x55\x8B\xEC\x83\xEC\x34\x89\x4D\xFC\x8B\x4D\xFC\xE8\x2A\x2A\x2A\x2A\x83\xF8\x02"
				"linux"		"@_ZN11CBaseEntity8SetModelEPKc"
			}
			"CSWeaponDrop"
			{
				"library"	"server"
				"windows"	"\x2A\x2A\x2A\x2A\x2A\x2A\x01\x00\x00\x89\x4D\xFC\xC6\x45\x2A\x2A\x8B\x4D\x2A\xE8\x2A\x2A\x2A\x2A\x0F\xB6\xC0"
				"linux"		"@_ZN9CCSPlayer12CSWeaponDropEP17CBaseCombatWeaponbb"
			}
		}
	}
}

I did this but i still get :

Code:
L 02/08/2021 - 17:30:04: SourceMod error session started
L 02/08/2021 - 17:30:04: Info (map "de_dust2") (file "servers/css_dust2/css/cstrike/addons/sourcemod/logs/errors_20210208.log")
L 02/08/2021 - 17:30:04: [SM] Exception reported: Invalid database Handle 0 (error: 4)
L 02/08/2021 - 17:30:04: [SM] Blaming: teambalance.smx
L 02/08/2021 - 17:30:04: [SM] Call stack trace:
L 02/08/2021 - 17:30:04: [SM]   [0] SQL_TQuery
L 02/08/2021 - 17:30:04: [SM]   [1] Line 817, teambalance.sp::LoadClientStats
L 02/08/2021 - 17:30:04: [SM]   [2] Line 313, teambalance.sp::OnClientPostAdminCheck
vn_lind is offline