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

NetworkTransform can't be disabled via MonoBehaviour's enabled property, results in NT TICK DUPLICATE #2886

Closed
zachstronaut opened this issue Apr 17, 2024 · 3 comments
Assignees
Labels
priority:high stat:imported Status - Issue is tracked internally at Unity type:bug Bug Report

Comments

@zachstronaut
Copy link

If you disable NetworkTransform on all clients by setting the enabled property to false you get a bunch of these errors:

[Netcode] [NT TICK DUPLICATE] Server already sent an update on tick 2340 and is attempting to send again on the same network tick!

You can disable sync functionality without the errors by doing something like:

netTransform.Interpolate = false;
netTransform.SyncPositionX = false;
netTransform.SyncPositionY = false;
netTransform.SyncPositionZ = false;
netTransform.SyncRotAngleX = false;
netTransform.SyncRotAngleY = false;
netTransform.SyncRotAngleZ = false;

I would expect to be able to stop the NetworkTransform completely by setting enabled to false, or if that seems weird, then by some other mechanism.

@zachstronaut zachstronaut added stat:awaiting triage Status - Awaiting triage from the Netcode team. type:bug Bug Report labels Apr 17, 2024
@NoelStephensUnity NoelStephensUnity added priority:high stat:import Status - Issue is going to be saved internally and removed stat:awaiting triage Status - Awaiting triage from the Netcode team. labels Apr 22, 2024
@NoelStephensUnity
Copy link
Collaborator

Good catch and this just requires checking if it is enabled or not when updating and exiting early if not (or possibly de-registering)

@fluong6 fluong6 added stat:imported Status - Issue is tracked internally at Unity and removed stat:import Status - Issue is going to be saved internally labels Apr 22, 2024
@miniwolf
Copy link
Collaborator

@zachstronaut just confirming which version you are on. The error message is in 1.7.1 but changed during 1.8.0:
#2777
It might be enough for you to upgrade to resolve your error.

@miniwolf
Copy link
Collaborator

miniwolf commented May 6, 2024

Closing this as I have received no more information. If this is still an issue on the latest version 1.9.1 feel free to re-open or make a new ticket.

@miniwolf miniwolf closed this as completed May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:high stat:imported Status - Issue is tracked internally at Unity type:bug Bug Report
Projects
None yet
Development

No branches or pull requests

4 participants