Map by default when the server is empty?
#1
How to define a map by default when the server is empty?

I searched here and I found nothing!
Thanks given by:
#2
IIRC, it should be the first line (map/mode) in your maprot.cfg that allows 1 person. The server won't have a set map/mode until at least one person to enter.
Thanks given by:
#3
Would you have an example of this first line because I deleted it
Thanks given by:
#4
This is the default contents of maprot.cfg:

// Server Side Maprotations...
// WARNING: You can NOT use CubeScript in here!!

// Use the following scheme...
// map:mode:time:allowVote[:minplayer[:maxplayer[:skiplines]]]
// map will be skipped, if minplayer/maxplayer requirements are failed

// map: map filename without extension
//      do only use standard maps and maps from your packages/maps/servermaps folder
//      for the flag modes (5, 14 & 15), be sure, the map contains flag bases

// mode: Team Deathmatch (0), Deathmatch (2), Pistol Frenzy (6),
//       Capture the Flag (5), Hunt the Flag (13), Keep the Flag (15), Team Keep the Flag (14),
//       Team Survivor (4), Survivor (3), Last Swiss Standing (9),
//       One Shot One Kill (10), Team One Shot One Kill (11)

// time: game time in minutes, usually 15 minutes for flag modes, 10 minutes for all other modes

// vote: (1) allow players to vote for other maps
//       (0) only admin can change the map

// minplayer: if set, the server will skip the map, if fewer than required players are connected

// maxplayer: if set, the server will skip the map, if more than allowed players are connected

// skiplines: lines to skip in maprot.cfg, after this map got actually played
//            this can be used to select one of several lines, instead of playing all lines

// minplayer and maxplayer numbers are only checked when a new game is picked from the map rotation.
// If the player number changes during gameplay, no action will be taken.

ac_scaffold   : 2: 8: 1: 0: 3: 1     // dm, 8 minutes, 0..3 players
ac_scaffold   : 0:10: 1: 4:11: 0     // tdm, 10 minutes, 4..11 players

ac_power      : 5:12: 1: 4:12: 1     // ctf, 12 minutes, 4..12 players
ac_power      :13:12: 1:13: 0: 0     // htf, 12 minutes, 13.. players

ac_desert     : 2: 8: 1: 0: 4: 1     // dm, 8 minutes, 0..4 players
ac_desert     :11:10: 1: 5:11: 0     // tosok, 10 minutes, 5..11 players

ac_keller     : 5:12: 1: 4:12: 1     // ctf, 12 minutes, 4..12 players
ac_keller     :13:12: 1:13: 0: 0     // htf, 12 minutes, 13.. players

ac_arctic     : 0:10: 1: 4: 7: 1     // tdm, 10 minutes, 4..7 players
ac_arctic     :11:10: 1: 7: 0: 0     // tosok, 10 minutes, 8.. players

ac_shine      : 5:12: 1: 4:13: 1     // ctf, 12 minutes, 4..13 players
ac_shine      :13:12: 1:14: 0: 0     // htf, 12 minutes, 14.. players

ac_elevation  :15: 8: 1: 2: 5: 2     // ktf, 8 minutes, 2..5 players
ac_elevation  : 5:12: 1: 6:10: 1     // ctf, 12 minutes, 6..10 players
ac_elevation  :14:10: 1:11:14: 0     // tktf, 10 minutes, 11..14 players

ac_desert     : 9: 8: 1: 0: 5: 0     // lss, 8 minutes, 0..5 players

ac_toxic      : 2: 8: 1: 2: 5: 1     // dm, 8 minutes, 2..5 players
ac_toxic      : 0:10: 1: 6: 0: 0     // tdm, 10 minutes, 6.. players

ac_mines      :15: 6: 1: 2: 3: 2     // ktf, 6 minutes, 2..3 players
ac_mines      : 5:12: 1: 4:11: 1     // ctf, 12 minutes, 4..11 players
ac_mines      :13:10: 1:12:13: 0     // htf, 10 minutes, 12..13 players

ac_scaffold   :11: 8: 1: 6: 9: 0     // tosok, 8 minutes, 6..9 players

ac_urban      : 0:10: 1: 5: 0: 0     // tdm, 10 minutes, 5.. players

ac_desert3    : 5:12: 1: 4:10: 1     // ctf, 12 minutes, 4..10 players
ac_desert3    :14:10: 1:11: 0: 1     // tktf, 10 minutes, 11.. players

ac_depot      : 5:12: 1: 4:12: 0     // ctf, 12 minutes, 4..12 players

ac_desert2    : 0:10: 1: 3: 7: 2     // tdm, 10 minutes, 3..7 players
ac_desert2    :11: 8: 1: 8:10: 1     // tosok, 8 minutes, 8..10 players
ac_desert2    :13:10: 1:11: 0: 0     // htf, 10 minutes, 11.. players

// one short game on ac_snow, either osok or deathmatch (pseudorandom)
ac_snow       :10: 6: 1: 0: 1: 7     // osok, 6 minutes, 0..1 players
ac_snow       : 2: 6: 1: 2: 2: 6     // dm, 6 minutes, 2 players
ac_snow       :10: 6: 1: 3: 3: 5     // osok, 6 minutes, 3 players
ac_snow       : 2: 6: 1: 4: 4: 4     // dm, 6 minutes, 4 players
ac_snow       :10: 6: 1: 5: 5: 3     // osok, 6 minutes, 5 players
ac_snow       : 2: 6: 1: 6: 6: 2     // dm, 6 minutes, 6 players
ac_snow       :10: 6: 1: 7: 7: 1     // osok, 6 minutes, 7 players
ac_snow       : 0: 6: 1: 8:11: 0     // tdm, 6 minutes, 8..11 players

ac_sunset     : 5:12: 1: 4:12: 0     // ctf, 12 minutes, 4..12 players

ac_complex    : 0:10: 1: 3:13: 0     // tdm, 10 minutes, 3..13 players

ac_aqueous    :15: 6: 1: 2: 3: 2     // ktf, 6 minutes, 2..3 players
ac_aqueous    : 5:12: 1: 4:11: 1     // ctf, 12 minutes, 4..11 players
ac_aqueous    :13:10: 1:12:13: 0     // htf, 10 minutes, 12..13 players

ac_arid       : 2: 8: 1: 2: 5: 1     // dm, 8 minutes, 2..5 players
ac_arid       : 0:10: 1: 6: 0: 0     // tdm, 10 minutes, 6.. players

ac_iceroad      : 5:10: 1: 5: 0: 0     // ctf, 10 minutes, 5.. players

ac_douze      :10: 6: 1: 5: 5: 3     // osok, 6 minutes, 5 players
ac_douze      : 2: 6: 1: 6: 6: 2     // dm, 6 minutes, 6 players

ac_gothic     :15: 6: 1: 2: 3: 2     // ktf, 6 minutes, 2..3 players
ac_gothic     : 5:12: 1: 4:11: 1     // ctf, 12 minutes, 4..11 players
ac_gothic     :13:10: 1:12:13: 0     // htf, 10 minutes, 12..13 players

ac_rattrap    : 2: 8: 1: 2: 5: 1     // dm, 8 minutes, 2..5 players
ac_rattrap    : 0:10: 1: 6: 0: 0     // tdm, 10 minutes, 6.. players

ac_arabian    :15: 6: 1: 2: 3: 2     // ktf, 6 minutes, 2..3 players
ac_arabian    : 5:12: 1: 4:11: 1     // ctf, 12 minutes, 4..11 players
ac_arabian    :13:10: 1:12:13: 0     // htf, 10 minutes, 12..13 players

ac_werk       :15: 6: 1: 2: 3: 2     // ktf, 6 minutes, 2..3 players
ac_werk       : 5:12: 1: 4:11: 1     // ctf, 12 minutes, 4..11 players
ac_werk       :13:10: 1:12:13: 0     // htf, 10 minutes, 12..13 players

// Change this file to make the map rotation different and add more..
// do only use standard maps and maps from your packages/maps/servermaps folder!

The first line in this case that allows 1 player is:

ac_scaffold   : 2: 8: 1: 0: 3: 1     // dm, 8 minutes, 0..3 players

So this should always be the first map/mode combination that a person will see upon entering the server.
Thanks given by:
#5
Thank you I understand, it's great
Thanks given by:
#6
Glad I could help :)
Thanks given by:
#7
(13 Apr 11, 01:52AM)VenteX Wrote: Glad I could help :)

:)
Thanks given by:
#8
(13 Apr 11, 01:44AM)VenteX Wrote: ...So this should always be the first map/mode combination that a person will see upon entering the server.
This isn't quite true. The maprot keeps going when the server empties. This means if there are two or more entries which accomodate for 0 or 1 player/s, the next one in the list will load on the next player join. In your example of the default maprot.cfg, if all players left the ac_scaffold game, the next maprot entry to apply would be this one:
ac_desert     : 2: 8: 1: 0: 4: 1     // dm, 8 minutes, 0..4 players
If you want only one map to be the 'join' map, make sure it's the only maprot entry for 0 or 1 player/s.
Thanks given by: