-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hidden threshold in the map generator? #2468
Comments
I don't see a hidden threshold for mountains. For forest, you can't go below 5%. You may be interested in the algorithm description if you want to achieve specific results. |
Ok, I checked the code. Code for percentage of forests is an absolute mess. I've seen messes in my life, but this one literally outmesses them all. I am not exaggerating. I will append a summary. As for mountains, right, it's this: Indeed, as you say, if steepness is set to zero, there should be no mountains on the map. Any idea why they are there? Theoretically, the fact that I removed all other terrain types except mountains and forests could mess things up. But I don't see how. And the mess with forest_pct:
|
I think you're seeing the effect of terrain assignment in the gaps between the normal mountains. This proceeds according to Table 11 (also see the text above). I'm afraid there is no way to produce an all-grass map with this algorithm (a single terrain can always be in the This being said, you could change the forest terrain to make it identical to grassland. |
Well, I could always simply remove it from the ruleset altogether. But I'd like to have one or two different types of terrain that appear as rare patches here and there, but then again, it's not that crucial. If it's that difficult to do, I'll think of something else. Thanks. |
If you want to tweak how the map generation worked, it's relatively straightforward to do so in lua. For example:
This will replace all mountains on the map with grassland. |
Again, I can remove all mountains by removing "Mountains" from the ruleset. I want to retain some. |
If you want to randomly retain some, you could use something like this: https://github.com/longturn/Sim/blob/266b88ce6f822745fabe10d754586accfd97b3a7/Sim06/script.lua#L124 |
When I set temperature = 0, amount of hills/mountains = 0 and wetness =100, I am still getting a number of hills and deserts.
When I set wetness = 0, I still get forests. See image. (No deserts and hills in the image because I removed them from the ruleset.)
I have a feeling there is a hidden threshold. If not, I'm looking for a way to exactly control the amount of some types of terrain, going from zero to all.
I tried playing with property-wet and property-mountainous, setting them to 0 or 100, but it didn't work.
Generators I used were Pseudo random height and Fractal height.
The text was updated successfully, but these errors were encountered: