From 10e73085a8b952079b7153e8877bc26efb6c6406 Mon Sep 17 00:00:00 2001 From: proepkes Date: Sat, 2 Feb 2019 20:46:20 +0100 Subject: [PATCH] Readme Unity weirdness --- Engine/Core/World.cs | 5 ++--- README.md | 4 ++-- .../Assets/Integration/Lockstep.Core.dll.mdb | Bin 35689 -> 35702 bytes 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Engine/Core/World.cs b/Engine/Core/World.cs index 5b629ec..55c2cb1 100644 --- a/Engine/Core/World.cs +++ b/Engine/Core/World.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using Entitas; using Lockstep.Core.Features; @@ -102,7 +101,7 @@ public void Simulate() if (Contexts.gameState.isPredicting) { Contexts.gameState.isPredicting = false; - } + } Execute(); Cleanup(); diff --git a/README.md b/README.md index e77c46c..15d370c 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ Initial commit was targeting the following protocol: https://www.reddit.com/r/Unity3D/comments/aewepu/rts_networking_simulate_on_serverbeat/. It turned out that bad network conditions made the game unplayable. The project has shifted to an architecture you see below. -Currently the rollback of adding new entities is working (for 2 players). If you spawn entities in both instances the game will result in a synced state no matter how many packets drop or how high the lag is. Clientside prediction makes sure that local commands are executed under any condition. +Currently the rollback of adding new entities should be stable. If you spawn entities in multiple instances, all simulations will have in a synced state no matter how many packets drop or how high the lag is. Clientside prediction makes sure that local commands are executed under any condition. -Rollback for entity-changes is currently in progress. Using the navigation-feature in combination with rollback will lead to desync or game crashes. +Rollback for entity-changes (e.g. position-change) is currently in progress. Using the navigation-feature in combination with rollback will lead to desync or game crashes. ![Overview](/Docs/Overview.svg "Overview") diff --git a/Unity/Assets/Integration/Lockstep.Core.dll.mdb b/Unity/Assets/Integration/Lockstep.Core.dll.mdb index aa56b42bda6771b56d8301421157833ef105bd52..9aebcf44ccdc7f708cebb20e35d5c4e4a24eb44f 100644 GIT binary patch delta 3597 zcmZvf2~-qU7KZQblBTPbL^e&@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