Barotrauma icon indicating copy to clipboard operation
Barotrauma copied to clipboard

criteria humanprefabidentifier works weirdly

Open Alpharius-30-milenium opened this issue 1 year ago • 1 comments

Disclaimers

  • [X] I have searched the issue tracker to check if the issue has already been reported.
  • [X] My issue happened while using mods.

What happened?

For some reason criteria humanprefabidentifier work for raptor owner (the only reference in code for it) and not work on characters that are in the player's team

Reproduction steps

Make character prefab (like aunt Dorris) Make event that triggers after you hired the character Add as a criteria humanprefabidentifier:[created character] See that it not finding it for some reason

As you can see from screenshots required character is existing but event won't go further

image image image image

Bug prevalence

Happens every time I play

Single player or multiplayer?

Happens in both single player and multiplayer

-

No response

Version

v1.2.8.0 (Winter Update hotfix 2)

-

No response

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

No response

Alpharius-30-milenium avatar Feb 18 '24 06:02 Alpharius-30-milenium

It seems the issue here was the NPC lost the reference to the prefab when hired to the crew (in a sense making them no longer instances of that prefab). Fixed in https://github.com/FakeFishGames/Barotrauma-development/commit/9114293a1d54f10bfb15db6b06b216ab85da51d4

Regalis11 avatar Feb 19 '24 10:02 Regalis11