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

TF2 Class limit


Post New Thread Reply   
 
Thread Tools Display Modes
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 08-15-2008 , 14:50   Re: TF2 Class limit
Reply With Quote #181

Still getting it. A little different.

L 08/14/2008 - 17:02:40: Info (map "ctf_well") (file "errors_20080814.log")
L 08/14/2008 - 17:02:40: [SM] Plugin encountered error 15: Array index is out of bounds
L 08/14/2008 - 17:02:40: [SM] Displaying call stack trace for plugin "naris_MaxClass.smx":
L 08/14/2008 - 17:02:40: [SM] [0] Line 236, /home/groups/alliedmodders/forums/files/9/4/4/3/29928.attach::FindUnusedClass()
L 08/14/2008 - 17:02:40: [SM] [1] Line 220, /home/groups/alliedmodders/forums/files/9/4/4/3/29928.attach:layerchangeclass()
L 08/14/2008 - 17:15:17: Error log file session closed.
__________________

DontWannaName is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 08-19-2008 , 02:11   Re: TF2 Class limit
Reply With Quote #182

Ok, I think i nailed down the error.

Look at the improbability:
When the client can not go back to the last class, the plugin is going to try to catch a random class, if the random number generator picks scout, the loop is never going to catch it's limit, and end up bugging
Attached Files
File Type: sp Get Plugin or Get Source (naris_MaxClass.sp - 581 views - 15.7 KB)
__________________
http://www.nican132.com
I require reputation!

Last edited by Nican; 08-19-2008 at 02:15.
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 08-19-2008 , 20:19   Re: TF2 Class limit
Reply With Quote #183

Ok update

I just checked with DontWannaName

Fixed the bug
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
Freelancer
Senior Member
Join Date: Jun 2007
Location: Bristol , uk
Old 08-21-2008 , 06:07   Re: TF2 Class limit
Reply With Quote #184

Worked fine for the update weekend, great plugin.
Freelancer is offline
ChillyWI
Senior Member
Join Date: Aug 2008
Old 08-21-2008 , 15:41   Re: TF2 Class limit
Reply With Quote #185

Had to install this when we removed our server password last night. Took me just 2-3 minutes to get it installed and configured. Thanks so much for this.
ChillyWI is offline
Flyflo
Senior Member
Join Date: Jun 2008
Location: Grenoble, France
Old 08-21-2008 , 16:59   Re: TF2 Class limit
Reply With Quote #186

I just noticed a bug, in MaxClass.txt you have to replace "heavy" by "heavyweapons".
Flyflo is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 08-21-2008 , 17:21   Re: TF2 Class limit
Reply With Quote #187

If anyone else wants to enjoy some hilarity, turn Heavies, Pyros, and Medics to 0 and change your server to one of the achievementbox maps. Endless fun right there.
__________________
msleeper is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 08-21-2008 , 21:37   Re: TF2 Class limit
Reply With Quote #188

That may make sense why heavys might not be being blocked, I cant tell.
__________________

DontWannaName is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 09-29-2008 , 02:53   Re: TF2 Class limit
Reply With Quote #189

Is there a way to make your class limit plugin not kick someone out of a class, but still have a flag clients add to the class limit.
__________________

DontWannaName is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 09-29-2008 , 06:51   Re: TF2 Class limit
Reply With Quote #190

sm_maxclass_count_admins (default: 0) - Enable/Disable admins counting towards class limits

Set that to 1 and make sure "sm_maxclass_exclude_admins" is 0
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
Reply


Thread Tools
Display Modes

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 19:15.


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