CleverRaven / CleverRaven/Cataclysm-DDA

Road gen artifacts

Open
#70,673 2 comments 0 reactions 0 assignees View on GitHub
(S1 - Need confirmation) <Bug> Map / Mapgen
Dominant language
C++
Stars
13.2k
Forks
4.6k
Avg merge
2d 1h
Merged PRs (30d)
205

Description

### Describe the bug

Sometimes road generates a lot of 4 tiles deep dead ends. Screenshots are of vertical type, but I've seen horizontal too

### Attach save file

[t-roads-trimmed.tar.gz](https://github.com/CleverRaven/Cataclysm-DDA/files/13843074/t-roads-trimmed.tar.gz)

### Steps to reproduce

1. make a new word
2. long range teleport and map reveal / wander until you stumble upon a row of very short T intersections

### Expected behavior

To roads to mostly make sense

### Screenshots

Overmap:
![image](https://github.com/CleverRaven/Cataclysm-DDA/assets/9906246/388f3ebd-b20d-4825-835d-a12cd36ac365)

Main view:
![image](https://github.com/CleverRaven/Cataclysm-DDA/assets/9906246/28408f60-1d2e-4b6a-9297-5bdb3cacabaf)

### Versions and configuration

- OS: Windows
- OS Version: 10.0.19045.3803 (22H2)
- Game Version: ee14785 [64-bit]
- Graphics Version: Tiles
- Game Language: English [en]
- Mods loaded: [
Dark Days Ahead [dda]
]

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Load the attached t-roads-trimmed.tar.gz save file and follow the reproduction steps by revealing or exploring the overmap until the short T-intersection row appears. Then locate the road-generation entry point and compare generated layouts with the screenshots; done means preventing repeated four-tile-deep dead ends while preserving sensible road connections.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.