Changes between Version 2 and Version 4 of Ticket #6521
- Timestamp:
- Apr 1, 2023, 2:53:40 PM (14 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6521
- Property Priority Should Have → Must Have
- Property Milestone Backlog → Alpha 27
-
Ticket #6521 – Description
v2 v4 3 3 4 4 ==== to reproduce 5 * Choose a random map that has several biomes, e.g. `Mainland`.6 * Start this map with the `-autostart-seed` flag from the command line e.g.5 * Choose a random map that has several biomes, e.g., `Mainland`. 6 * Start this map with the `-autostart-seed` flag from the command line, e.g. 7 7 {{{ 8 8 binaries/system/pyrogenesis -conf=mod.enabledmods:"public" -autostart="random/mainland" -autostart-seed=100 … … 13 13 Add a `-autostart-biome` flag to the command line. 14 14 15 - code snippet from Phab:D4117 16 17 {{{#!diff 18 --- a/source/ps/GameSetup/GameSetup.cpp 19 +++ b/source/ps/GameSetup/GameSetup.cpp 20 @@ -965,7 +965,12 @@ bool Autostart(const CmdLineArgs& args) 21 CStr num = args.Get("autostart-players"); 22 numPlayers = num.ToUInt(); 23 } 24 + // Set biome if wanted 25 + if (args.Has("autostart-biome")) 26 + { 27 + CStr biome = args.Get("autostart-biome"); 28 + Script::SetProperty(rq, settings, "Biome", biome); 29 + } 30 // Set up player data 31 for (size_t i = 0; i < numPlayers; ++i) 32 { 33 }}} 34 35 - tested with the following command 36 {{{#!sh 37 binaries/system/pyrogenesis -conf=mod.enabledmods:"public" -autostart="random/mainland" -autostart-seed=100 -autostart-biome="generic/nubia" 38 }}} 39 15 40 ==== related ticket 16 41 * #6471 (21/Mar/22)