Fair, skimming through your code I suspected that but haven't touched Lua in a few years. It's a hell of drug to come back to XD
Thanks for clarifying, no worries.
Main thing that annoys me with vanilla is the (non-starter) clusters right by spawn. I want to play "blind" without previewing the map so can't even look for a good seed. I think I'll just run a half-assed script at game start.
- request_to_generate_chunks() some radius from origin
- Connected component labeling to group patches in some radius from origin into a list of patches (exclude 150? tile radius near origin leave starter patches)
- Apply some sort of push force on the patch centroids away from the origin. Closer to origin, stronger the push
It's half assed so I probably won't bother accounting for ore that ends up underwater lol