Warzone2100 / warzone2100

Command the forces of The Project in a battle to rebuild the world after mankind has been nearly destroyed by nuclear missiles. A 100% free and open source real-time strategy game for Windows, macOS, Linux, BSD+
https://wz2100.net
GNU General Public License v2.0
3.17k stars 525 forks source link

Entropy generator created base entirely sealed off by terrain #2251

Open 2404133455 opened 2 years ago

2404133455 commented 2 years ago

Describe the bug I've played several games using the Entropy generator and in some cases, it created terrain with sealed off features, like inaccessible oil derricks. However, on one occassion, it managed to create an entire sealed off enemy base, which said enemy was unable to leave at all (without using VTOLs), effectively resulting in that enemy being excluded for the entirety of the game until after being discovered. In every case that sealed off features were generated, it seemed to be because there was only one way out of a particular terrain, and that way out was erroneously created. Check the screenshots for a better (?) explanation of this issue.

To Reproduce Considering it's a random map generator, I'm not very sure what to put here. I'd put a map seed in here if there was a way to get it.

Expected behavior Bases and features not sealed off by terrain.

Screenshots or Videos Image 1: The "erroneous passage" generation. I suspect that the generator assumed that there was somehow a diagonal passage between the two tiles? This is the only "passage" from the enemy's base to the rest of the map. There are no others. The base is located on an elevated plateau, though, so they still managed to do some mortar bombardment on structures below them without a chance of retaliation from other parties. obraz

Image 2: The whole map's minimap. I apologize for the quality of the screenshot. obraz

OS: Windows 10 (x64) Game version: 4.1.3 AI that the map was tested with: NullBot

2404133455 commented 2 years ago

Thanks to the beta version being released, I have managed to acquire an example seed that shows this bug quite well. To the north-east is a power resource spawned on elevated, inaccessible terrain. To the south exists a sizable mound with lots of power resources. Both require VTOLs to be reached.

This seed does not contain any sealed off bases, but the fact that such vast terrain cannot be accessed is quite strange.

The seed is 1680003377