Bug #1170

Only campaigns in map list when referee

Added by swecide about 1 month ago. Updated 18 days ago.

Status:Confirmed% Done:

0%

Priority:Normal
Assignee:-
Category:Mod QAGAME
Target version:2.77
OS: Arch:

Description

As a referee, only the campaigns are visible in the referee menu map list.

History

#1 Updated by IR4T4 about 1 month ago

  • Target version set to 2.77

#2 Updated by Spyhawk about 1 month ago

There is an issue with latched gametype. Servers are started with the default g_gametype (default 4, campaign), even if they’re using map rotation (6) as shipped with the default config. Since the value is latched, the server is still considered running campaign mode and as such only campaign are available in the referee maps menu.
When the next map is loaded (or by using !nextmap), both campaigns and maps can be selected.

#3 Updated by Spyhawk about 1 month ago

  • Category changed from Client to Mod QAGAME
  • Status changed from New to Confirmed

#4 Updated by Spyhawk about 1 month ago

  • OS deleted (Linux)
  • Arch deleted (64-bit)

#5 Updated by IR4T4 18 days ago

I think I’ve found the reason for the g_gametype issue:

Since some version we are using Cvar_SetSafe instead of Cvar_Set for trap_Cvar_Set mod calls:

        // don't let VMs or server change engine latched cvars instantly
        if ((flags & CVAR_LATCH) && !(flags & CVAR_VM_CREATED))
        {
            force = qfalse;
        }

Also available in: Atom PDF