So, since a map is loaded with the settings in it, are all the settings in it loaded after or prior to the map itself loading?
My real question, however, is if a different MAP_FILE (map 2) is included in the settings of the map currrently being loaded (map 1), which map is loaded?
That's an interesting question. Have you tried it locally? I'm sure you could answer your own question rather quickly. I'm guessing the 2nd map since <Settings> settings override all previous settings.
MAP_FILE map1 (get's loaded)
then reads <Settings>
then loads MAP_FILE map2
Tobe wrote:My real question, however, is if a different MAP_FILE (map 2) is included in the settings of the map currrently being loaded (map 1), which map is loaded?
That behavior is not specified and will likely end in disaster, like clients loading different maps than the server.
That's an interesting question. Have you tried it locally? I'm sure you could answer your own question rather quickly. I'm guessing the 2nd map since <Settings> settings override all previous settings.
MAP_FILE map1 (get's loaded)
then reads <Settings>
then loads MAP_FILE map2
That's my guess anyway.
I just realized map2 will have its own settings and tell it to load map 3, which will then load up map 3 and its settings to load map 4 a, all while still trying to run the first round. An intresting loop. I'll try this locally anyway and see what happens.
Z-Man wrote:
Tobe wrote:My real question, however, is if a different MAP_FILE (map 2) is included in the settings of the map currrently being loaded (map 1), which map is loaded?
That behavior is not specified and will likely end in disaster, like clients loading different maps than the server.
Epsy told me on irc today of hoop trying this before and running into problems. I guess this was it.
ok so basically i loaded a .cfg file that loads a map that loads the same .cfg file and saw what happened. Armagetron ended the loop on its own somewhat...
So what I think I picked up from this (hope its easy to understand)
/admin INCLUDE 1.cfg
Deleting objects/grid.... MAP_FILE changed to map1
*map1 includes 1.cfg's settings*
Creating Grid....
*1.cfg loads map1* MAP_FILE changed to map1
(Round 2 of 10)
*tronners play*
Deleting objects/grid....
*map finishes loading its own settings then loads 1.cfg*
*process repeats*
I think, if done well enough, I beleive I can change maps from the map_file itself using many .cfg files and maps.
Well Not entirely sure of your idea but let me say this, If a map is loaded and MAP_FILE gets changed after that round has started. any new client will be seeing the next map with players all over the place, going through walls and whatnot. The only way to get it to switch would be to somehow make it change at end of Round. At one time i though of adding DELAY_COMMAND -99 <setting would go here> to load settings at end of round in sty+ct. This still may get added, but again it is not in the official branch.
the best way to rotate maps is to use a simple script.