Raised This Month: $32 Target: $400
 8% 

H-Reserved (Advanced Reserved Slots)


Post New Thread Reply   
 
Thread Tools Display Modes
red!
Senior Member
Join Date: Sep 2007
Location: Germany
Old 11-10-2007 , 20:23   Re: H-Reserved (Advanced Reserved Slots)
Reply With Quote #91

Quote:
Originally Posted by BarkerJr View Post
It looks like we're off by one. The operator on line 185 should be <= not <, and the currentClientCount on line 188 should not have 1 added to it. Does this make sense?
You're wrong in both cases. The player that currently connected (the one who triggered the OnClientPostAdminCheck) is not yet included in GetClientCount(false) - even if the definition of the parameter bool:inGameOnly=false sounds different. So I need to add 1 what also lead to "<" instead of "<="

Last edited by red!; 11-10-2007 at 20:31.
red! is offline
Kengh
Member
Join Date: Nov 2007
Old 11-10-2007 , 21:06   Re: H-Reserved (Advanced Reserved Slots)
Reply With Quote #92

Even with 1 reserved slot and 1 hidden slot set up, it is showing the server right (23/23) but when a player tried to enter the 23rd slot it lets them connect but them kicks them which is VERY FRUSTRATING! How can I stop this? So to reitterate, if the server is 22/23 and someone connects it will kick them even tho I have it set to only 1 reserved slot!
Kengh is offline
strontiumdog
Veteran Member
Join Date: Jan 2007
Location: BC, Canada
Old 11-10-2007 , 22:19   Re: H-Reserved (Advanced Reserved Slots)
Reply With Quote #93

Thanks red!
Works a treat
strontiumdog is offline
BarkerJr
Junior Member
Join Date: Nov 2007
Location: Connecticut, USA
Old 11-10-2007 , 22:26   Re: H-Reserved (Advanced Reserved Slots)
Reply With Quote #94

Quote:
Originally Posted by red! View Post
You're wrong in both cases. The player that currently connected (the one who triggered the OnClientPostAdminCheck) is not yet included in GetClientCount(false) - even if the definition of the parameter bool:inGameOnly=false sounds different. So I need to add 1 what also lead to "<" instead of "<="
Well, the change I mentioned works for me. Of course, my SourceMod build (1649) is two weeks old, so I'll try upgrading to the latest build later tonight or tomorrow morning and let you know if my change is still required.
BarkerJr is offline
Send a message via Skype™ to BarkerJr
Kengh
Member
Join Date: Nov 2007
Old 11-11-2007 , 01:21   Re: H-Reserved (Advanced Reserved Slots)
Reply With Quote #95

Ok here's the main problem:

sm_hreserved_drop_method 0

Setting this to zero DOESN'T work, it still drops players attempting to connect.


Like there is something seriously wrong here. I don't want to swich back to Beetlesmod because SM is better quality overall, but these reserved slots aren't working correctly. Is there no way to make it so that players can't connect and then get kicked? Please help me out I've been working on getting this issue resolved for days.

Last edited by Kengh; 11-11-2007 at 01:26.
Kengh is offline
red!
Senior Member
Join Date: Sep 2007
Location: Germany
Old 11-11-2007 , 05:17   Re: H-Reserved (Advanced Reserved Slots)
Reply With Quote #96

Quote:
Originally Posted by BarkerJr View Post
Well, the change I mentioned works for me. Of course, my SourceMod build (1649) is two weeks old, so I'll try upgrading to the latest build later tonight or tomorrow morning and let you know if my change is still required.
well. i am using the same version of sourcemod and everything is fine for me. with your changes the plugin should never have worked correctly for anyone using only one reserved slot.
red! is offline
red!
Senior Member
Join Date: Sep 2007
Location: Germany
Old 11-11-2007 , 05:36   Re: H-Reserved (Advanced Reserved Slots)
Reply With Quote #97

Quote:
Originally Posted by Kengh View Post
Ok here's the main problem:

sm_hreserved_drop_method 0

Setting this to zero DOESN'T work, it still drops players attempting to connect.


Like there is something seriously wrong here. I don't want to swich back to Beetlesmod because SM is better quality overall, but these reserved slots aren't working correctly. Is there no way to make it so that players can't connect and then get kicked? Please help me out I've been working on getting this issue resolved for days.
I am quiete unsure what you want to tell me.

if you set the drop method to 0, and a player witout reserved slot access tries to connect, he is kicked, yes. of course he is, otherwise the plugin would be useless. but if a player with reserved slot access connects, no other player is kicked. instead the reserved slot is blocked until a player leaves on his own. thats the intention of this option.
red! is offline
BarkerJr
Junior Member
Join Date: Nov 2007
Location: Connecticut, USA
Old 11-11-2007 , 07:22   Re: H-Reserved (Advanced Reserved Slots)
Reply With Quote #98

Quote:
Originally Posted by red! View Post
well. i am using the same version of sourcemod and everything is fine for me. with your changes the plugin should never have worked correctly for anyone using only one reserved slot.
Do you think that's my problem? I have 4 public slots, out of 6 slots total. So that's 2 implicit reserved slots.

I guess my point is that when my server has 3/4, the plugin writes to the console that 4/4 public slots are in use. This is incorrect.

sv_visiblemaxplayers 4
sm_hreserved_drop_method 0
sm_hreserved_redirect_target 127.0.0.1:27015

Last edited by BarkerJr; 11-11-2007 at 09:27. Reason: add more details
BarkerJr is offline
Send a message via Skype™ to BarkerJr
Kengh
Member
Join Date: Nov 2007
Old 11-11-2007 , 08:59   Re: H-Reserved (Advanced Reserved Slots)
Reply With Quote #99

If drop method is 0, according to the instructions, shouldn't it never drop anybody? Not dropping players is what I want.

I want it to work like this:

2 Reserved Slots out of 24 total slots

Server is 22/22 (2 hidden) only RS can access the last 2 slots, but when a RS joins noone gets kicked, the server just temporarily moves to 23/22 until someone leaves. This is what a I want, and its possible under Beetlesmod, and Mani's, there has got to be a way to get it to work with Sourcemod!
Kengh is offline
red!
Senior Member
Join Date: Sep 2007
Location: Germany
Old 11-11-2007 , 11:34   Re: H-Reserved (Advanced Reserved Slots)
Reply With Quote #100

Quote:
Originally Posted by Kengh View Post
If drop method is 0, according to the instructions, shouldn't it never drop anybody? Not dropping players is what I want.

I want it to work like this:

2 Reserved Slots out of 24 total slots

Server is 22/22 (2 hidden) only RS can access the last 2 slots, but when a RS joins noone gets kicked, the server just temporarily moves to 23/22 until someone leaves. This is what a I want, and its possible under Beetlesmod, and Mani's, there has got to be a way to get it to work with Sourcemod!
This should happen when you use sm_hreserved_drop_method 0

edit:

checked that out.

sv_visiblemaxplayers 1
sm_hreserved_drop_method 1
Client "Jules" connected (192.168.1.20:27005).
[hreserved_slots] no slot amount defined, using 14 hidden slots as reserved.
[hreserved_slots] public slot used (1/1)
Client "red!" connected (192.168.1.21:27005).
[hreserved_slots] no slot amount defined, using 14 hidden slots as reserved.
[hreserved_slots] connected to reserved slot, admin rights granted
[hreserved_slots] kicking Jules
Game will not start until both teams have players.
Dropped Jules from server (You were autokicked to free a reserved slot)
Game will not start until both teams have players.
Dropped red! from server (Disconnect by user.)
sm_hreserved_drop_method 0
Client "Jules" connected (192.168.1.20:27005).
[hreserved_slots] no slot amount defined, using 14 hidden slots as reserved.
[hreserved_slots] public slot used (1/1)
Client "red!" connected (192.168.1.21:27005).
[hreserved_slots] no slot amount defined, using 14 hidden slots as reserved.
[hreserved_slots] connected to reserved slot, admin rights granted

Jules is not kicked if I changed the setting. The game browser shows 2/1 players.

I disconnected Jules on my own then and tried to reconnect while red! was still connected (1/1):

Client "Jules" connected (192.168.1.20:27005).
[hreserved_slots] no slot amount defined, using 14 hidden slots as reserved.
[hreserved_slots] no free public slots
Game will not start until both teams have players.
Dropped Jules from server (This slot is reserved for admins)

And Jules was not able to reconnect. Thats it. Everything okay for me.


Last edited by red!; 11-11-2007 at 12:18.
red! 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 18:06.


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