Open cBournhonesque opened 2 weeks ago
ERROR lightyear::shared::replication::receive: Received despawn for an entity that does not exist
. Not 100% sure what is happening.
Despawn
message for the entity but it didn't send a Spawn
message. (Spawn
messages are sent every replication_interval
so if the entity was despawned before we run the system we wouldn't send any Spawn, but Despawn
messages are buffered via observer whenever the ReplicationTarget
component is removed, so we would always send a despawn no matter what, even if no Spawned
was sent.spawn
and despawn
in the same message? Or just don't send the despawn
at all?
Okay, going back to this rollback issue, I think I've narrowed it down enough to share: I might be running into an edge case bug with PreSpawnedPlayerObjects, probably.
To summarize: my game is using projectiles that are really fast moving. There projectiles are pre-spawned by the client that shoots. Whenever the projectiles are stopped, they get deleted that frame. There's three types of behaviors I'm seeing with this, two of which are failure points:
This error gets printed by both clients.
See https://discord.com/channels/691052431525675048/1189344685546811564/1282437035604312187