Avatars Not Replicating Correctly

Hello!

I’ve been trying to track an issue that spontaneously occurred in my game on the 23rd, even though I hadn’t updated the game to create such issues in a few weeks. To explain the issue further, all of my players arms and physics are acting weird. Sometimes the broken physics replicates only to the client, and sometimes it’s visible to the entirety of the server. I’ve been using the same animations since 2022, which normally don’t have this problem.

Streaming Enabled is set to Legacy and opportunistic.
It seems to be a 1/20 player chance, and is hard to replicate solo. Some players can join different servers and it seems to be tied to their device entirely.

I use this module:

Game:

It seems to be completely and utterly random with how players are handled.





image
image

Expected behavior

Avatars limbs shouldn’t be inverted nor stiff like in the images. Their movement shouldn’t be broken either.

A private message is associated with this bug report

10 Likes

It looks like the issue has progressed a bit further. I tried to make models persistent so that they could all be loaded, but it seems to break the avatar more.


5 Likes

Hoping this gets fixed soon, I know some friends who are running into the same issue.

1 Like

yes its true, really problematic i have this bug in my game place who are in R15

1 Like

Would it perhaps be related to this update?
Someone had a similar issue with their animations and reminded me of it:

1 Like

Thanks for the report! We’ll follow up when we have an update for you.

1 Like

Hi Tzui,
I’m taking a look at this issue. I suspect it is related to some new retargeting optimizations that recently went in. Can I get you to disable retargeting on the Workspace properties and see if that fixes the problem? If so, we’ll try to get a proper fix in asap.

2 Likes

YES!

Disabling retargeting has stopped the bug, at least from my ability to replicate the error without any other clients. I’ll let you know if it shows up again.

2 Likes

Thank you for checking that! I’m working on a fix and will let you know when it is available.

2 Likes

I appreciate it.
Though, unfortunately, I’m running into a new problem.

Animations are replicating fine, although arms are oddly wider. What does retargeting do? And is this a possible outcome?
If not, I’ll possibly have to dig through some more code, but I’ve been using the same animation system + animations since 2022.

Player’s outfit before:
image
Player’s outfit after:
image

Yes, retargeting tries to reposition the arms and legs to match the original authored pose. With it disabled you will see things like this where the arms aren’t at the right angle.
The idle animation was authored on a rig that was in the ‘i’ pose (arms straight down by the sides). It looks like this character was authored in the ‘a’ pose (arms out at a slight angle).

I may have another solution for you though. The retargeting bug you reported is very likely caused by an old version of the Realism code you linked above. I took a look at their git repo and any version before July 2023 will cause the bug. So, if you are able to update that library you should be able to reenable retargeting as well. The new code should run much faster as well.

For those interested, the bug is caused when code directly modifies joint C0 transforms at runtime. This is actually changing the rig of the character every frame not the pose. We advise not to do procedural animation in this way (it is very expensive), it is better to change the joint’s Transform property. There is a good example of how to do this in the Platformer template’s CharacterLeanScript. Happy to answer any questions on the subject :slight_smile:

2 Likes

Yeahh it’s certainly a bit costly. I have it naturally disabled on my game so that way not all players are using it all of the time. I believe the 2023 version of Realism is what we have, but I’ll try and update it regardless or find a new method.

I decided to run a test with retargeting set back to default and Realism’s components disabled. It seems that the animation still presently has wider arms.


Does this mean it could be something else contributing to the problem?

Which animation are you playing on the character? Not all have been updated to support retargeting yet.

Regarding the Realism code, check to see if any of the files are modifying the C0 transform.

It looks like most avatars that joined were using one of our game’s default (custom) animation set.