Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to share animations with another creature #15111

Open
2 tasks done
itchyOwl opened this issue Nov 11, 2024 Discussed in #15092 · 1 comment
Open
2 tasks done

Fail to share animations with another creature #15111

itchyOwl opened this issue Nov 11, 2024 Discussed in #15092 · 1 comment
Assignees
Labels
Bug Something isn't working Code Programming task Modding Modding-related feature request or issue, or a bug that only occurs with mods Ticket The issue has been converted into an issue report.

Comments

@itchyOwl
Copy link
Collaborator

Discussed in #15092

Originally posted by A2ur3 November 8, 2024

Disclaimers

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

What happened?

animations files are defined in character A
character B reuses A's animations
it works fine until B's animations are affected by SE

Reproduction steps

  1. download and enable Enhanced EuropaWar
  2. spawn Clownhuman03
  3. giveaffliction Vigor 1000 Clownhuman03

Bug prevalence

Happens every time I play

Single player or multiplayer?

Happens in both single player and multiplayer

-

No response

Version

v1.6.19.1 (Unto the Breach Update Hotfix 2)

-

No response

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

Couldn't load xml document "LocalMods/Enhanced EuropaWar/Content/Characters/Clownhuman/Clownhuman02/Animations/Clownhuman03Walk.xml"! {Could not find file 'D:\Steam\steamapps\common\Barotrauma\LocalMods\Enhanced EuropaWar\Content\Characters\Clownhuman\Clownhuman02\Animations\Clownhuman03Walk.xml'.}
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at Barotrauma.IO.File.Open(String path, FileMode mode, FileAccess access, Nullable`1 share, Boolean catchUnauthorizedAccessExceptions) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Utils\SafeIO.cs:line 540
   at Barotrauma.XMLExtensions.TryLoadXml(String filePath, Exception& exception) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Serialization\XMLExtensions.cs:line 112
‖color:#9370DB‖[Enhanced EuropaWar]‖color:end‖ [EditableParams] The document is null! Failed to load the parameters.
Couldn't load xml document "LocalMods/Enhanced EuropaWar/Content/Characters/Clownhuman/Clownhuman02/Animations/Clownhuman03Run.xml"! {Could not find file 'D:\Steam\steamapps\common\Barotrauma\LocalMods\Enhanced EuropaWar\Content\Characters\Clownhuman\Clownhuman02\Animations\Clownhuman03Run.xml'.}
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at Barotrauma.IO.File.Open(String path, FileMode mode, FileAccess access, Nullable`1 share, Boolean catchUnauthorizedAccessExceptions) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Utils\SafeIO.cs:line 540
   at Barotrauma.XMLExtensions.TryLoadXml(String filePath, Exception& exception) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Serialization\XMLExtensions.cs:line 112
‖color:#9370DB‖[Enhanced EuropaWar]‖color:end‖ [EditableParams] The document is null! Failed to load the parameters.
@itchyOwl itchyOwl added Bug Something isn't working Need more info Insufficient information to resolve the issue (e.g. steps to reproduce a bug) Code Programming task Modding Modding-related feature request or issue, or a bug that only occurs with mods Ticket The issue has been converted into an issue report. labels Nov 11, 2024
@itchyOwl itchyOwl self-assigned this Nov 11, 2024
@itchyOwl itchyOwl removed the Need more info Insufficient information to resolve the issue (e.g. steps to reproduce a bug) label Nov 15, 2024
@Regalis11
Copy link
Collaborator

I was looking into 2 related issues, Character variant that inherits creature in another mod will try to find its sprite from wrong mod and Unable to create a variant of Spineling_morbusine, and the fix I implemented seems to have fixed this too (this seemed to basically be a symptom of the same bug).

@Regalis11 Regalis11 self-assigned this Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Code Programming task Modding Modding-related feature request or issue, or a bug that only occurs with mods Ticket The issue has been converted into an issue report.
Projects
None yet
Development

No branches or pull requests

2 participants