Page 1 of 1

Problem setting mutator filter

PostPosted: 27 Apr 2013, 03:16
by unixfreak
Trying to configure a server, these are the changes relevant to the gamemode/mutators i want:
{l Code}: {l Select All Code}
sv_defaultmode 2
sv_defaultmuts (+ $mutsbitteam $mutsbitinstagib)
sv_rotatemode 0
sv_rotatemuts 3
sv_rotatemodefilter (+ $modebitdeathmatch)
sv_rotatemutsfilter (+ $mutsbitteam $mutsbitinstagib $mutsbitsurvivor $mutsbitmedieval $mutsbitcoop)


What i want is, the server to default to instagib-team deathmatch (that part is working)
...and to only allow mutators: team, instagib, survivor, medieval and coop.

sv_rotatemutsfilter doesn't seem to filter mutator selection for me. The sv_rotatemodefilter setting does only allow deathmatch however.

Also:
{l Code}: {l Select All Code}
$ ./redeclipse_server.sh
Sat Apr 27 03:01:11 2013 unknown alias lookup: mutsbitteam
Sat Apr 27 03:01:11 2013 unknown alias lookup: mutsbitteam
Sat Apr 27 03:01:11 2013 configuration reloaded
Sat Apr 27 03:01:11 2013 init: server (*:28801)
Sat Apr 27 03:01:11 2013 found octa directory: ../sauerbraten
Sat Apr 27 03:01:11 2013 dedicated server started, waiting for clients...
Sat Apr 27 03:01:11 2013 looking up play.redeclipse.net:[28800]...
Sat Apr 27 03:01:11 2013 updating master server
Sat Apr 27 03:01:11 2013 master server reply: server registered, sending ping request


It says $mutsbitteam is unknown, although it sets the default mode to instagib-team deathmatch correctly. Maybe that error is somehow causing the mutator filter to not work?

Any ideas how i can set this prooperly? :)

Re: Problem setting mutator filter

PostPosted: 27 Apr 2013, 05:36
by qreeves
Well team is on by default now, so you'd simply want to disable "ffa". The other variables you are looking for are "modelockfilter" and "mutslockfilter" to control voting ("rotate*" only controls when the server picks the next map).

UPDATE:
{l Code}: {l Select All Code}
sv_defaultmode $modeidxdeathmatch
sv_defaultmuts $mutsbitinstagib
sv_rotatemode 0
sv_modelockfilter $modebitdeathmatch
sv_mutslockfilter (& $mutsbitinstagib $mutsbitsurvivor $mutsbitmedieval $mutsbitcoop)

Re: Problem setting mutator filter

PostPosted: 27 Apr 2013, 08:59
by unixfreak
Cool. Seems to be working now.
However, the disabled mutators aren't greyed out, you can still tick them and vote (tells you you need operator/admin) how can i make it grey out the selection boxes for disallowed modes? I remember seeing a few other servers had this.

This is what i have changed now:
{l Code}: {l Select All Code}
sv_modelockfilter $modebitdeathmatch
sv_mutslockfilter (+ $mutsbitinstagib $mutsbitsurvivor $mutsbitmedieval $mutsbitcoop $mutsbitffa)
sv_defaultmode 2
sv_defaultmuts $mutsbitinstagib
sv_rotatemode 0
sv_rotatemuts 3
sv_rotatemodefilter (+ $modebitdeathmatch)
sv_rotatemutsfilter (+ $mutsbitinstagib $mutsbitsurvivor $mutsbitmedieval $mutsbitcoop $mutsbitffa)
sv_rotatemapsfilter 2