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.68k stars 394 forks source link

Enemies spawning and attacking the sub immediately upon loading level #13750

Closed Regalis11 closed 2 months ago

Regalis11 commented 3 months ago

Discussed in https://github.com/FakeFishGames/Barotrauma/discussions/13614

Originally posted by **ubertpendragon** March 17, 2024 ### Disclaimers - [X] I have searched the issue tracker to check if the issue has already been reported. - [ ] My issue happened while using mods. ### What happened? Threshers spawned immediately upon loading the level in multiplayer (unstable) Normally monster events only spawn after the submarine has moved 50m? (`mindistancetravelled`, `allowatstart` ?) [Season_5.5.zip](https://github.com/FakeFishGames/Barotrauma/files/14625456/Season_5.5.zip) ### Reproduction steps Load the save ### Bug prevalence Happens every now and then ### Single player or multiplayer? Multiplayer hosted from the in-game menu (= using a listen server) ### - _No response_ ### Version v1.2.13.0 (unstable) ### - _No response_ ### Which operating system did you encounter this bug on? Windows ### Relevant error messages and crash reports _No response_
Regalis11 commented 2 months ago

Potential repro steps found, from the discussions:

I found a way to reproduce: This is happening when you're passing uninhabited spot with some monsters on your tail uninhabited

  1. travel from outpost to empty spot
  2. teleport the sub around the level, make sure something spawned, but don't kill it
  3. teleport to end, transit to some next location
  4. take a look around, there's 100% something prespawned. Sometimes it's just a few crawlers right outside the sonar radius, sometimes it's 10 hammerheads on top of your sub

If you retry or save-load nothing will spawn It can happen when transitioning from outpost to outpost, but i don't know exact conditions for that