Skip to content

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

@camren-m

Description

@camren-m

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/yetanothernet@0.9.0 and @rbxts/matter@0.8.1.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions