Changes between Version 2 and Version 4 of Ticket #6521


Ignore:
Timestamp:
Apr 1, 2023, 2:53:40 PM (14 months ago)
Author:
Langbart
Comment:
  • Adding a code snippet for a possible solution from Phab:D4117 to fix the problem

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6521

    • Property Priority Should HaveMust Have
    • Property Milestone BacklogAlpha 27
  • Ticket #6521 – Description

    v2 v4  
    33
    44==== 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.
    77{{{
    88binaries/system/pyrogenesis -conf=mod.enabledmods:"public" -autostart="random/mainland" -autostart-seed=100
     
    1313Add a `-autostart-biome` flag to the command line.
    1414
     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
     37binaries/system/pyrogenesis -conf=mod.enabledmods:"public" -autostart="random/mainland" -autostart-seed=100 -autostart-biome="generic/nubia"
     38}}}
     39
    1540==== related ticket
    1641* #6471 (21/Mar/22)