Cataclysm-dda: Cities generate in swamps, but fail to place buildings

Created on 27 Jul 2017  路  4Comments  路  Source: CleverRaven/Cataclysm-DDA

Expected Behavior

One of:

  • Cities do not generate in swamps
  • Cities generated in swamps "dry" them

Actual behavior

Cities generate in swamps and produce grids of roads, but fail to place buildings.

Steps to reproduce the behavior

  • Generate world with 16 city size, 0 city distance
  • Find a city generated very close to a swamp
<Bug> Map / Mapgen

All 4 comments

Screenshots from #21241:

Map picture:

Ground level picture:

Another weird but interesting mapgen problem:
Ground view:

Map view (center of screen is gas station in the middle of the road... while in the middle of the water):

Things are getting weird with mapgen recently, feel free to ask me to upload my save where all of these pictures came from. I saw the same gas station in another weird spot north of this one if it means anything. Im putting in a picture of that hotel that has a single road section that is literally in the middle of the river:

Id like to say that having the game gen marshlands inside a city would be nice. Bogs where development is so expensive that they dont happen outside real cities (that dont exist in cdda. 'cities' are really towns).

Some extra marshland not being citied is fine.

Seems to be unintentionally fixed by #21620. Roads now route around swamps and thus cities don't spawn within them. Spent some time warping around a map and couldn't find any instances of this where before they were fairly common.

Sorry, I have to step on your toes this time), the issue is still here (I'm quite sure of it). It's caused by the contradiction:

  • city streets are straight. They simply follow the straight line while they can and don't try to avoid swamps (land location includes forest_water) .
  • but adjacent houses check whether their terrain is settings.default_oter(never a swamp, usually field) and don't spawn on anything except it. They probably should spawn on land locations as well, but I'm reluctant to hardcode it.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ituluwituluwzev picture ituluwituluwzev  路  3Comments

jeremyshannon picture jeremyshannon  路  3Comments

PlasmaChroma picture PlasmaChroma  路  3Comments

Taberone picture Taberone  路  3Comments

Coolthulhu picture Coolthulhu  路  3Comments