Daemon icon indicating copy to clipboard operation
Daemon copied to clipboard

servers should just run maprotation instead of forcing a specific map

Open bmorel opened this issue 4 years ago • 4 comments

Servers apply rotation based on the file indicated by variable g_initialMapRotation, but only after the 1st game ended.

The 1st game receive a special treatment: it requires config/server.cfg to end with a map foobar, and thus can not receive the rotation custom configuration without duplicating them in config/map/default.cfg.

I would suggest to instead just run the 1st entry of g_initialMapRotation.

bmorel avatar Dec 12 '21 12:12 bmorel

Yes, it's an awkward situation that you are forced to start with a specific map.

What do you mean by the "rotation custom configuration"?

I would suggest to instead just run the 1st entry of g_initialMapRotation.

As a workaround, you could emulate this by adding nextmap right after the initial map command.

slipher avatar Dec 12 '21 18:12 slipher

What do you mean by the "rotation custom configuration"?

I mean the per-map configuration which is inside the maprotation file, i.e.:

if ( numPlayers < 24 ) openfield {
  bla
}

bla can be various things (I'm not sure which ones exactly, but this at least includes bot fill, even if config/map/foo.cfg might be a better place).

ghost avatar Dec 12 '21 18:12 ghost

Well commands in the maprotation is kinda broken anyway, since it won't work if the map is chose by a nextmap vote, for example. Better to use the map configs if possible

slipher avatar Dec 12 '21 19:12 slipher

One thing they allow is to easily share bulk of the config between multiple servers, unlike the config/maps folder, since that one will also contain the pseudo MotD of the server (the cp 20 hello world command) that one will typically want to be rather distinctive.

ghost avatar Dec 12 '21 19:12 ghost