From 76644537e28251db78b30546afa317caf81276e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 16 Jan 2013 22:26:43 +0100 Subject: [PATCH] give the users some hints when crashing due to desync --- OpenRA.Game/Network/OrderManager.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenRA.Game/Network/OrderManager.cs b/OpenRA.Game/Network/OrderManager.cs index 8d16467ad1..c0b2cee81f 100755 --- a/OpenRA.Game/Network/OrderManager.cs +++ b/OpenRA.Game/Network/OrderManager.cs @@ -1,6 +1,6 @@ #region Copyright & License Information /* - * Copyright 2007-2011 The OpenRA Developers (see AUTHORS) + * Copyright 2007-2013 The OpenRA Developers (see AUTHORS) * This file is part of OpenRA, which is free software. It is made * available to you under the terms of the GNU General Public License * as published by the Free Software Foundation. For more information, @@ -140,17 +140,17 @@ namespace OpenRA.Network if (index >= orders.Count()) OutOfSync(frame); - throw new InvalidOperationException("Out of sync in frame {0}.\n {1}".F(frame, orders.ElementAt(index).Order.ToString())); + throw new InvalidOperationException("Out of sync in frame {0}.\n {1}\n Compare syncreport.log with other players.".F(frame, orders.ElementAt(index).Order.ToString())); } void OutOfSync(int frame) { - throw new InvalidOperationException("Out of sync in frame {0}.\n".F(frame)); + throw new InvalidOperationException("Out of sync in frame {0}.\n Compare syncreport.log with other players.".F(frame)); } void OutOfSync(int frame, string blame) { - throw new InvalidOperationException("Out of sync in frame {0}: Blame {1}.\n".F(frame, blame)); + throw new InvalidOperationException("Out of sync in frame {0}: Blame {1}.\n Compare syncreport.log with other players.".F(frame, blame)); } public bool IsReadyForNextFrame