MantisBT - Zandronum
View Issue Details
0002002Zandronum[All Projects] Suggestionpublic2014-11-19 04:292021-08-08 01:47
Watermelon 
Kaminsky 
normalfeatureN/A
resolvedfixed 
1.4 
3.13.1-beta 
0002002: Allow map rotation to have associated player counts to select when choosing.
One of the problems with FNF is when a massive map is picked, or too small of a map is picked when there's a high amount of players. Therefore I was thinking of having an optional set in range of 0 .. MAXPLAYERS.

For example, you'd see something like:
Map, low, high:
MAP01, 0, 16
MAP02, 4, 32
MAP03, 16, 64

By default, if none are specified, it'd default to 0 and 64.

Details of how it'd work:
- If there's not enough players, it will randomly choose from what is available. If there is not enough players, it will pick the lowest indexed map (or randomize between multiple lowest index maps).
- If there's more people than the limit, it will pick the limit with the highest number of players. This is quite similar to the above.


Is this an idea we could pursue? Looking for feedback/review before continuing.
No tags attached.
related to 0001710acknowledged  Minimum/maximum players for MAPINFO 
Issue History
2014-11-19 04:29WatermelonNew Issue
2014-11-19 04:30WatermelonStatusnew => needs review
2014-11-19 04:30WatermelonAssigned To => Watermelon
2014-11-19 04:30WatermelonStatusneeds review => assigned
2014-11-19 04:30WatermelonStatusassigned => needs review
2014-11-19 10:46Konar6Note Added: 0010908
2014-11-19 14:57DuskRelationship addedrelated to 0001710
2014-12-07 14:23WatermelonStatusneeds review => assigned
2015-07-17 20:33MarcaekNote Added: 0012961
2015-07-17 20:33MarcaekNote Edited: 0012961bug_revision_view_page.php?bugnote_id=12961#r7729
2016-04-10 19:25DuskStatusassigned => new
2016-04-10 19:27DuskAssigned ToWatermelon =>
2021-07-26 12:59KaminskyNote Added: 0021640
2021-07-26 12:59KaminskyAssigned To => Kaminsky
2021-07-26 12:59KaminskyStatusnew => needs testing
2021-07-26 12:59KaminskyTarget Version => 3.1
2021-08-08 00:53arkoreNote Added: 0021679
2021-08-08 01:46KaminskyNote Added: 0021680
2021-08-08 01:47KaminskyStatusneeds testing => resolved
2021-08-08 01:47KaminskyFixed in Version => 3.1-beta
2021-08-08 01:47KaminskyResolutionopen => fixed

Notes
(0010908)
Konar6   
2014-11-19 10:46   
'http://zandronum.com/tracker/view.php?id=1710 [^]'
(0012961)
Marcaek   
2015-07-17 20:33   
MAPINFO additions are a poor alternative, requiring patchwads made for literally all wads pre-addition of MAPINFO flags.

This however, is an excellent idea.

(0021640)
Kaminsky   
2021-07-26 12:59   
3.1 adds two optional parameters to "addmap" and "insertmap", for specifying the min and/or max players required to enter a map. If there's too few or too many players to enter any of the maps in the rotation, then it will choose the map which has the lowest min or highest max respectively.
(0021679)
arkore   
2021-08-08 00:53   
Testing complete.

Windows 10 (1903 Build)
GeForce GTX 1060 6GB (Drivers 26.21.14.4112 - 2019-10-24)
Zandronum 3.1-alpha 64-bit (210801-2044)

1. zandronum -host -iwad doom2.wad +sv_updatemaster 0 +sv_maprotation 0 +addmap MAP02 0 2 +addmap MAP12 0 2 +addmap MAP22 2 4 +insertmap MAP16 2 1 6 +insertmap MAP17 1 3 6 +insertmap MAP18 0 0 6 (success: starts at MAP17, ignoring playercount.)
2. zandronum -iwad doom2.wad -connect localhost
3. nextmap (success: Begins new playercount-based rotation order, starting at MAP02)
4. nextmap (success: MAP12)
5. nextmap (success: MAP18)
6. join in-game
7. nextmap (success: MAP02's nextmap is now MAP03.)
8. insertmap MAP03 3 0 2 (success: MAP02's nextmap is now MAP03.)
9. nextmap (success: MAP03's nextmap is now MAP16.)
9. spectate
10. nextmap (success: MAP03's nextmap is now MAP12.)

With random map rotation:

1. zandronum -host -iwad doom2.wad +sv_updatemaster 0 +sv_maprotation 1 +addmap MAP02 0 2 +addmap MAP12 0 2 +addmap MAP22 2 4 +insertmap MAP16 2 1 6 +insertmap MAP17 1 3 6 +insertmap MAP18 0 0 6 (success: starts at a random map, ignoring playercount.)

With config:

1. SERVER.CFG:
sv_broadcast 0
sv_randommaprotation true
clearmaplist // (OPTIONAL)
addmap MAP02 0 2
addmap MAP12 0 2
addmap MAP22 2 4
insertmap MAP16 2 1 6
insertmap MAP17 1 3 6
insertmap MAP18 0 0 6

2. zandronum -host +exec SERVER.CFG -iwad doom2.wad (success: Same behavior as above.)
(0021680)
Kaminsky   
2021-08-08 01:46   
Thanks for thoroughly testing out this feature! I'll mark this as resolved.