godot-constraint-solving icon indicating copy to clipboard operation
godot-constraint-solving copied to clipboard

Why require probabilities > 0?

Open butlersrepos opened this issue 8 months ago • 3 comments

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.

butlersrepos avatar Feb 17 '25 04:02 butlersrepos