From dc46e28eb94e93f11e95ec10bfaadf988d805e15 Mon Sep 17 00:00:00 2001 From: "PSp..om" Date: Sat, 17 Dec 2011 11:21:13 +0000 Subject: [PATCH] Added a big honking warning after learning something in hindsight about the removal of RenderingHints. :P Seemed simple enough... but now I have to watch people get connection errors to my server instead of getting a nice kick. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8942 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../jme3/network/serializing/Serializer.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/engine/src/networking/com/jme3/network/serializing/Serializer.java b/engine/src/networking/com/jme3/network/serializing/Serializer.java index a4e197123..db87b549b 100644 --- a/engine/src/networking/com/jme3/network/serializing/Serializer.java +++ b/engine/src/networking/com/jme3/network/serializing/Serializer.java @@ -73,6 +73,27 @@ public abstract class Serializer { private static boolean strictRegistration = true; + /**************************************************************** + **************************************************************** + **************************************************************** + + READ THIS BEFORE CHANGING ANYTHING BELOW + + If a registration is moved or removed before the + ClientRegistrationMessage then it screws up the application's + ability to gracefully warn users about bad versions. + + There really needs to be a version rolled into the protocol + and I intend to do that very soon. In the mean time, don't + edit the static registrations without decrementing nextId + appropriately. + + Yes, that's how fragile this is. Live and learn. + + **************************************************************** + **************************************************************** + ****************************************************************/ + // Registers the classes we already have serializers for. static {