Page 1 of 1

Mode limiting

PostPosted: 28 Jan 2012, 00:23
by envoid
Hello.

I'm not really a developer and was landed to this forum from the RE website Forum link. We're trying to get the server part a little more configured but is running quite well. Our problem is the mode limiting with mutator limiting. The wiki does not explain the values well and am finding things just aren't doing what I think they should be doing per the wording of the wiki.

For instance, we primarily just want deathmatch with no survivor, duel, or onslaught mutators. So I set sv_modelimit to 8, sv_mutslimit to 3919 and sv_defaultmode to 3, but find survivor is enabled and several other game types are enabled as well.

I did enter the admin password from my machine so I don't know if this is influencing things but the server is running CTF before I ever connect.

Could anyone shed some light on the way these values are actually calculated?

Thank you very much!

Re: Mode limiting

PostPosted: 28 Jan 2012, 18:57
by arand
First off,
{l Code}: {l Select All Code}
sv_[mode, muts]limit
has been renamed to
{l Code}: {l Select All Code}
sv_[mode, muts]lockfilter
(The server examples did unfortunately not get updated at the same time)

I'm not

Also make sure to
{l Code}: {l Select All Code}
/writevars
when you have it setup correctly

You may also need
{l Code}: {l Select All Code}
/sv_rotatemodefilter
/sv_rotatemutsfilter

in order to filter the gametypes the server will choose randomly itself without voting

Also, the numbers for the modes and muts may have changed, menu.cfg has the current values:
{l Code}: {l Select All Code}
modevar "editing" modeselected 1
modevar "campaign" modeselected 2
modevar "deathmatch" modeselected 3
modevar "capture-the-flag" modeselected 4
modevar "defend-the-flag" modeselected 5
modevar "bomber-ball" modeselected 6
modevar "time-trial" modeselected 7

mutsvar "multi" modeselected mutsselected (<< 1 0)
mutsvar "medieval" modeselected mutsselected (<< 1 3)
mutsvar "survivor" modeselected mutsselected (<< 1 6)
mutsvar "hover" modeselected mutsselected (<< 1 9)
mutsvar "expert" modeselected mutsselected (<< 1 12)
mutsvar "teamplay" modeselected mutsselected (<< 1 1)
mutsvar "ballistic" modeselected mutsselected (<< 1 4)
mutsvar "arena" modeselected mutsselected (<< 1 7)
mutsvar "jetpack" modeselected mutsselected (<< 1 10)
mutsvar "resize" modeselected mutsselected (<< 1 13)
mutsvar "instagib" modeselected mutsselected (<< 1 2)
mutsvar "duel" modeselected mutsselected (<< 1 5)
mutsvar "onslaught" modeselected mutsselected (<< 1 8)
mutsvar "vampire" modeselected mutsselected (<< 1 11)

c.f. https://sourceforge.net/apps/mediawiki/ ... me::server

Re: Mode limiting

PostPosted: 30 Jan 2012, 19:44
by envoid
arand, thank you very much!! The server is working how we'd like now (DM only). I haven't really tried the sv_rotate[mode, muts]filter options yet but maybe later depending how we play. But this definitely got us working! thank you again!

Re: Mode limiting

PostPosted: 22 Feb 2012, 19:47
by Blindman
I am having the same issue, but Im having trouble deciphering the above post, I have the actual mode limited to DM, however I'm still seeing the muts as selectable in voting, I'd rather not have most of them on as it's just to much.
Are these actual commands from the console or written into the serverexec?
ty

Re: Mode limiting

PostPosted: 24 Feb 2012, 18:00
by Blindman
Ok so that limits available voting muts, what controls the default muts as in what it goes to when the server starts?

Re: Mode limiting

PostPosted: 24 Feb 2012, 19:26
by ZeroKnight
Blindman {l Wrote}:I have the actual mode limited to DM, however I'm still seeing the muts as selectable in voting

Are you identified as master/admin on your server? By default, masters/admins can choose filtered modes/mutators.


Blindman {l Wrote}:Ok so that limits available voting muts, what controls the default muts as in what it goes to when the server starts?

As stated in arand's post:
arand {l Wrote}:You may also need
{l Code}: {l Select All Code}
/sv_rotatemodefilter
/sv_rotatemutsfilter

in order to filter the gametypes the server will choose randomly itself without voting


Use the same values you would use to limit mode/mut voting. For values, reference arand's post again, or a "cleaner" table can be found on the wiki: http://sourceforge.net/apps/mediawiki/r ... rver#Modes

Add the bit shifted values of the modes/mutators you DO want. So, for example, if you wanted to limit to say, FFA Arena Team Deathmatch, you would use 8 for the modefilter, and 130 for the mutfilter. ( 2 (team) + 128 (arena) = 130 )

If you need more help, feel free to ask :)

Re: Mode limiting

PostPosted: 27 Feb 2012, 03:02
by Blindman
Ahh thanks.

Re: Mode limiting

PostPosted: 01 Apr 2012, 22:00
by TristamK
how unlock multi mut. for time-trial mode ?

Re: Mode limiting

PostPosted: 03 Apr 2012, 19:45
by TristamK
hmmm . no working ...

Re: Mode limiting

PostPosted: 03 Apr 2012, 21:02
by TristamK
no problem =)
Ok . who knows : how vote for multi time-trial from console ?

Re: Mode limiting

PostPosted: 03 Apr 2012, 21:46
by arand
I've updated the wiki page for the server and added a dedicated page for Mode/Mutator filtering:
https://sourceforge.net/apps/mediawiki/ ... amefilters
Should hopefully be somewhat more clear.

Re: Mode limiting

PostPosted: 05 Apr 2012, 14:14
by TristamK
ok . how vote for team time-trial ?

Re: Mode limiting

PostPosted: 05 Apr 2012, 17:37
by arand
TristamK {l Wrote}:ok . how vote for team time-trial ?

Simple answer: You don't.

If you insist:
{l Code}: {l Select All Code}
diff --git a/src/game/gamemode.h b/src/game/gamemode.h
index 199b086..6ec4c2d 100644
--- a/src/game/gamemode.h
+++ b/src/game/gamemode.h
@@ -104,7 +104,7 @@ gametypes gametype[] = {
     {
         G_TRIAL,        G_M_NONE,
         {
-            G_M_INSTA|G_M_ARENA|G_M_MEDIEVAL|G_M_BALLISTIC|G_M_ONSLAUGHT|G_M_HOVER|G_M_JETPACK|G_M_VAMPIRE|G_M_EXPERT|G_M_RESIZE,
+            G_M_MULTI|G_M_INSTA|G_M_ARENA|G_M_MEDIEVAL|G_M_BALLISTIC|G_M_ONSLAUGHT|G_M_HOVER|G_M_JETPACK|G_M_VAMPIRE|G_M_EXPERT|G_M_RESIZE,
             G_M_NONE, G_M_NONE, G_M_NONE
         },
         "time-trial",                       { "", "", "" },

Will only work if server and client are likewise modded, won't make is possible to add bots to trial.

Re: Mode limiting

PostPosted: 07 Apr 2012, 00:56
by TristamK
Thanks arand =)