FakeFishGames / Barotrauma

A 2D online multiplayer game taking place in a submarine travelling through the icy depths of Jupiter's moon Europa.
http://www.barotraumagame.com/
1.76k stars 406 forks source link

[Unstable] Bots have trouble with Return to Sub from cave #8132

Closed Udrakan closed 2 years ago

Udrakan commented 2 years ago

Description image

Bots in the cave are trying to push to the ceiling when return to sub is issued Version Unstable

ekqvist commented 2 years ago

It seems that this doesn't happen consistently.

Though sometimes characters seem to navigate away from inside the cave correctly but will stay at the waypoint outside of the cave instead of returning to the sub from there. And sometimes they start swimming towards a wall briefly before they start using the pathfinding.

I didn't manage to reproduce the issue of them continuously just swimming against walls inside a cave yet. But I will keep debugging this since there seem to be some oddities with it.

ekqvist commented 2 years ago

I tried to improve the return behavior in Regalis11/Barotrauma-development@849d55c by simplifying the objective logic a bit. The objective used to create separate sub-objectives for first navigating out of the cave and then navigating to the sub. Now it only creates a single sub-objective for that as the HumanAIController controls whether we should use pathing or just move directly towards the target.

Rokvach commented 2 years ago

I didn't spot any issues with any of the caves I tested, seems to be working correctly. Closing.