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.73k stars 402 forks source link

[AI] Bots sometimes head to the Pirate Sub when giving the "Return to Sub" Order #7109

Closed Cusuno closed 2 years ago

Cusuno commented 2 years ago

Description When a pirate submarine is present in the level, giving bots the "Return to Sub" command sometimes makes them mistake the pirate sub for the player sub and they will try to head towards the pirate sub.

This originally occured while I was in a campaign level doing both a Pirate and a Cave mission. When ordering the bot to return back to the sub, I noticed they were going past my sub's airlock and went straight into the unknown. After bringing the bot back and checking the sonar, it turns out the direction they were heading to was actually one of the Pirate markers.

Steps To Reproduce

Version v0.15.12.0

ekqvist commented 2 years ago

Hi! Thanks for reporting the issue! Unfortunately, I couldn't reproduce it. The Return order (and the AI objective it uses) should only target a submarine that belongs to the same team as the order giver. There was a recent bug (#7019) that could cause problems for bots to enter the subs. It's possible that issue was also the root cause here. The most recent Unstable version should also now include a fix for that issue. So, it's possible it's been fixed. But let me know if the issue persists or if you find a way to reproduce it.

Cusuno commented 2 years ago

That bug was likely the issue then! I remember being attacked and I ordered the bot to return back to sub to find safety - only to see them move past the airlock. Perhaps the pirate sub being in the level was just a coincidence and made me think that would have been the root cause.

ekqvist commented 2 years ago

Yeah, that sounds likely. If it happens that you run into this issue again, please feel free to comment again on this issue or create another issue to report it. Thanks for your help either way!