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

Some instances not being ser/deserialized properly in Matter example game #22

Open
cmumme opened this issue Aug 5, 2024 · 3 comments
Open

Comments

@cmumme
Copy link

cmumme commented Aug 5, 2024

It appears as if instances that have been created after the player joins are not serialized/deserialized properly-their entities are created on the client but their instance properties are nil.

I am experiencing this issue in my own Matter/TypeScript game as well, even with @rbxts/[email protected] and @rbxts/[email protected].

These errors are repeated indefinitely:

  14:02:50.110  ReplicatedStorage.Client.systems.roombasHurt->roombasHurt: ReplicatedStorage.Client.systems.roombasHurt:8: attempt to index nil with 'PrimaryPart'
ReplicatedStorage.Client.systems.roombasHurt:8 function roombasHurt -  Client
  14:02:50.111  Stack Begin  -  Studio
  14:02:50.111  Stack End  -  Studio
  14:02:50.112  Matter: The above error will be suppressed for the next 10 seconds  -  Client - Loop:439
  14:02:50.660  ReplicatedStorage.Shared.systems.updateModelAttribute->updateModelAttribute: ReplicatedStorage.Shared.systems.updateModelAttribute:10: attempt to index nil with 'SetAttribute'
ReplicatedStorage.Shared.systems.updateModelAttribute:10 function updateModelAttribute  -  Client
  14:02:50.661  Stack Begin  -  Studio
  14:02:50.662  Stack End  -  Studio
  14:02:50.663  Matter: The above error will be suppressed for the next 10 seconds  -  Client - Loop:439

The debugger shows only some instances replicated to the client properly:
image

@YetAnotherClown
Copy link
Owner

The Matter Example Game hasn't been updated to YetAnotherNet v0.9.0 in the repository yet, but I do have it updated on my computer and when I worked on the fix in v0.9.0 it did work.

Could you provide more information about the issue in regards to your own game? Or if you could provide a minimal repro that would be great too.

@Asmeili
Copy link

Asmeili commented Sep 19, 2024

I'm facing the same issue, Models that are created after the player joins seem to not always serialize/deserialize. This is happening in v0.9.0 and v0.10.0.alpha.2.

@YetAnotherClown
Copy link
Owner

@Asmeili Could you provide a minimal repro? I'm a little busy but I'll be able to look into this quicker with a minimal repro.

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

No branches or pull requests

3 participants