CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.33k stars 4.14k forks source link

Highways do not spawn #7534

Open Wuzzy2 opened 10 years ago

Wuzzy2 commented 10 years ago

Earlier versions had some highways. Version 0.A theoretically still has highways (the overmap tiles are still in), but apparently they never appear on the overmap anymore.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

i2amroy commented 10 years ago

Yeah, it's a problem with the road spawning algorithm, because currently highways only spawn as a replacement for roads.

illi-kun commented 7 years ago

@codemime could you comment this, as you a person who really familiar this mapgen system?

codemime commented 7 years ago

@illi-kun The issue is pretty much actual. I'd confirm what @i2amroy said two and a half years ago, but add that they are bugged as hell. The current mapged is supposed to replace "double roads" with highways, but it doesn't. I tried to spawn them manually (as an alternative connections), but "nothing" was spawned instead.

I'm gonna fix highways in a later PR. I have an idea of adding "weights" to roads: each time the pathfining algorithm uses a road, it increments its weight. When all of the overmap roads are finished, those that exceed a weight threshold, would turn into highways.

EDIT: I still explore and "learn" our mapgen. I wouldn't say I'm familiar with it yet.

Epictyphlosion commented 5 years ago

This is something that has bugged me when messing around with the debug mode. I always saw highway tiles, but no actual highways