Skip to content

Command ack #4

@ddalacu

Description

@ddalacu

In case that server does not change state when receiving commands it will not send deltas for entities that require command ack and because of that client command buffer will fill and it won't generate new commands which in turn will make server never send deltas and you are stuck :|, i fixed this by alwasys creating deltas for entities with command ack.
So inside RailStateDeltaFactory at line 30 you have
bool shouldReturn = forceAllMutable || includeControllerData && current.HasControllerData || includeImmutableData || removedTick.IsValid;
To fix this you need to add "commandAck.IsValid"
So the whole line would look like
bool shouldReturn = forceAllMutable || includeControllerData && current.HasControllerData || includeImmutableData || removedTick.IsValid || commandAck.IsValid;

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