Closed ubertpendragon closed 11 months ago
To be honest, we with boiz were playing a plenty of missions last weekend - and noticed obnoxious amount of inaccessible caverns. I. e. radar locates minerals, we grope around landmass where minerals were detected for half an hour looking for entrance - and find that the only potential entry point is blocked by non-destructible ice (or we've failed to cause enough damage to break it). Something probably went wrong with level generation. No idea how to test it as player (i. e. without implementing some warnings and probably debug minimap markers in case of especially blatant terrain overlaps then rebuilding the client) though.
Possibly a bug or a symptom of one. Assigned to @Regalis11 to evaluate if it's worth looking into.
This happened because we'd use GetTooCloseCells to ensure the cave is wide enough. The problem was that the method did an AABB check of nearby cells, which could sometimes cause it to pick cells that are actually far away (measured from the edges), but whose AABB extends very close.
Tested in https://github.com/Regalis11/Barotrauma-development/commit/9bb93cdd2370c14a53e103ccf06e14354a06b881
Tried with steps and seed provided. Looked at some levels in MP with random seed. Generated many levels in leveleditor. No issues found
Disclaimers
What happened?
While testing things, I witnessed across a gigantic iceberg-cave. The ice covered the entirety of the cave
The cave isnt accessible so you can only see it with freecam
Reproduction steps
Hosted multiplayer cargo mission on unstable
Bug prevalence
Just once
Single player or multiplayer?
Multiplayer hosted from the in-game menu (= using a listen server)
-
No response
Version
Unstable (v1.1.3.0)
-
No response
Which operating system did you encounter this bug on?
Windows
Relevant error messages and crash reports
No response