[idea] Dynamic maplists

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Thu Jun 26, 2008 5:01 am

  • Throwing another idea into the mix.

    I was wondering if there was a way to have the maplist adjust depending on how many players there were. So if there are only 4-6 players, then the "3v3-or-less" maps would appear on the map voting list. If there were 16 players, then the maps that can handle 16 players will appear on the map voting list.

    Of course, this would be setup ahead of time by the server admin.
    Perhaps multiple maplists?

    Or perhaps someone out there with more technical knowledge of Nexuiz could come up with a better variation of this idea.
    Dokujisan
    Forum addon
     
    Posts: 1199
    Joined: Sat Oct 07, 2006 4:31 pm
    Location: Louisville, Kentucky

Thu Jun 26, 2008 1:27 pm

  • I'm pretty sure this is achievable with the addition of a cvar, g_maplist_dynamic_size which if set true, would create it's pool based on the current number of players. This may even be done automagically based on the information provided by .mapinfo

    otherwise,

    g_maplist_small, g_maplist_medium, g_maplist_large may be in order.
    User avatar
    [-z-]
    Site Admin and Nexuiz Ninja
     
    Posts: 1794
    Joined: Mon Nov 13, 2006 12:20 am
    Location: Florida

Thu Jun 26, 2008 3:24 pm

  • This kind of feature have been existed since 2 years, but it's not well know because it's kinda undocumented.

    How it's working :
    - you don't need to modify your maplist
    - create a file in data/ called mapname.sizes (like mapname.cfg or mapname.mapinfo) with first line minplayers, and second line maxplayers.
    example for a large map :
    Code: Select all
    8
    16

    example for a small map :
    Code: Select all
    0
    6

    - then the map will only appear on the vote screen if the required number of players is reached.
    - you don't need to do this for all maps, just the ones you want to tweak.


    Also an interesting cvar was added in svn :
    g_maplist_check_waypoints: when 1 and the server is not full enough to play bot-less, maps without waypoints will be skipped
    Ronan
    Alien trapper
     
    Posts: 292
    Joined: Tue Mar 20, 2007 10:25 pm
    Location: France

Thu Jun 26, 2008 5:08 pm

  • Thank you very much Ronan! :-)

    I'll try that out tonight.
    Dokujisan
    Forum addon
     
    Posts: 1199
    Joined: Sat Oct 07, 2006 4:31 pm
    Location: Louisville, Kentucky

Thu Jun 26, 2008 8:53 pm



Return to Nexuiz - Development




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