Thread: TF2 Class limit
View Single Post
MyWarthog
Senior Member
Join Date: Feb 2013
Old 08-07-2015 , 16:15   Re: TF2 Class limit
Reply With Quote #456

Released another update, 4.9a.

This fixed an issue where the version number change/update got overridden by the config files.... and thus caused an error on Player Join. The fix was to add the flag FCVAR_DONTRECORD to the sm_tf_maxclass CVar in order to prevent the auto-genned configuration file from having this written to it. If anyone else has this issue on a plugin with this sort of a thing, check for that. You will also need to remove that CVar from your config file, or delete it completely and regen it.



NOTE: BEFORE INSTALLING THIS PLUGIN, YOU WILL HAVE TO EITHER DELETE AND RECREATE YOUR cfg/sourcemod/maxclass.cfg FILE AND HAVE IT AUTO-REGENNED, OR JUST SIMPLY REMOVE THIS PART OF IT:

Code:
// TF2 max class
// -
// Default: "4.8"
sm_tf_maxclass "4.8"
YOU WILL ONLY HAVE TO DO THIS ONCE. FUTURE UPDATES FROM THIS VERSION (4.9a) WILL NO LONGER REQUIRE THIS.


Also... can this page (http://www.sourcemod.net/stats.php?m...0&addon_id=231) be fixred to track the right CVars now as well?

Sorry for the Double Post, hopefully this is OK in this case.

Code:
 *		4.9a : by mywarthog
 *		  Fixed the error on player join that was occuring: 'ConVarRef sm_tf_maxclass doesn't point to an existing ConVar'
 *		  I added my list to the names of the authors since it appears to be a list of anyone that's fixed a bug. Hopefully this is ok.
Attached Files
File Type: sp Get Plugin or Get Source (MaxClass.sp - 900 views - 16.4 KB)

Last edited by MyWarthog; 08-07-2015 at 19:06.
MyWarthog is offline