Rename generators
This commit is contained in:
4
.gitmodules
vendored
4
.gitmodules
vendored
@@ -1,7 +1,7 @@
|
||||
[submodule "BaseRandomizer"]
|
||||
path = BaseRandomizer
|
||||
url = https://git.gwaa.kiwi/alttpr-gwaa-kiwi/alttpr-python
|
||||
branch = GwaaKiwi
|
||||
branch = main
|
||||
[submodule "Apr2025Randomizer"]
|
||||
path = Apr2025Randomizer
|
||||
url = https://git.gwaa.kiwi/alttpr-gwaa-kiwi/alttpr-python
|
||||
@@ -9,4 +9,4 @@
|
||||
[submodule "BetaRandomizer"]
|
||||
path = BetaRandomizer
|
||||
url = https://git.gwaa.kiwi/alttpr-gwaa-kiwi/alttpr-python
|
||||
branch = DungeonMap
|
||||
branch = beta
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
|
||||
public enum RandomizerInstance {
|
||||
[GeneratorSettings("base", "OR_", "--bps", "--spoiler=json")] Base,
|
||||
[GeneratorSettings("beta", "OR_","--bps", "--spoiler=json")] Beta,
|
||||
[GeneratorSettings("beta", "GK_","--bps", "--spoiler=json")] Beta,
|
||||
[GeneratorSettings("apr2025", "ER_", requireFlips: true, "--json_spoiler")] Apr2025,
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
using Microsoft.Extensions.Options;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text.Json;
|
||||
@@ -120,7 +119,8 @@
|
||||
var args = this.GetArgs(settings);
|
||||
|
||||
if (settings.Randomizer != RandomizerInstance.Apr2025) {
|
||||
args.Append(string.Format("--tries={0}", SINGLE_TRIES));
|
||||
args.Add($"--tries={SINGLE_TRIES}");
|
||||
args.Add($"--rom_header={id}");
|
||||
}
|
||||
|
||||
var generatorSettings = this.SettingsProcessor.GetGeneratorSettings(settings.Randomizer);
|
||||
@@ -150,7 +150,8 @@
|
||||
var args = settings.Select((s, idx) => string.Format("--p{0}={1}", idx + 1, string.Join(" ", this.GetArgs(s))))
|
||||
.Append(string.Format("--names={0}", string.Join(",", names)))
|
||||
.Append(string.Format("--multi={0}", settings.Count))
|
||||
.Append(string.Format("--tries={0}", MULTI_TRIES));
|
||||
.Append(string.Format("--tries={0}", MULTI_TRIES))
|
||||
.Append(string.Format("--rom_header={0}", id));
|
||||
|
||||
await StartProcess(generatorSettings, id, args, async exitcode => {
|
||||
if (exitcode != 0) {
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
};
|
||||
process.ErrorDataReceived += (_, args) => {
|
||||
if (args.Data != null) {
|
||||
Logger.LogInformation("{prefix} STDERR: {output}", logPrefix, args.Data);
|
||||
Logger.LogInformation("{prefix} - STDERR: {output}", logPrefix, args.Data);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Submodule Apr2025Randomizer updated: ca9af423db...029e8de852
Submodule BaseRandomizer updated: ea8498f402...ec81a900ef
Submodule BetaRandomizer updated: 0f7253c94e...a019fa6478
Reference in New Issue
Block a user