Skip to content

Lists of Rooms inside the List in Theme Defintion causes strange generation #85

@Irbynx

Description

@Irbynx

Version Information: Custom Modpack, MC 1.20.1, Forge 47.3.0
Mod Version: 194

Was designing a custom theme for a modpack and ran into an issue where for every dungeon of that theme that I generated, all rooms of a particular type picked one specific structure (so all hallways picked exclusively "example_hallway_1" and all corners picked exclusively "example_corner_2") - once that structure was picked, the entire dungeon generated only that specific structure for the rest of the dungeon for that room type.

The reason seems to be in the way the generator picks random entries from a list of lists. If a list is formatted the following way - [["hallway_1", "hallway_2", "hallway_3" ... etc]], then the generator will exhibit this behavior - it will pick one entry in the list and then repeatedly use it for the rest of the dungeon. Having a list in the format of [["hallway_1"], ["hallway_2"], ["hallway_3"], ...etc] makes generator pick random options every time. After switching my theme's room definitions from the first format into the second one fixed the issue.

I think the expected behavior should be that both generate random every time, right? Otherwise using the sub-list functionality to, i.e have a list of "rare" rooms would cause these rare rooms to generate in an oversaturated way.

Map of the anomalously generated dungeon as viewed via Xaero's Map mod (note the obviously repeating structures being used):
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions