Running a server with multiple game modes in 2.4.x

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators


  • I had this discussion with a few people before (esteel being one of them) and I was told that the new mapinfo system (since 2.4) doesn't support a maplist that has maps of different gamemodes. The old mapcfg system allowed you to call a map by using ctf_mapname or dm_mapname, ... , to load the next map and also change the gamemode.

    Esteel made the point that nobody really used that feature, so it wasn't considered important for the mapinfo system to support. He also said that there could be a way to setup aliases and use vcall to change gamemodes (which is something I currently do on my private servers), but that's not the desired solution.

    I currently run a New CTF Maps server where I place new CTF maps for testing. I was wanting to setup the server to run maps of different gamemodes (not just CTF). A couple nights ago, I accidentally came across a way to do that (I think). I was able to have a maplist with a few maps where one of the maps changed the gamemode when it loaded. It turns out that one map had a mapinfo file with only one gamemode entry. When that map was chosen from the maplist, the gamemode changed from CTF to DM.

    So I began to theorize on how that map appeared on the maplist to begin with since the current gamemode was CTF and this map didn't have a CTF entry in its mapinfo file (only DM). I previously understood that maps that did not support the currently set gamemode would not show up in the maplist under the mapinfo system. I believe what happened is that I had multiple gamemode flags set.

    set g_ctf 1
    set g_tdm 1
    set g_dm 1

    which allowed the map to appear in the maplist. Then then the mapinfo file for that map ended up changing the gamemode when that map loaded. I'm gonna mess with it some more tonight, but I believe that is what happened. I know I was able to get maps with different gamemodes to show up on the map voting list and the gamemode changed when the next map loaded. Hopefully, I'll be able to figure out a way to have my "New Map server" support different gamemodes.

    *crosses fingers*
    Dokujisan
    Forum addon
     
    Posts: 1199
    Joined: Sat Oct 07, 2006 4:31 pm
    Location: Louisville, Kentucky


  • Dokujisan wrote:I believe what happened is that I had multiple gamemode flags set.

    set g_ctf 1
    set g_tdm 1
    set g_dm 1

    If you enable more than one gamemode, the first one checked (ctf in this case) will become active and all other cvars will be reset to 0 when the map is loaded (and after loading the cvars will no longer be accessed).
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm


  • Ok, so how does one effectively set numerous game types?
    thedevnull
    Member
     
    Posts: 29
    Joined: Wed Apr 16, 2008 12:35 am

Mon Jun 09, 2008 9:24 pm

  • Not sure yet. KadaverJack cleared up my theory, so I'm not entirely sure how I was able to change game modes between maps. I'd have to do some more experimenting. I havent' had time over the past few days to experiment with it. Perhaps I'll have time to mess with it soon. If I figure anything out, I'll post it here.
    Last edited by Dokujisan on Tue Jun 10, 2008 6:34 am, edited 1 time in total.
    Dokujisan
    Forum addon
     
    Posts: 1199
    Joined: Sat Oct 07, 2006 4:31 pm
    Location: Louisville, Kentucky

Mon Jun 09, 2008 10:09 pm

Mon Jun 09, 2008 10:24 pm

  • morfar wrote:If a map only has CTF support a DM Server will switch to CTF mode as an "emergency" action. And vice versa.


    So theoretically we can create .mapinfo files for the ctf maps we want by setting the g_ctf mutator to 1 and all other game types to 0 on a server running a few dm maps?

    Code: Select all
    // GAME MODE: what type of server do you want to host? Only uncomment ONE of these.
    //g_dm 0          // deathmatch
    //g_tdm 0         // team deathmatch
    //g_ctf 1         // capture the flag
    //g_domination 0  // domination
    //g_runematch 0   // runematch
    //g_lms 0         // last man standing
    //g_arena 0       // arena
    //g_keyhunt 0     // key hunt


    If so, does this 'trick' work with other game mutators?
    User avatar
    [-z-]
    Site Admin and Nexuiz Ninja
     
    Posts: 1794
    Joined: Mon Nov 13, 2006 12:20 am
    Location: Florida

Tue Jun 10, 2008 6:38 am

  • morfar wrote:If a map only has CTF support a DM Server will switch to CTF mode as an "emergency" action. And vice versa.


    Hmm. I understood that, since 2.4 with the mapinfo system, a map would not appear in the maplist if it doesn't support the current mapmode. Is this accurate?
    Dokujisan
    Forum addon
     
    Posts: 1199
    Joined: Sat Oct 07, 2006 4:31 pm
    Location: Louisville, Kentucky

Tue Jun 10, 2008 11:15 am

  • it would appear in g_maplist but would be skipped
    IRC quote:
    [kojn] I've been coming a bit more recently
    [kojn] she took it the dirty way
    GreEn`mArine
    Forum addon
     
    Posts: 1509
    Joined: Tue Feb 28, 2006 9:33 pm
    Location: Germany

Thu Jun 19, 2008 1:29 pm

  • Is there a way to do this from the console?

    For example, in 2.3 you could do:
    chmap kh_minimanq3
    and it would load minimanq3 as keyhunt. You could also do this by setting the gametype in the create menue, putting miniman in the maplist, and it would load as keyhunt without you ever touching the console.
    In 2.4 and 2.4.2, you can do:
    gametype kh
    but if you chmap to miniman after that it will load as deathmach.
    You could also play ctf on miniman - one base was behind the laptop, and the other one in the shelf in the opposite corner. I think it was a great ctf map - very well balanced believe it or not :)
    oskar669
    Member
     
    Posts: 49
    Joined: Mon Mar 24, 2008 7:29 pm



Return to Nexuiz - General Discussion




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest