Barotrauma icon indicating copy to clipboard operation
Barotrauma copied to clipboard

Monsters spawned so close that they killed each other (0.18.12)

Open ToumanLin opened this issue 3 years ago • 4 comments

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?

MissionID: killmudraptors1 killcrawlerswarm1 If you cloose both these two mission, you will complete them before you reach the monsters' loaction. I have tryed three times in different levels, everytime it happens.

Reproduction steps

No response

Bug prevalence

Happens every time I play

Version

0.18.12.0

-

No response

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

No response

ToumanLin avatar Jun 17 '22 14:06 ToumanLin

Addressed in Regalis11/Barotrauma-development@3de089d.

itchyOwl avatar Jul 13 '22 14:07 itchyOwl

Tested in 0.19.0.0,

I tried four combat missions at once (easily doable with mods and luck) and threw this error: image

Of course, this is an exaggerated situation. image and all the creatures were relatively close to each other, but this was also a tiny level at the start of a campaign I was just testing against using unlockmission.

With three missions: image

They still managed to find and kill each other within the first 30 seconds to a minute, though this is theoretically doable in vanilla due to captain talents (And maybe racking some missions up along a route).

finally, same save/level with 2 missions selected within the first 5-10 seconds of round start: image

Given the map generation, not sure if all map sizes can be accounted for and the creatures do travel quite a distance at times on top, not sure if anything here is to change though as they definitely do not spawn inside each other / in immediate attack range unless there is no good spawn positions left meeting the required distance.

guess it could be considered a feature than a bug if your targets just happen to meet and eat each other though, Perhaps we could make combat mission enemies more resistant / immune to other combat mission enemies or something (At least so they are alive once the player reaches them)?

Single player campaign save I was quickly using (save has 3 missions selected at a level start) Save 9.zip

Perhaps this is a non-issue in later levels (But I find it common for players to stick to the first biome for a long while, perhaps long enough to get the 3 mission captain talent, or a server setting allowing for more than 2 missions instead).

NilanthAnimosus avatar Jul 28 '22 02:07 NilanthAnimosus

The change here is that we now first try to get a position that's not too close to the previous monster swarm spawn, which in this case seems to fail and throw that warning in debug builds. Increasing the distance between the spawns would make this happen more often, so it's not the best solution. In general, monsters fighting each other is intentional, but with the mission monsters it's not, so we could also consider changing their targeting behavior. But that might lead to weirdness when monsters suddenly fight happily against the player alongside with their rivals. So idk if it's really worth using any more reasouces. And in any case, I don't think we should even try to support more than 2 swarm missions per level.

itchyOwl avatar Jul 28 '22 09:07 itchyOwl

ok so good that the warning is debug builds only (I wasn't sure so I pointed it out).

personally I think the fixes are find as a fix (As I agree on making it more of an issue if widened to find a correct spot on a number of levels and they don't spawn pretty much within 10 meters) but it is worth pointing out the average player may think this bug still exists so it felt worth the observation.

but if I consider player expectations - many may consider stacking multiple swarm/kill objectives to have to face said challenge, only for adding more to potentially make it easier as they off screen kill each other. from a design POV its good (and I always considered it cool) that creatures attack and kill each other, but otherwise it probably feels like a good chance of some free money if you just wait a moment.

Generally, I find most fish will target a player or submarine than each other when your close, so to the average player I don't think mission objective enemies not attacking each other would actually appear that odd as by the time you'd probably see them they are attacking the submarine or the player and their focus will primarily be on that.

NilanthAnimosus avatar Jul 28 '22 10:07 NilanthAnimosus

To me this doesn't seem like something we should put more resources into, considering how unlikely it is to happen now during normal gameplay.

Regalis11 avatar Aug 25 '22 09:08 Regalis11