gunslinger23 / maniadminplugin

Automatically exported from code.google.com/p/maniadminplugin
1 stars 1 forks source link

Reserved slots do not work in "fill" mode #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Set this in your server.cfg
bot_quota 4
bot_quota_mode fill
bot_auto_vacate 0
bot_join_after_player 0
bot_prefix "Laughing"

2.Set this in your mani_server.cfg
//
*****************************************************************************
// Module 06: Reserved Slots
//
// Desc : The Reserved Slots module configuration cvars
//
*****************************************************************************

// Turn on off reserve slots
mani_reserve_slots 1

// Number of reserve slots you have
mani_reserve_slots_number_of_slots 1

// User defined message shown in players console when kicked
mani_reserve_slots_kick_message "You were disconnected for using a reserve
slot"

// User defined message for redirection of players to another server
mani_reserve_slots_redirect_message "This server is full, you are being
redirected to another one of our servers"

// The IP address of the server you wish to redirect players to. Leave it
blank 
// if you do not want redirection to be used
mani_reserve_slots_redirect ""

// This defines whether you want your reserve slots to fill with reserve
players 
// or always be kept free (1 = allow slots to fill, 0 = always keeps slots
free 
// and kick player instead)
mani_reserve_slots_allow_slot_fill 0

// Type of method used to kick players, (bots go first, then spectators)
// 0 = by highest ping 
// 1 = by connection time 
// 2 = by kills per minute
// 3 = kill/death ratio
mani_reserve_slots_kick_method 1

// IPs of players get stored to allow reserve slots and password bypassing
( admins )
// to work via the gui server browser.  This setting allows the server to
purge stale 
// records after a set amount of time.
mani_reserve_slots_ip_keep_history 14

// Enforces the password even for admins.  The new reserve slot system can
allow
// admins to bypass the server password and join.  This cvar disables that
feature
mani_reserve_slots_enforce_password 0

// This allows admins with known IP addresses to be allowed to join via the
reserve
// slot system.  Setting this to 0 will only allow those in the
reserveslots.txt file.
mani_reserve_slots_include_admin 1

3. Set your server to only have 4 slots and start it

What is the expected output? What do you see instead?
I should be able to join since 4 slots should be available and 1 is always
kept free. Instead, all 4 slots get taken by bots. Instead, all 4 bots are
able to "join" the server, instead i'm locked out and nobody gets kicked.
But the 4th slot should be free all the time, although i got 4 bots set up
via the server.cfg

Instead, it also kicks 1 bot if i use bot_quote 3 (by keeping 4 slots
avaialble) - working as intended.

To put it in a nutshell:
4 slots available on fill - 4 bots present via bot_quota 4 -> can't connect
4 slots available on fill - bot_quoate 3 -> can connect, but one bot gets
kicked, so that's fine and working

What version of the product are you using? On what operating system?
1.2 U SRCDS on Win7

Please provide any additional information below.
Maybe i misunderstood something?

Original issue reported on code.google.com by farnhammer_manuel@web.de on 12 Apr 2010 at 9:27

GoogleCodeExporter commented 9 years ago
This is a server mis-configuration that can't be fixed.

If you kick a bot with the quota set > than max fillable slots, then you get an
endless loop of kicking and joining by bots.

Quote:
Dropped Laughing Adam from server (Kicked by Console)
Dropped Laughing Tim from server (Kicked by Console)
Dropped Laughing Doug from server (Kicked by Console)
Dropped Laughing Irving from server (Kicked by Console)
Dropped Laughing Andy from server (Kicked by Console)
Dropped Laughing Jason from server (Kicked by Console)
Dropped Laughing Keith from server (Kicked by Console)
Dropped Laughing Wayne from server (Kicked by Console)
Dropped Laughing Steve from server (Kicked by Console)
Dropped Laughing Kevin from server (Kicked by Console)
Dropped Laughing Dennis from server (Kicked by Console)
Dropped Laughing Xander from server (Kicked by Console)
Dropped Laughing Doug from server (Kicked by Console)
Dropped Laughing Erik from server (Kicked by Console)
Dropped Laughing Perry from server (Kicked by Console)
Dropped Laughing Don from server (Kicked by Console)
Dropped Laughing Shawn from server (Kicked by Console)
Dropped Laughing Xander from server (Kicked by Console)

Original comment by keeper....@gmail.com on 21 Apr 2010 at 2:15