Skip to content

Why require probabilities > 0? #31

@butlersrepos

Description

@butlersrepos

I am leveraging the custom data probability to use WFC to generate various biomes, some of which are made from the same tilesets.

I do this by adding a new custom data for each biome, like "Plains", "WoodedPlains", "RiverPlains" and setting different probabilities per biome.
Example, water tiles in "Plains" may be rare (0.05) but in "RiverPlains" they would be higher (0.2).

My issue is that there is an assertion that all probabilities must be >0 however the Godot TileSet will default every tile to 0.0 if you add a new custom data layer as floats. I prefer this since I can start from a selective setup and enable tiles per biome as I design them.

So far I am just commenting out this assertion but I wanted your thoughts on if this was a reasonable approach that I'm employing? and if so should I just continue to leave this assertion commented out? :/

Thank you! This plugin is amazing and I'm having a huge amount of fun with it. I appreciate your efforts so much.

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