Skip to content

Fixed BeatLeader avatars breaking when other mods clone them - #217

Closed
GNimrodG wants to merge 1 commit into
BeatLeader:masterfrom
GNimrodG:fix/foreign-avatar-clone
Closed

GNimrodG wants to merge 1 commit into
BeatLeader:masterfrom
GNimrodG:fix/foreign-avatar-clone

Conversation

@GNimrodG

@GNimrodG GNimrodG commented Nov 3, 2026

Copy link
Copy Markdown

BS+ Multiplayer+ finds the avatar template with FindObjectsOfTypeAll<AvatarTweenController>() and since 0.10 it can pick up BL's menu avatar. Its copies kept MenuBeatAvatarController, which hid them and threw in Awake, so other players' avatars were invisible in Multiplayer+ rooms

Avatar controllers now remove themselves from copies without an AvatarTweenController (every avatar made by BeatAvatarLoader keeps one), so our own avatars behave as before

@Hermanest

Copy link
Copy Markdown
Member

Hey, are you sure you're using the last version on BS+? It was fixed like half a year ago

@GNimrodG

Copy link
Copy Markdown
Author

@Hermanest Yeah I guess that works, but since the issue resulted from a BeatLeader update I felt like it should be fixed on this side. And this might fix issues with other mods that didn't update or not maintaned anymore.

@Hermanest

Copy link
Copy Markdown
Member

Thanks a lot for putting this together, but this isn’t really something we need to fix on our side. We add a postfix to all our avatars, so they’re named like 'AvatarController (BL)'. That makes them easy to tell apart from the game’s own and if some mod grabs ours, that comes from how the other mod looks them up. Besides looking things up by controller type is fragile in general as (from what i remember) zenject exposes the real instances, so you can clone those.

So unfortunately we can’t merge this. Sorry, and thanks again for contributing!

@GNimrodG

Copy link
Copy Markdown
Author

Yeah, that's fair. Thanks for the feedback.

@GNimrodG GNimrodG closed this Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants