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.72k stars 400 forks source link

Mission pings on the navigation terminal lie to you #11345

Closed Wheatley1001 closed 1 year ago

Wheatley1001 commented 1 year ago

Disclaimers

What happened?

This is not a new issue and has, in fact, existed for as long as I can remember. If a ticket already exists, I could not find it.

This issue typically occurs in multiplayer settings in P2P hosted servers. I do not know if this can be reproduced in singleplayer.

In any mission which has a ping on the navigation terminal, the distance shown blatantly lies to you. Missions which include creature targets, such as hunting grounds or swarm missions, are particularly prone to this issue. However, I have seen Clear Ruins missions suffer from this issue severely; the navigation terminal ping stated the ruins were 1400 meters away from the submarine's current position, before suddenly deciding that they were actually 345 meters away hidden within a wall.

Below are images which capture the blatant lies fed to captains and observers by the navigation terminal. This lie led to the death of a crewmate who was unable to prepare for the oncoming Endworm, as everyone involved believed it was a considerable distance away. It is important to note that the handheld sonar monitor apparently does not suffer this issue.

image Figure 1. Image showing the reported distance between the player's submarine and the target of the Hunting Grounds mission. Note that the submarine is travelling at a constant speed.

image Figure 2. Image showing the distance between the player's submarine and the target of the Hunting Grounds mission having increased at the same speed the submarine is travelling. Note that if the abyssal creature was moving away from the submarine, it would do so at a reduced speed as it needs to account for the movement of the submarine in addition to the abyssal creature. Instead, the target is a static ping on the navigation terminal which increases in distance as the submarine gets closer.

Reproduction steps

No response

Bug prevalence

Happens regularly

Version

Other

-

1.0.3.0

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

No response

Regalis11 commented 1 year ago

Thank you for the report!

When it comes to monster missions, this is intentional. Until you get close to the monster, it only shows an approximate position (or rather, a position randomly offset from the monster). The idea is specifically to allow surprises and to make it a little more difficult to prepare for the fight.

However, I have seen Clear Ruins missions suffer from this issue severely; the navigation terminal ping stated the ruins were 1400 meters away from the submarine's current position, before suddenly deciding that they were actually 345 meters away hidden within a wall.

This seems like a bug though. The distance is calculated by finding the shortest path through the level, and it sounds like there was some issue in the pathfinding that prevented it from finding an optimal route until you got close to the ruin. I think we need a save file or a seed to be able to reproduce this though.

Wheatley1001 commented 1 year ago

I have several varying instances of this happening which I'll be providing as much detail, images, and save files as humanly possible. This is going to be big, so I apologise in advance for the wall of text.

Hunting Grounds Target Simply Didn't Exist

We had a Hunting Grounds mission and for the most part everything was normal. We started rapidly approaching the target marked by the navigation terminal, until the moment we approached it. The ping stated the target was 23m away from us but nothing large showed up on sonar. Sending a dive team out also showed nothing in the water. Interestingly, the sonar ping actually registered a human-like ping directly on the target.

image Figure 1. Navigation Terminal showing target ping, no creature in sight.

image Figure 2. Mysterious human ping on exact target location.

image Figure 3. Active sonar not picking up any signatures on target location.

image Figure 4. Freecam + Lighting screenshot of submarine and target location, showing no physical entity within target's supposed range.

image Figure 5. The Endworm (target) blissfully unaware of the chaos unfolding 800m away.

image Figure 6. Freecam + Lighting + Debugdraw screenshot of submarine, drone, and target location, showing absolutely nothing going on which could prompt this issue.

image Figure 7. Screenshot showing the exact location of the submarine (marked by the submarine) relative to the target (endworm, marked by my silly little red pen).

Below is the save file I took during the mission in the hopes that it can aid the debugging of this issue.

Hunting Grounds Mission Ping Lies.zip (Save file during the mission)

After identifying the true location of the target, I moved the submarine towards it. The navigation terminal then decided it wanted to give us precise location tracking complete with the real distance, so frankly I have no idea what was going on.

image Figure 8. Navigation Terminal suddenly showing the correct target location complete with real time location tracking and distance measurements.

Just to be safe, I have also included the save file of the game state directly after we completed the mission.

Same save but directly after the mission ended.zip

The Navigation Terminal Making Up Distances

Here are two major instances of the navigation terminal blatantly lying about positions. We do have video footage of the markers increasing or decreasing distance in real time according to the submarine's movement, but in order to get this comment posted quicker I'll skip out on that for the moment. It might not even be necessary given the other evidence in the ticket, but feel free to yell at me and/or calmly request the video footage.

image Figure 9. Submarine close to outpost docking port (pay attention to the rock formation to the left, this is important).

image Figure 10. Submarine about 20m below Figure 9, reporting a distance difference of ~400m (pay attention to the rock formation; it's the underside of the same rock formation seen in Figure 9).

image Figure 11. Submarine reportedly ~200m from the drone, taken from outside of the map (from pushing final boss bug). The drone is presently disabled and cannot move.

image Figure 12. Submarine suddenly 98m from the drone despite barely moving as evident by the maintain position icon. The drone did not move closer to the sub as it is still disabled.

Monster Pings Lying in Situations it Really Shouldn't (bonus issue, monsters spawn in giant mega-clumps?)

At this stage in the mission, you, the captain, should know exactly where the enemy locations are. The positions are actively changing in relation to your submarine's movement and you have their rough positioning. The navigation terminal, however, pings the targets as within sonar range (they are not) whilst also actively swimming towards your sub (they are not). This leads to overall confusing and muddy engagements in which the captain isn't sure what's alive, what's dead, where the enemies are (because the red mission ping overlaps with the sonar monster ping and creates an unclear image of the engagement (and not in a fun way)), and how many targets remain.

image Figure 13. Navigation Terminal showing monster pings inaccurately reported (notice the red markers showing on sonar without any physical ping associated with it).

Additionally, it seems that monster swarms spawn in giant clumps as demonstrated on the sonar. It looks like a moloch ping but that's the tiger thresher swarm.

Regalis11 commented 1 year ago

Sorry for taking so long to get back to this. It does sound like most of the behavior you described is intentional: as said, the nav terminal only shows an approximate position when you're far away from the target. There does seem to be something off here though - the endworm should've appeared when you got close to the sonar marker.

Regalis11 commented 1 year ago

I gave the provided saves a test, but unfortunately still couldn't get the issue to occur. :/ The marker seems to gradually move to the correct position when approaching it.