Big settings refactor
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
scripts/
|
Dockerfile
|
||||||
|
justfile
|
||||||
|
|
||||||
ALttPRandomizer/appsettings.json
|
ALttPRandomizer/appsettings.json
|
||||||
ALttPRandomizer/appsettings.Development.json
|
ALttPRandomizer/appsettings.Development.json
|
||||||
@@ -10,4 +11,10 @@ ALttPRandomizer/[Bb]in
|
|||||||
*/DR_*
|
*/DR_*
|
||||||
*/ER_*
|
*/ER_*
|
||||||
*/OR_*
|
*/OR_*
|
||||||
*/data/base2current.json
|
*/GK_*
|
||||||
|
*.sfc
|
||||||
|
*_Spoiler.txt
|
||||||
|
|
||||||
|
!alttp.sfc
|
||||||
|
|
||||||
|
# */data/base2current.json
|
||||||
|
|||||||
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
* text=auto
|
||||||
16
.gitmodules
vendored
16
.gitmodules
vendored
@@ -1,12 +1,12 @@
|
|||||||
[submodule "ALttPDoorRandomizer"]
|
|
||||||
path = ALttPDoorRandomizer
|
|
||||||
url = https://github.com/ardnaxelarak/ALttPDoorRandomizer
|
|
||||||
[submodule "BaseRandomizer"]
|
[submodule "BaseRandomizer"]
|
||||||
path = BaseRandomizer
|
path = BaseRandomizer
|
||||||
url = https://github.com/ardnaxelarak/ALttPDoorRandomizer
|
url = https://git.gwaa.kiwi/alttpr-gwaa-kiwi/alttpr-python
|
||||||
|
branch = GwaaKiwi
|
||||||
[submodule "Apr2025Randomizer"]
|
[submodule "Apr2025Randomizer"]
|
||||||
path = Apr2025Randomizer
|
path = Apr2025Randomizer
|
||||||
url = https://github.com/ardnaxelarak/ALttPDoorRandomizer
|
url = https://git.gwaa.kiwi/alttpr-gwaa-kiwi/alttpr-python
|
||||||
[submodule "DungeonMapRandomizer"]
|
branch = apr_2025
|
||||||
path = DungeonMapRandomizer
|
[submodule "BetaRandomizer"]
|
||||||
url = git@github.com:ardnaxelarak/ALttPDoorRandomizer
|
path = BetaRandomizer
|
||||||
|
url = https://git.gwaa.kiwi/alttpr-gwaa-kiwi/alttpr-python
|
||||||
|
branch = DungeonMap
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
public static class JsonOptions {
|
public static class JsonOptions {
|
||||||
public static JsonSerializerOptions Default = new JsonSerializerOptions(JsonSerializerDefaults.Web) {
|
public static readonly JsonSerializerOptions Default = new JsonSerializerOptions(JsonSerializerDefaults.Web) {
|
||||||
PropertyNamingPolicy = JsonNamingPolicy.SnakeCaseLower,
|
PropertyNamingPolicy = JsonNamingPolicy.SnakeCaseLower,
|
||||||
NumberHandling = JsonNumberHandling.Strict,
|
NumberHandling = JsonNumberHandling.Strict,
|
||||||
}.WithStringEnum();
|
}.WithStringEnum();
|
||||||
|
|||||||
@@ -26,20 +26,24 @@
|
|||||||
public Goal Goal { get; set; } = Goal.Ganon;
|
public Goal Goal { get; set; } = Goal.Ganon;
|
||||||
|
|
||||||
[SettingName("crystals_ganon")]
|
[SettingName("crystals_ganon")]
|
||||||
|
[IgnoreSetting(Apr2025)]
|
||||||
public EntryRequirement CrystalsGanon { get; set; } = EntryRequirement.Crystals7;
|
public EntryRequirement CrystalsGanon { get; set; } = EntryRequirement.Crystals7;
|
||||||
|
|
||||||
[SettingName("bosses_ganon")]
|
[SettingName("bosses_ganon")]
|
||||||
[NoSettingName([Apr2025, Base])]
|
[IgnoreSetting(Apr2025, Base)]
|
||||||
public BossRequirement BossesGanon { get; set; } = BossRequirement.Bosses8of10;
|
public BossRequirement BossesGanon { get; set; } = BossRequirement.Bosses8of10;
|
||||||
|
|
||||||
|
[NoSettingName]
|
||||||
|
[IgnoreSetting(Apr2025)]
|
||||||
|
public TriforceRequirement TriforcePieces { get; set; } = TriforceRequirement.Triforce20of30;
|
||||||
|
|
||||||
[SettingName("crystals_gt")]
|
[SettingName("crystals_gt")]
|
||||||
[JsonPropertyName("crystals_gt")]
|
[JsonPropertyName("crystals_gt")]
|
||||||
[NoSettingName([Apr2025])]
|
[IgnoreSetting(Apr2025)]
|
||||||
public EntryRequirement CrystalsGT { get; set; } = EntryRequirement.Crystals7;
|
public EntryRequirement CrystalsGT { get; set; } = EntryRequirement.Crystals7;
|
||||||
|
|
||||||
[SettingName("ganon_item")]
|
[SettingName("ganon_item")]
|
||||||
[RequiredSetting([Apr2025], GanonItem.Silver)]
|
[IgnoreSetting(Apr2025)]
|
||||||
[NoSettingName([Apr2025])]
|
|
||||||
public GanonItem GanonItem { get; set; } = GanonItem.Silver;
|
public GanonItem GanonItem { get; set; } = GanonItem.Silver;
|
||||||
|
|
||||||
[SettingName("shuffle")]
|
[SettingName("shuffle")]
|
||||||
@@ -47,32 +51,27 @@
|
|||||||
public EntranceShuffle EntranceShuffle { get; set; } = EntranceShuffle.Vanilla;
|
public EntranceShuffle EntranceShuffle { get; set; } = EntranceShuffle.Vanilla;
|
||||||
|
|
||||||
[NoSettingName]
|
[NoSettingName]
|
||||||
[RequiredSetting([Apr2025], LinksHouse.Vanilla)]
|
[IgnoreSetting(Apr2025)]
|
||||||
public LinksHouse LinksHouse { get; set; } = LinksHouse.Vanilla;
|
public LinksHouse LinksHouse { get; set; } = LinksHouse.Vanilla;
|
||||||
|
|
||||||
[SettingName("skullwoods")]
|
[SettingName("skullwoods")]
|
||||||
[RequiredSetting([Apr2025], SkullWoodsShuffle.Original)]
|
[IgnoreSetting(Apr2025)]
|
||||||
[NoSettingName([Apr2025])]
|
public SkullWoodsShuffle SkullWoods { get; set; } = SkullWoodsShuffle.Default;
|
||||||
public SkullWoodsShuffle SkullWoods { get; set; } = SkullWoodsShuffle.Original;
|
|
||||||
|
|
||||||
[SettingName("linked_drops")]
|
[SettingName("linked_drops")]
|
||||||
[RequiredSetting([Apr2025], LinkedDrops.Unset)]
|
[IgnoreSetting(Apr2025)]
|
||||||
[NoSettingName([Apr2025])]
|
public LinkedDrops LinkedDrops { get; set; } = LinkedDrops.Default;
|
||||||
public LinkedDrops LinkedDrops { get; set; } = LinkedDrops.Unset;
|
|
||||||
|
|
||||||
[SettingName("shufflebosses")]
|
[SettingName("shufflebosses")]
|
||||||
[RequiredSetting([Apr2025], BossShuffle.Vanilla)]
|
[IgnoreSetting(Apr2025)]
|
||||||
[NoSettingName([Apr2025])]
|
|
||||||
public BossShuffle BossShuffle { get; set; } = BossShuffle.Vanilla;
|
public BossShuffle BossShuffle { get; set; } = BossShuffle.Vanilla;
|
||||||
|
|
||||||
[SettingName("shuffleenemies")]
|
[SettingName("shuffleenemies")]
|
||||||
[RequiredSetting([Apr2025], EnemyShuffle.Vanilla)]
|
[IgnoreSetting(Apr2025)]
|
||||||
[NoSettingName([Apr2025])]
|
|
||||||
public EnemyShuffle EnemyShuffle { get; set; } = EnemyShuffle.Vanilla;
|
public EnemyShuffle EnemyShuffle { get; set; } = EnemyShuffle.Vanilla;
|
||||||
|
|
||||||
[SettingName("shuffle_damage_table")]
|
[SettingName("shuffle_damage_table")]
|
||||||
[RequiredSetting([Apr2025], DamageTableShuffle.Vanilla)]
|
[IgnoreSetting(Apr2025)]
|
||||||
[NoSettingName([Apr2025])]
|
|
||||||
public DamageTableShuffle DamageTableShuffle { get; set; } = DamageTableShuffle.Vanilla;
|
public DamageTableShuffle DamageTableShuffle { get; set; } = DamageTableShuffle.Vanilla;
|
||||||
|
|
||||||
[SettingName("keyshuffle")]
|
[SettingName("keyshuffle")]
|
||||||
@@ -81,44 +80,37 @@
|
|||||||
public KeyLocations SmallKeys { get; set; } = KeyLocations.Dungeon;
|
public KeyLocations SmallKeys { get; set; } = KeyLocations.Dungeon;
|
||||||
|
|
||||||
[SettingName("bigkeyshuffle")]
|
[SettingName("bigkeyshuffle")]
|
||||||
[RequiredSetting([Apr2025], DungeonItemLocations.Dungeon)]
|
[IgnoreSetting(Apr2025)]
|
||||||
[NoSettingName([Apr2025])]
|
|
||||||
public DungeonItemLocations BigKeys { get; set; } = DungeonItemLocations.Dungeon;
|
public DungeonItemLocations BigKeys { get; set; } = DungeonItemLocations.Dungeon;
|
||||||
|
|
||||||
[SettingName("mapshuffle")]
|
[SettingName("mapshuffle")]
|
||||||
[RequiredSetting([Apr2025], DungeonItemLocations.Dungeon)]
|
[IgnoreSetting(Apr2025)]
|
||||||
[NoSettingName([Apr2025])]
|
|
||||||
public DungeonItemLocations Maps { get; set; } = DungeonItemLocations.Dungeon;
|
public DungeonItemLocations Maps { get; set; } = DungeonItemLocations.Dungeon;
|
||||||
|
|
||||||
[SettingName("compassshuffle")]
|
[SettingName("compassshuffle")]
|
||||||
[RequiredSetting([Apr2025], DungeonItemLocations.Dungeon)]
|
[IgnoreSetting(Apr2025)]
|
||||||
[NoSettingName([Apr2025])]
|
|
||||||
public DungeonItemLocations Compasses { get; set; } = DungeonItemLocations.Dungeon;
|
public DungeonItemLocations Compasses { get; set; } = DungeonItemLocations.Dungeon;
|
||||||
|
|
||||||
[SettingName("showloot")]
|
[SettingName("showloot")]
|
||||||
[RequiredSetting([Apr2025, Base], ShowLoot.Never)]
|
[IgnoreSetting(Apr2025, Base)]
|
||||||
[NoSettingName([Apr2025, Base])]
|
|
||||||
public ShowLoot ShowLoot { get; set; } = ShowLoot.Never;
|
public ShowLoot ShowLoot { get; set; } = ShowLoot.Never;
|
||||||
|
|
||||||
[SettingName("showmap")]
|
[SettingName("showmap")]
|
||||||
[RequiredSetting([Apr2025, Base], ShowMap.Map)]
|
[IgnoreSetting(Apr2025, Base)]
|
||||||
[NoSettingName([Apr2025, Base])]
|
|
||||||
public ShowMap ShowMap { get; set; } = ShowMap.Map;
|
public ShowMap ShowMap { get; set; } = ShowMap.Map;
|
||||||
|
|
||||||
[NoSettingName]
|
[NoSettingName]
|
||||||
[RequiredSetting([Apr2025], ShopShuffle.Vanilla)]
|
[IgnoreSetting(Apr2025)]
|
||||||
public ShopShuffle ShopShuffle { get; set; } = ShopShuffle.Vanilla;
|
public ShopShuffle ShopShuffle { get; set; } = ShopShuffle.Vanilla;
|
||||||
|
|
||||||
[RequiredSetting([Apr2025], DropShuffle.Vanilla)]
|
[IgnoreSetting(Apr2025)]
|
||||||
[NoSettingName([Apr2025])]
|
|
||||||
public DropShuffle DropShuffle { get; set; } = DropShuffle.Vanilla;
|
public DropShuffle DropShuffle { get; set; } = DropShuffle.Vanilla;
|
||||||
|
|
||||||
[RequiredSetting([Apr2025], Pottery.Vanilla)]
|
[SettingName("pottery")]
|
||||||
[NoSettingName([Apr2025])]
|
[IgnoreSetting(Apr2025)]
|
||||||
public Pottery Pottery { get; set; } = Pottery.Vanilla;
|
public PotShuffle PotShuffle { get; set; } = PotShuffle.Vanilla;
|
||||||
|
|
||||||
[RequiredSetting([Apr2025], PrizeShuffle.Vanilla)]
|
[IgnoreSetting(Apr2025)]
|
||||||
[NoSettingName([Apr2025])]
|
|
||||||
public PrizeShuffle PrizeShuffle { get; set; } = PrizeShuffle.Vanilla;
|
public PrizeShuffle PrizeShuffle { get; set; } = PrizeShuffle.Vanilla;
|
||||||
|
|
||||||
[NoSettingName]
|
[NoSettingName]
|
||||||
@@ -126,57 +118,55 @@
|
|||||||
public BootsSettings Boots { get; set; } = BootsSettings.Normal;
|
public BootsSettings Boots { get; set; } = BootsSettings.Normal;
|
||||||
|
|
||||||
[NoSettingName]
|
[NoSettingName]
|
||||||
[RequiredSetting([Apr2025], FluteSettings.Normal)]
|
[IgnoreSetting(Apr2025)]
|
||||||
public FluteSettings Flute { get; set; } = FluteSettings.Normal;
|
public FluteSettings Flute { get; set; } = FluteSettings.Normal;
|
||||||
|
|
||||||
[SettingName("dark_rooms")]
|
[SettingName("dark_rooms")]
|
||||||
[RequiredSetting([Apr2025], DarkRoomSettings.RequireLamp)]
|
[IgnoreSetting(Apr2025)]
|
||||||
[NoSettingName([Apr2025])]
|
|
||||||
public DarkRoomSettings DarkRooms { get; set; } = DarkRoomSettings.RequireLamp;
|
public DarkRoomSettings DarkRooms { get; set; } = DarkRoomSettings.RequireLamp;
|
||||||
|
|
||||||
[NoSettingName]
|
[NoSettingName]
|
||||||
[RequiredSetting([Apr2025], BombSettings.Normal)]
|
[IgnoreSetting(Apr2025)]
|
||||||
public BombSettings Bombs { get; set; } = BombSettings.Normal;
|
public BombSettings Bombs { get; set; } = BombSettings.Normal;
|
||||||
|
|
||||||
[NoSettingName]
|
[NoSettingName]
|
||||||
[RequiredSetting([Apr2025], BookSettings.Normal)]
|
[IgnoreSetting(Apr2025)]
|
||||||
public BookSettings Book { get; set; } = BookSettings.Normal;
|
public BookSettings Book { get; set; } = BookSettings.Normal;
|
||||||
|
|
||||||
[NoSettingName]
|
[NoSettingName]
|
||||||
[RequiredSetting([Apr2025], MirrorSettings.Normal)]
|
[IgnoreSetting(Apr2025)]
|
||||||
public MirrorSettings Mirror { get; set; } = MirrorSettings.Normal;
|
public MirrorSettings Mirror { get; set; } = MirrorSettings.Normal;
|
||||||
|
|
||||||
[SettingName("door_shuffle")]
|
[SettingName("door_shuffle")]
|
||||||
[RequiredSetting([Apr2025], DoorShuffle.Vanilla)]
|
[IgnoreSetting(Apr2025)]
|
||||||
[NoSettingName([Apr2025])]
|
|
||||||
public DoorShuffle DoorShuffle { get; set; } = DoorShuffle.Vanilla;
|
public DoorShuffle DoorShuffle { get; set; } = DoorShuffle.Vanilla;
|
||||||
|
|
||||||
[SettingName("intensity")]
|
[SettingName("intensity")]
|
||||||
[NoSettingName([Apr2025])]
|
[IgnoreSetting(Apr2025)]
|
||||||
public DoorLobbies Lobbies { get; set; } = DoorLobbies.Vanilla;
|
public DoorLobbies Lobbies { get; set; } = DoorLobbies.Vanilla;
|
||||||
|
|
||||||
[SettingName("door_type_mode")]
|
[SettingName("door_type_mode")]
|
||||||
[NoSettingName([Apr2025])]
|
[IgnoreSetting(Apr2025)]
|
||||||
public DoorTypeMode DoorTypeMode { get; set; } = DoorTypeMode.Big;
|
public DoorTypeMode DoorTypeMode { get; set; } = DoorTypeMode.Big;
|
||||||
|
|
||||||
[SettingName("trap_door_mode")]
|
[SettingName("trap_door_mode")]
|
||||||
[NoSettingName([Apr2025])]
|
[IgnoreSetting(Apr2025)]
|
||||||
public TrapDoorMode TrapDoorMode { get; set; } = TrapDoorMode.Optional;
|
public TrapDoorMode TrapDoorMode { get; set; } = TrapDoorMode.Some;
|
||||||
|
|
||||||
[NoSettingName]
|
[NoSettingName]
|
||||||
[RequiredSetting([Apr2025], FollowerShuffle.Vanilla)]
|
[IgnoreSetting(Apr2025)]
|
||||||
public FollowerShuffle FollowerShuffle { get; set; } = FollowerShuffle.Vanilla;
|
public FollowerShuffle FollowerShuffle { get; set; } = FollowerShuffle.Vanilla;
|
||||||
|
|
||||||
[SettingName("ow_fluteshuffle")]
|
[SettingName("ow_fluteshuffle")]
|
||||||
[NoSettingName([Apr2025])]
|
[IgnoreSetting(Apr2025)]
|
||||||
public FluteShuffle FluteShuffle { get; set; } = FluteShuffle.Vanilla;
|
public FluteShuffle FluteShuffle { get; set; } = FluteShuffle.Vanilla;
|
||||||
|
|
||||||
[NoSettingName]
|
[NoSettingName]
|
||||||
[RequiredSetting([Apr2025], TileSwap.Vanilla)]
|
[IgnoreSetting(Apr2025)]
|
||||||
public TileSwap TileSwap { get; set; } = TileSwap.Vanilla;
|
public TileSwap TileSwap { get; set; } = TileSwap.Vanilla;
|
||||||
|
|
||||||
[SettingName("damage_challenge")]
|
[SettingName("damage_challenge")]
|
||||||
[NoSettingName([Apr2025])]
|
[IgnoreSetting(Apr2025)]
|
||||||
public DamageChallengeMode DamageChallenge { get; set; } = DamageChallengeMode.Normal;
|
public DamageChallengeMode DamageChallenge { get; set; } = DamageChallengeMode.Normal;
|
||||||
|
|
||||||
[NoSettingName]
|
[NoSettingName]
|
||||||
@@ -187,7 +177,7 @@
|
|||||||
{
|
{
|
||||||
[RandomizerName(BaseRandomizer.Name)] Base,
|
[RandomizerName(BaseRandomizer.Name)] Base,
|
||||||
[RandomizerName(Apr2025Randomizer.Name)] Apr2025,
|
[RandomizerName(Apr2025Randomizer.Name)] Apr2025,
|
||||||
[RandomizerName(BaseRandomizer.DungeonMapName)] DungeonMap,
|
[RandomizerName(BaseRandomizer.BetaName)] Beta,
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum RaceMode {
|
public enum RaceMode {
|
||||||
@@ -234,6 +224,14 @@
|
|||||||
Random,
|
Random,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum TriforceRequirement {
|
||||||
|
[JsonStringEnumMemberName("8of10")] [AdditionalSetting("--triforce_goal=8", "--triforce_pool=10")] Triforce8of10,
|
||||||
|
[JsonStringEnumMemberName("20of30")] [AdditionalSetting("--triforce_goal=20", "--triforce_pool=30")] Triforce20of30,
|
||||||
|
[JsonStringEnumMemberName("67of100")] [AdditionalSetting("--triforce_goal=67", "--triforce_pool=100")] Triforce67of100,
|
||||||
|
[JsonStringEnumMemberName("125of175")] [AdditionalSetting("--triforce_goal=125", "--triforce_pool=175")] Triforce125of175,
|
||||||
|
[JsonStringEnumMemberName("400of500")] [AdditionalSetting("--triforce_goal=400", "--triforce_pool=500")] Triforce400of500,
|
||||||
|
}
|
||||||
|
|
||||||
public enum BossRequirement {
|
public enum BossRequirement {
|
||||||
[JsonStringEnumMemberName("0of10")] [SettingName("0")] Bosses0of10,
|
[JsonStringEnumMemberName("0of10")] [SettingName("0")] Bosses0of10,
|
||||||
[JsonStringEnumMemberName("1of10")] [SettingName("1")] Bosses1of10,
|
[JsonStringEnumMemberName("1of10")] [SettingName("1")] Bosses1of10,
|
||||||
@@ -294,14 +292,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
public enum SkullWoodsShuffle {
|
public enum SkullWoodsShuffle {
|
||||||
Original,
|
[SettingName("original")] Default,
|
||||||
Restricted,
|
[SettingName("restricted")] VanillaDrops,
|
||||||
Loose,
|
Loose,
|
||||||
FollowLinked,
|
[SettingName("follow_linked")] Chaos,
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum LinkedDrops {
|
public enum LinkedDrops {
|
||||||
Unset,
|
[SettingName("unset")] Default,
|
||||||
Linked,
|
Linked,
|
||||||
Independent,
|
Independent,
|
||||||
}
|
}
|
||||||
@@ -349,7 +347,7 @@
|
|||||||
Underworld,
|
Underworld,
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum Pottery {
|
public enum PotShuffle {
|
||||||
[SettingName("none")] Vanilla,
|
[SettingName("none")] Vanilla,
|
||||||
[AdditionalSetting("--colorizepots")] Keys,
|
[AdditionalSetting("--colorizepots")] Keys,
|
||||||
[AdditionalSetting("--colorizepots")] Cave,
|
[AdditionalSetting("--colorizepots")] Cave,
|
||||||
@@ -358,7 +356,7 @@
|
|||||||
[AdditionalSetting("--colorizepots")] Clustered,
|
[AdditionalSetting("--colorizepots")] Clustered,
|
||||||
[AdditionalSetting("--colorizepots")] NonEmpty,
|
[AdditionalSetting("--colorizepots")] NonEmpty,
|
||||||
[AdditionalSetting("--colorizepots")] Dungeon,
|
[AdditionalSetting("--colorizepots")] Dungeon,
|
||||||
Lottery,
|
[SettingName("lottery")] All,
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum PrizeShuffle {
|
public enum PrizeShuffle {
|
||||||
@@ -405,7 +403,7 @@
|
|||||||
[SettingName("always_light_cone")] AlwaysLightCone,
|
[SettingName("always_light_cone")] AlwaysLightCone,
|
||||||
[SettingName("no_dark_rooms")] NoDarkRooms,
|
[SettingName("no_dark_rooms")] NoDarkRooms,
|
||||||
[SettingName("require_lamp")] [AddStartingItems("Lamp")] StartingLamp,
|
[SettingName("require_lamp")] [AddStartingItems("Lamp")] StartingLamp,
|
||||||
[SettingName("always_in_logic")] AlwaysInLogic,
|
[SettingName("always_in_logic")] DarkInLogic,
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum BombSettings {
|
public enum BombSettings {
|
||||||
@@ -440,7 +438,7 @@
|
|||||||
|
|
||||||
public enum TrapDoorMode {
|
public enum TrapDoorMode {
|
||||||
Vanilla,
|
Vanilla,
|
||||||
Optional,
|
[SettingName("optional")] Some,
|
||||||
Boss,
|
Boss,
|
||||||
[SettingName("oneway")] RemoveAll,
|
[SettingName("oneway")] RemoveAll,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,11 +4,15 @@
|
|||||||
|
|
||||||
public class ServiceOptions {
|
public class ServiceOptions {
|
||||||
public string Baserom { get; set; } = null!;
|
public string Baserom { get; set; } = null!;
|
||||||
public string PythonPath { get; set; } = null!;
|
|
||||||
public string FlipsPath { get; set; } = null!;
|
public string FlipsPath { get; set; } = null!;
|
||||||
public IList<string> AllowedCors { get; set; } = new List<string>();
|
public List<string> AllowedCors { get; set; } = [];
|
||||||
public AzureSettings AzureSettings { get; set; } = new AzureSettings();
|
public AzureSettings AzureSettings { get; set; } = new();
|
||||||
public IDictionary<string, string> RandomizerPaths { get; set; } = new Dictionary<string, string>();
|
public Dictionary<string, GeneratorSettings> Generators { get; set; } = new();
|
||||||
|
}
|
||||||
|
|
||||||
|
public class GeneratorSettings {
|
||||||
|
public string WorkingDirectory { get; set; } = null!;
|
||||||
|
public List<string> RandomizerCommand { get; set; } = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AzureSettings {
|
public class AzureSettings {
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
builder.Services.AddSingleton<ShutdownHandler>();
|
builder.Services.AddSingleton<ShutdownHandler>();
|
||||||
|
|
||||||
builder.Services.AddKeyedScoped<IRandomizer, BaseRandomizer>(BaseRandomizer.Name);
|
builder.Services.AddKeyedScoped<IRandomizer, BaseRandomizer>(BaseRandomizer.Name);
|
||||||
builder.Services.AddKeyedScoped<IRandomizer, BaseRandomizer>(BaseRandomizer.DungeonMapName);
|
builder.Services.AddKeyedScoped<IRandomizer, BaseRandomizer>(BaseRandomizer.BetaName);
|
||||||
builder.Services.AddKeyedScoped<IRandomizer, Apr2025Randomizer>(Apr2025Randomizer.Name);
|
builder.Services.AddKeyedScoped<IRandomizer, Apr2025Randomizer>(Apr2025Randomizer.Name);
|
||||||
builder.Services.AddScoped<BaseRandomizer>();
|
builder.Services.AddScoped<BaseRandomizer>();
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
@@ -40,15 +41,14 @@
|
|||||||
public async Task Randomize(string id, SeedSettings settings, bool uploadSettings = true) {
|
public async Task Randomize(string id, SeedSettings settings, bool uploadSettings = true) {
|
||||||
Logger.LogDebug("Recieved request for id {id} to randomize settings {@settings}", id, settings);
|
Logger.LogDebug("Recieved request for id {id} to randomize settings {@settings}", id, settings);
|
||||||
|
|
||||||
var start = new ProcessStartInfo() {
|
var generatorSettings = this.Configuration.Generators[Name];
|
||||||
FileName = Configuration.PythonPath,
|
var start = new ProcessStartInfo(generatorSettings.RandomizerCommand[0], generatorSettings.RandomizerCommand.Skip(1)) {
|
||||||
WorkingDirectory = Configuration.RandomizerPaths[Name],
|
WorkingDirectory = generatorSettings.WorkingDirectory,
|
||||||
RedirectStandardOutput = true,
|
RedirectStandardOutput = true,
|
||||||
RedirectStandardError = true,
|
RedirectStandardError = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
var args = start.ArgumentList;
|
var args = start.ArgumentList;
|
||||||
args.Add("EntranceRandomizer.py");
|
|
||||||
args.Add("--rom");
|
args.Add("--rom");
|
||||||
args.Add(Configuration.Baserom);
|
args.Add(Configuration.Baserom);
|
||||||
|
|
||||||
@@ -58,15 +58,11 @@
|
|||||||
args.Add("--outputname");
|
args.Add("--outputname");
|
||||||
args.Add(id);
|
args.Add(id);
|
||||||
|
|
||||||
args.Add("--json_spoiler");
|
|
||||||
|
|
||||||
args.Add("--quickswap");
|
|
||||||
|
|
||||||
foreach (var arg in SettingsProcessor.GetSettings(Instance, settings)) {
|
foreach (var arg in SettingsProcessor.GetSettings(Instance, settings)) {
|
||||||
args.Add(arg);
|
args.Add(arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger.LogInformation("Randomizing with args: {args}", string.Join(" ", args));
|
Logger.LogInformation("Randomizing {id} with command: {command} {args}", id, start.FileName, string.Join(" ", args.Select(arg => arg.Contains(" ") ? $"\"{arg}\"" : arg)));
|
||||||
|
|
||||||
var generating = string.Format("{0}/generating", id);
|
var generating = string.Format("{0}/generating", id);
|
||||||
await AzureStorage.UploadFile(generating, BinaryData.Empty);
|
await AzureStorage.UploadFile(generating, BinaryData.Empty);
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
public class BaseRandomizer : IRandomizer {
|
public class BaseRandomizer : IRandomizer {
|
||||||
public const string Name = "base";
|
public const string Name = "base";
|
||||||
public const string DungeonMapName = "dungeon_map";
|
public const string BetaName = "beta";
|
||||||
|
|
||||||
public const int MULTI_TRIES = 100;
|
public const int MULTI_TRIES = 100;
|
||||||
public const int SINGLE_TRIES = 5;
|
public const int SINGLE_TRIES = 5;
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private IList<string> GetArgs(SeedSettings settings) {
|
private List<string> GetArgs(SeedSettings settings) {
|
||||||
var args = new List<string>() {
|
var args = new List<string>() {
|
||||||
"--reduce_flashing",
|
"--reduce_flashing",
|
||||||
"--quickswap",
|
"--quickswap",
|
||||||
@@ -73,26 +73,25 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (settings.DoorShuffle != DoorShuffle.Vanilla || settings.DropShuffle != DropShuffle.Vanilla
|
if (settings.DoorShuffle != DoorShuffle.Vanilla || settings.DropShuffle != DropShuffle.Vanilla
|
||||||
|| (settings.Pottery != Pottery.Vanilla && settings.Pottery != Pottery.Cave)) {
|
|| (settings.PotShuffle != PotShuffle.Vanilla && settings.PotShuffle != PotShuffle.Cave)) {
|
||||||
args.Add("--dungeon_counters=on");
|
args.Add("--dungeon_counters=on");
|
||||||
}
|
}
|
||||||
|
|
||||||
return args;
|
return args;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task StartProcess(string randomizerName, string id, IEnumerable<string> settings, Func<int, Task> completed) {
|
private async Task StartProcess(string generatorName, string id, IEnumerable<string> settings, Func<int, Task> completed) {
|
||||||
var start = new ProcessStartInfo() {
|
var generatorSettings = this.Configuration.Generators[generatorName];
|
||||||
FileName = Configuration.PythonPath,
|
|
||||||
WorkingDirectory = Configuration.RandomizerPaths[randomizerName],
|
var start = new ProcessStartInfo(generatorSettings.RandomizerCommand[0], generatorSettings.RandomizerCommand.Skip(1)) {
|
||||||
|
WorkingDirectory = generatorSettings.WorkingDirectory,
|
||||||
RedirectStandardOutput = true,
|
RedirectStandardOutput = true,
|
||||||
RedirectStandardError = true,
|
RedirectStandardError = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
var args = start.ArgumentList;
|
var args = start.ArgumentList;
|
||||||
args.Add("DungeonRandomizer.py");
|
|
||||||
args.Add("--rom");
|
args.Add("--rom");
|
||||||
args.Add(Configuration.Baserom);
|
args.Add(Configuration.Baserom);
|
||||||
args.Add("--bps");
|
|
||||||
|
|
||||||
args.Add("--outputpath");
|
args.Add("--outputpath");
|
||||||
args.Add(Path.GetTempPath());
|
args.Add(Path.GetTempPath());
|
||||||
@@ -100,13 +99,11 @@
|
|||||||
args.Add("--outputname");
|
args.Add("--outputname");
|
||||||
args.Add(id);
|
args.Add(id);
|
||||||
|
|
||||||
args.Add("--spoiler=json");
|
|
||||||
|
|
||||||
foreach (var arg in settings) {
|
foreach (var arg in settings) {
|
||||||
args.Add(arg);
|
args.Add(arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger.LogInformation("Randomizing {id} with args: {args}", id, string.Join(" ", args.Select(arg => $"\"{arg}\"")));
|
Logger.LogInformation("Randomizing {id} with command: {command} {args}", id, start.FileName, string.Join(" ", args.Select(arg => arg.Contains(" ") ? $"\"{arg}\"" : arg)));
|
||||||
|
|
||||||
var generating = string.Format("{0}/generating", id);
|
var generating = string.Format("{0}/generating", id);
|
||||||
await AzureStorage.UploadFile(generating, BinaryData.Empty);
|
await AzureStorage.UploadFile(generating, BinaryData.Empty);
|
||||||
@@ -114,8 +111,16 @@
|
|||||||
var process = Process.Start(start) ?? throw new GenerationFailedException("Process failed to start.");
|
var process = Process.Start(start) ?? throw new GenerationFailedException("Process failed to start.");
|
||||||
process.EnableRaisingEvents = true;
|
process.EnableRaisingEvents = true;
|
||||||
|
|
||||||
process.OutputDataReceived += (_, args) => Logger.LogInformation("Randomizer {id} STDOUT: {output}", id, args.Data);
|
process.OutputDataReceived += (_, args) => {
|
||||||
process.ErrorDataReceived += (_, args) => Logger.LogInformation("Randomizer {id} STDERR: {output}", id, args.Data);
|
if (args.Data != null) {
|
||||||
|
Logger.LogInformation("Randomizer {id} STDOUT: {output}", id, args.Data);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
process.ErrorDataReceived += (_, args) => {
|
||||||
|
if (args.Data != null) {
|
||||||
|
Logger.LogInformation("Randomizer {id} STDERR: {output}", id, args.Data);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
process.BeginOutputReadLine();
|
process.BeginOutputReadLine();
|
||||||
process.BeginErrorReadLine();
|
process.BeginErrorReadLine();
|
||||||
@@ -270,7 +275,7 @@
|
|||||||
Logger.LogInformation("Finished uploading multiworld id {id}", id);
|
Logger.LogInformation("Finished uploading multiworld id {id}", id);
|
||||||
} finally {
|
} finally {
|
||||||
var generating = string.Format("{0}/generating", id);
|
var generating = string.Format("{0}/generating", id);
|
||||||
var deleteGenerating = AzureStorage.DeleteFile(generating);
|
await AzureStorage.DeleteFile(generating);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -293,11 +298,9 @@
|
|||||||
return JsonSerializer.SerializeToDocument(processed, JsonOptions.Default);
|
return JsonSerializer.SerializeToDocument(processed, JsonOptions.Default);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task GenerationFailed(string id, int exitcode) {
|
private async Task GenerationFailed(string id, int _) {
|
||||||
var generating = string.Format("{0}/generating", id);
|
var generating = string.Format("{0}/generating", id);
|
||||||
var deleteGenerating = AzureStorage.DeleteFile(generating);
|
await AzureStorage.DeleteFile(generating);
|
||||||
|
|
||||||
await Task.WhenAll(deleteGenerating);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,21 +42,27 @@
|
|||||||
internal class NoSettingNameAttribute : RandomizerSpecificAttribute {
|
internal class NoSettingNameAttribute : RandomizerSpecificAttribute {
|
||||||
public NoSettingNameAttribute() : base(null) { }
|
public NoSettingNameAttribute() : base(null) { }
|
||||||
|
|
||||||
public NoSettingNameAttribute(RandomizerInstance[] randomizers) : base(randomizers) { }
|
public NoSettingNameAttribute(params RandomizerInstance[] randomizers) : base(randomizers) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal class IgnoreSettingAttribute : RandomizerSpecificAttribute {
|
||||||
|
public IgnoreSettingAttribute(params RandomizerInstance[] randomizers) : base(randomizers) { }
|
||||||
|
}
|
||||||
|
|
||||||
|
[AttributeUsage(AttributeTargets.Field, AllowMultiple=true)]
|
||||||
internal class AdditionalSettingAttribute : RandomizerSpecificAttribute {
|
internal class AdditionalSettingAttribute : RandomizerSpecificAttribute {
|
||||||
public AdditionalSettingAttribute(string setting) : base(null) {
|
public AdditionalSettingAttribute(params string[] settings) : base(null) {
|
||||||
this.Setting = setting;
|
this.Settings = settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalSettingAttribute(RandomizerInstance[] randomizers, string setting) : base(randomizers) {
|
public AdditionalSettingAttribute(RandomizerInstance[] randomizers, params string[] settings) : base(randomizers) {
|
||||||
this.Setting = setting;
|
this.Settings = settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
public string Setting { get; }
|
public string[] Settings { get; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[AttributeUsage(AttributeTargets.Field, AllowMultiple=true)]
|
||||||
internal class AddStartingItemsAttribute : RandomizerSpecificAttribute {
|
internal class AddStartingItemsAttribute : RandomizerSpecificAttribute {
|
||||||
public AddStartingItemsAttribute(params string[] items) : base(null) {
|
public AddStartingItemsAttribute(params string[] items) : base(null) {
|
||||||
this.Items = items;
|
this.Items = items;
|
||||||
@@ -69,6 +75,7 @@
|
|||||||
public string[] Items { get; }
|
public string[] Items { get; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple=true)]
|
||||||
internal class RequiredSettingAttribute : RandomizerSpecificAttribute {
|
internal class RequiredSettingAttribute : RandomizerSpecificAttribute {
|
||||||
public RequiredSettingAttribute(params object[] values) : base(null) {
|
public RequiredSettingAttribute(params object[] values) : base(null) {
|
||||||
this.Values = values;
|
this.Values = values;
|
||||||
@@ -81,6 +88,7 @@
|
|||||||
public object[] Values { get; }
|
public object[] Values { get; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple=true)]
|
||||||
internal class ForbiddenSettingAttribute : RandomizerSpecificAttribute {
|
internal class ForbiddenSettingAttribute : RandomizerSpecificAttribute {
|
||||||
public ForbiddenSettingAttribute(params object[] values) : base(null) {
|
public ForbiddenSettingAttribute(params object[] values) : base(null) {
|
||||||
this.Values = values;
|
this.Values = values;
|
||||||
|
|||||||
@@ -13,11 +13,16 @@
|
|||||||
if (prop.Name == nameof(SeedSettings.PlayerName)) {
|
if (prop.Name == nameof(SeedSettings.PlayerName)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var value = prop.GetValue(settings) ?? throw new SettingsLookupException("settings.{0} not found", prop.Name);
|
var value = prop.GetValue(settings) ?? throw new SettingsLookupException("settings.{0} not found", prop.Name);
|
||||||
var valueFieldName = value.ToString() ?? throw new SettingsLookupException("settings.{0}.ToString() returned null", prop.Name);
|
var valueFieldName = value.ToString() ?? throw new SettingsLookupException("settings.{0}.ToString() returned null", prop.Name);
|
||||||
var fi = prop.PropertyType.GetField(valueFieldName, BindingFlags.Static | BindingFlags.Public)
|
var fi = prop.PropertyType.GetField(valueFieldName, BindingFlags.Static | BindingFlags.Public)
|
||||||
?? throw new SettingsLookupException("Could not get field info for value {0}.{1}", prop.PropertyType, valueFieldName);
|
?? throw new SettingsLookupException("Could not get field info for value {0}.{1}", prop.PropertyType, valueFieldName);
|
||||||
|
|
||||||
|
if (prop.GetCustomAttributes<IgnoreSettingAttribute>().Any(att => att.HasRandomizer(randomizer))) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (!prop.GetCustomAttributes<NoSettingNameAttribute>().Any(att => att.HasRandomizer(randomizer))) {
|
if (!prop.GetCustomAttributes<NoSettingNameAttribute>().Any(att => att.HasRandomizer(randomizer))) {
|
||||||
var settingName =
|
var settingName =
|
||||||
prop.GetCustomAttributes<SettingNameAttribute>()
|
prop.GetCustomAttributes<SettingNameAttribute>()
|
||||||
@@ -30,7 +35,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach (var att in fi.GetCustomAttributes<AdditionalSettingAttribute>().Where(att => att.HasRandomizer(randomizer))) {
|
foreach (var att in fi.GetCustomAttributes<AdditionalSettingAttribute>().Where(att => att.HasRandomizer(randomizer))) {
|
||||||
yield return att.Setting;
|
foreach (var setting in att.Settings) {
|
||||||
|
yield return setting;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var att in fi.GetCustomAttributes<AddStartingItemsAttribute>().Where(att => att.HasRandomizer(randomizer))) {
|
foreach (var att in fi.GetCustomAttributes<AddStartingItemsAttribute>().Where(att => att.HasRandomizer(randomizer))) {
|
||||||
@@ -79,11 +86,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SettingsLookupException : Exception {
|
public class SettingsLookupException(string message, params object?[] args) : Exception(string.Format(message, args)) { }
|
||||||
public SettingsLookupException(string message, params object?[] args) : base(string.Format(message, args)) { }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class InvalidSettingsException : Exception {
|
public class InvalidSettingsException(string message, params object?[] args) : Exception(string.Format(message, args)) { }
|
||||||
public InvalidSettingsException(string message, params object?[] args) : base(string.Format(message, args)) { }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"ALttPRandomizer": {
|
"ALttPRandomizer": {
|
||||||
"baserom": "/randomizer/alttp.sfc",
|
"baserom": "/baserom/alttp.sfc",
|
||||||
"pythonPath": "/usr/bin/python3",
|
|
||||||
"flipsPath": "/flips/flips",
|
"flipsPath": "/flips/flips",
|
||||||
"allowedCors": [
|
"allowedCors": [
|
||||||
"https://new.alttpr.gwaa.kiwi",
|
"https://new.alttpr.gwaa.kiwi",
|
||||||
@@ -12,10 +11,19 @@
|
|||||||
"clientId": "a48d5ae1-fa0a-4e33-9586-18c0eca0a28c",
|
"clientId": "a48d5ae1-fa0a-4e33-9586-18c0eca0a28c",
|
||||||
"blobstoreEndpoint": "https://alttprstorage.blob.core.windows.net/seeds"
|
"blobstoreEndpoint": "https://alttprstorage.blob.core.windows.net/seeds"
|
||||||
},
|
},
|
||||||
"randomizerPaths": {
|
"generators": {
|
||||||
"base": "/randomizer",
|
"base": {
|
||||||
"apr2025": "/apr2025_randomizer",
|
"workingDirectory": "/randomizer",
|
||||||
"dungeon_map": "/dungeon_map_randomizer"
|
"randomizerCommand": [ "uv", "run", "DungeonRandomizer.py", "--bps", "--spoiler=json" ],
|
||||||
|
},
|
||||||
|
"apr2025": {
|
||||||
|
"workingDirectory": "/apr2025_randomizer",
|
||||||
|
"randomizerCommand": [ "uv", "run", "EntranceRandomizer.py", "--json_spoiler" ],
|
||||||
|
},
|
||||||
|
"beta": {
|
||||||
|
"workingDirectory": "/beta_randomizer",
|
||||||
|
"randomizerCommand": [ "uv", "run", "DungeonRandomizer.py", "--bps", "--spoiler=json" ],
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Serilog": {
|
"Serilog": {
|
||||||
|
|||||||
Submodule Apr2025Randomizer updated: 84adf1dd89...ca9af423db
1
BetaRandomizer
Submodule
1
BetaRandomizer
Submodule
Submodule BetaRandomizer added at 0f7253c94e
34
Dockerfile
34
Dockerfile
@@ -20,37 +20,39 @@ EXPOSE 8080
|
|||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
|
|
||||||
RUN tdnf install -y python3
|
RUN tdnf install -y python3
|
||||||
|
RUN python3 -m ensurepip --default-pip --upgrade
|
||||||
|
RUN pip install uv
|
||||||
|
|
||||||
RUN mkdir -p /flips
|
RUN mkdir -p /flips
|
||||||
COPY --from=build /flips/Flips-198/flips /flips/flips
|
COPY --from=build /flips/Flips-198/flips /flips/flips
|
||||||
|
|
||||||
RUN mkdir -p /randomizer/data
|
COPY alttp.sfc /baserom/alttp.sfc
|
||||||
RUN touch /randomizer/data/base2current.json
|
|
||||||
RUN chown $APP_UID:$APP_UID /randomizer/data/base2current.json
|
|
||||||
|
|
||||||
RUN mkdir -p /dungeon_map_randomizer/data
|
|
||||||
RUN touch /dungeon_map_randomizer/data/base2current.json
|
|
||||||
RUN chown $APP_UID:$APP_UID /dungeon_map_randomizer/data/base2current.json
|
|
||||||
|
|
||||||
USER $APP_UID
|
|
||||||
|
|
||||||
RUN python3 -m ensurepip --upgrade
|
|
||||||
|
|
||||||
|
# base generator
|
||||||
WORKDIR /randomizer
|
WORKDIR /randomizer
|
||||||
COPY alttp.sfc .
|
|
||||||
|
|
||||||
COPY BaseRandomizer/resources/app/meta/manifests/pip_requirements.txt requirements.txt
|
COPY BaseRandomizer/pyproject.toml .
|
||||||
RUN python3 -m pip install -r requirements.txt
|
RUN uv sync
|
||||||
|
|
||||||
COPY BaseRandomizer/ .
|
COPY BaseRandomizer/ .
|
||||||
|
|
||||||
|
# apr2025 generator
|
||||||
WORKDIR /apr2025_randomizer
|
WORKDIR /apr2025_randomizer
|
||||||
|
|
||||||
|
COPY Apr2025Randomizer/pyproject.toml .
|
||||||
|
RUN uv sync
|
||||||
|
|
||||||
COPY Apr2025Randomizer/ .
|
COPY Apr2025Randomizer/ .
|
||||||
|
|
||||||
WORKDIR /dungeon_map_randomizer
|
# beta generator
|
||||||
|
WORKDIR /beta_randomizer
|
||||||
|
|
||||||
COPY DungeonMapRandomizer/ .
|
COPY BetaRandomizer/pyproject.toml .
|
||||||
|
RUN uv sync
|
||||||
|
|
||||||
|
COPY BetaRandomizer/ .
|
||||||
|
|
||||||
|
# web server
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app/publish .
|
COPY --from=build /app/publish .
|
||||||
COPY ALttPRandomizer/appsettings.Docker.json appsettings.json
|
COPY ALttPRandomizer/appsettings.Docker.json appsettings.json
|
||||||
|
|||||||
Submodule DungeonMapRandomizer deleted from f2d07c98b7
Reference in New Issue
Block a user