Quote:
Originally Posted by GoD-Tony
You can give this a try. Untested on Linux though (the offset might be 35).
|
It's not able to find the engine tool it seems, this is on Linux of course. I also forgot to mention this is Team Fortress 2, not CS:S or any other game, though it should be pretty close.
PHP Code:
L 04/07/2013 - 04:27:03: [SM] Plugin encountered error 25: Call was aborted
L 04/07/2013 - 04:27:03: [SM] Native "SetFailState" reported: pEngineTool (VENGINETOOL003) == Address_Null
L 04/07/2013 - 04:27:03: [SM] Displaying call stack trace for plugin "stats.smx":
L 04/07/2013 - 04:27:03: [SM] [0] Line 75, /tf2/match/orangebox/tf/addons/sourcemod/scripting/include/serverfps.inc::GetEngineTool()
L 04/07/2013 - 04:27:03: [SM] [1] Line 26, /tf2/match/orangebox/tf/addons/sourcemod/scripting/include/serverfps.inc::GetServerFPS()
L 04/07/2013 - 04:27:03: [SM] [2] Line 20, stats.sp::OnPluginStart()
Quote:
Originally Posted by zeroibis
Yea you should likely just look at your current tick as fps should be basically the same as it is now capped to tick rate last time I checked.
|
It won't always be that, It SHOULD be at 66, however multiple factors could make it drop (Plugins performing expensive operations in OnGameFrame, the server not having enough CPU power, etc), and I want to make an easier way to parse the FPS so I can finish a 'tf2 top' type system which I can monitor all of my servers with, as currently I'm calling 'stats' via rcon and using regex on it in PHP, which isn't the best way to do it for sure.
__________________