Allow to set the biome with the autostart command
issue
The -autostart-seed=SEED
flag allows a specific random map to be loaded, this is great for testing. The changes made with commit [26584] now also load different biomes. This forces you to load the same map multiple times to get the specific seed/ biome you want to test.
to reproduce
possible solution
Add a -autostart-biome
flag to the command line.
-
a
|
b
|
bool Autostart(const CmdLineArgs& args)
|
965 | 965 | CStr num = args.Get("autostart-players"); |
966 | 966 | numPlayers = num.ToUInt(); |
967 | 967 | } |
| 968 | // Set biome if wanted |
| 969 | if (args.Has("autostart-biome")) |
| 970 | { |
| 971 | CStr biome = args.Get("autostart-biome"); |
| 972 | Script::SetProperty(rq, settings, "Biome", biome); |
| 973 | } |
968 | 974 | // Set up player data |
969 | 975 | for (size_t i = 0; i < numPlayers; ++i) |
970 | 976 | { |
- tested with the following command
binaries/system/pyrogenesis -conf=mod.enabledmods:"public" -autostart="random/mainland" -autostart-seed=100 -autostart-biome="generic/nubia"
Change History
(6)
Milestone: |
Alpha 26 → Backlog
|
Description: |
modified (diff)
|
Priority: |
Should Have → Must Have
|
Description: |
modified (diff)
|
Milestone: |
Backlog → Alpha 27
|
Owner: |
set to Freagarach
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
link to related ticket