Forcing game mode selection? (server)

Issues that were previously reported and since dealt with.
Forum rules
This issue tracker is now in read-only mode. Please see this topic for more information on how to contribute to Red Eclipse.

Forcing game mode selection? (server)

Postby unixfreak » 13 Nov 2014 13:38

Is there a way to force the selection of a gamemode in the vote menu?

I'm using these for a time trial config to set the mode/muts:
Code: Select all
sv_defaultmode 6
sv_defaultmuts $mutsbitffa
sv_defaultmap ""
sv_modelockfilter $modebittrial
sv_rotatemode 0
sv_rotatemuts 1


Opening the vote menu:
Image
It shows the maps not in the rotation, which can be confusing.

Selecting a map not in the sv_trialmaps list:
Image
Timetrial will be greyed out and you can't select timetrial. Again, confusing.

I'm aware of mutslockforce command, which forces mutators to be enabled and are displayed with a purple icon in the selection box. Is there a modelockforce equivelant? Maybe that should be added if there isn't another way to do this?
:?:
User avatar
unixfreak
 
Posts: 224
Joined: 02 Feb 2014 18:47
Location: Bristol, UK

Re: Forcing game mode selection? (server)

Postby radiant » 13 Nov 2014 13:59

Why not just set sv_allowmaps to include the trialmaps and nothing else?
radiant
 
Posts: 162
Joined: 02 Feb 2014 06:31

Re: Forcing game mode selection? (server)

Postby unixfreak » 13 Nov 2014 14:02

I've tried that, when no mode is selected it shows the list of maps not in the rotation.
User avatar
unixfreak
 
Posts: 224
Joined: 02 Feb 2014 18:47
Location: Bristol, UK

Re: Forcing game mode selection? (server)

Postby unixfreak » 13 Nov 2014 14:28

Well here's the full setup in case i've got it misconfigured.

TristamK's map pack is in maps/trial/
Code: Select all
ricky@pi:/etc/redeclipse/maps$ ls trial/
Goku/  Michel/  Other/  RESMC/  SpeedMapping/  Temka/  TristamK/  h1q1/


Code: Select all

sv_serverclients 12
sv_serveropen 3
sv_demolock 3
sv_democount 5
sv_demomaxsize 16
sv_demoautorec 0

addlocalop unixfreak a

sv_defaultmode 6
sv_defaultmuts $mutsbitffa
sv_defaultmap ""
sv_modelockfilter $modebittrial
sv_rotatemode 0
sv_rotatemuts 1
sv_timelimit 20
sv_votestyle 1
sv_votethreshold 0.51
sv_teamneutralcolour 0xffffff


maplist = $sv_trialmaps

loopfiles i "maps/trial/Goku/maps" cfg [
    maplist = (concat $maplist (concatword trial/Goku/maps/ $i))
]
loopfiles i "maps/trial/Michel/maps" cfg [
    maplist = (concat $maplist (concatword trial/Michel/maps/ $i))
]
loopfiles i "maps/trial/Other/maps" cfg [
    maplist = (concat $maplist (concatword trial/Other/maps/ $i))
]
loopfiles i "maps/trial/RESMC/maps" cfg [
    maplist = (concat $maplist (concatword trial/RESMC/maps/ $i))
]
loopfiles i "maps/trial/SpeedMapping/maps" cfg [
    maplist = (concat $maplist (concatword trial/SpeedMapping/maps/ $i))
]
loopfiles i "maps/trial/Temka/maps" cfg [
    maplist = (concat $maplist (concatword trial/Temka/maps/ $i))
]
loopfiles i "maps/trial/TristamK/maps" cfg [
    maplist = (concat $maplist (concatword trial/TristamK/maps/ $i))
]
loopfiles i "maps/trial/h1q1/maps" cfg [
    maplist = (concat $maplist (concatword trial/h1q1/maps/ $i))
]

sv_allowmaps ""
sv_campaignmaps ""
sv_mainmaps ""
sv_capturemaps ""
sv_defendmaps ""
sv_bombermaps ""
sv_holdmaps ""

sv_trialmaps $maplist
sv_allowedmaps $maplist


It works fine, but for the sake of noobies, i want timetrial to be auto selected (forced selection) so that the maps not in the rotation can't be selected.

Eg; maplist after clicking timetrial mode.
Image
User avatar
unixfreak
 
Posts: 224
Joined: 02 Feb 2014 18:47
Location: Bristol, UK

Re: Forcing game mode selection? (server)

Postby shirepirate » 13 Nov 2014 15:33

the filter value amounts are here: http://redeclipse.net/wiki/Server_GameFilters

so,
Code: Select all
sv_modelockfilter 64
sv_mutslockfilter 258

(for a 1.4/1.4.5 server)

connect to the server as a user without auth, and you shouldn't see non-available maps listed.
For every action, there is an equal and opposite reaction. For every freedom, there is a new limit. For every joy, a new sorrow. For every act of kindness, an unspeakable cruelty. Where someone succeeds, someone else fails. A new association means a new separation. Loyalty meets treachery, honor breeds disgrace, free expression yields censorship. Each piece of knowledge forms new ignorance. Even death gives rise to new life. But the balance of existence is the beginning of wisdom and discernment.
User avatar
shirepirate
 
Posts: 704
Joined: 27 Mar 2014 07:20

Re: Forcing game mode selection? (server)

Postby freezurbern » 13 Nov 2014 16:10

shirepirate wrote:connect to the server as a user without auth, and you shouldn't see non-available maps listed.

Should be able to connect with auth and not see unavailable maps by setting the correct *lock vars.
freezurbern
 
Posts: 641
Joined: 02 Feb 2014 18:01

Re: Forcing game mode selection? (server)

Postby qreeves » 14 Nov 2014 01:46

The mutslockforce var is only there because you can select more than one mutator, this just forces it to be selected. As you can only select one mode, modelockfilter is all that is needed. The menu should probably just check what modes are available to it and auto-select when there is only one. This is a fairly niche setup which wants something that you don't usually want any other time.
Quinton Reeves | Lead Developer, Red Eclipse
Check Out My YouTube Channel | Leave Me a Tip on PayPal
Contribute to Project Costs via PayPal or Patreon
User avatar
qreeves
Site Admin
 
Posts: 1619
Joined: 02 Feb 2014 05:04
Location: Australia

Re: Forcing game mode selection? (server)

Postby qreeves » 14 Nov 2014 05:00

UPDATE: Done in r6938.
Quinton Reeves | Lead Developer, Red Eclipse
Check Out My YouTube Channel | Leave Me a Tip on PayPal
Contribute to Project Costs via PayPal or Patreon
User avatar
qreeves
Site Admin
 
Posts: 1619
Joined: 02 Feb 2014 05:04
Location: Australia

Re: Forcing game mode selection? (server)

Postby unixfreak » 14 Nov 2014 15:29

qreeves wrote:UPDATE: Done in r6938.

Great :)
User avatar
unixfreak
 
Posts: 224
Joined: 02 Feb 2014 18:47
Location: Bristol, UK


Return to Closed Issues

cron