28 Commits

Author SHA1 Message Date
sky..ok
63632afca1 License maintenance in Networking, NiftyGUI, JOGG, and OGRE
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9856 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-08 14:36:12 +00:00
sky..ok
28ce76245f Change all source licenses to say 2009-2012
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9838 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-10-05 17:01:57 +00:00
PSp..om
476120616c Modified the Serializer registration of DisconnectMessage
and ClientRegistrationMessage so that they have fixed IDs
and registration-independent implementations.  This means
that no matter how much the internal auto-registration list
changes that a game can still manage the protocol version
in a graceful way.
Prior to this change, removal of a class registration from
Serializers auto-registered list meant that a client->server
version mismatch was impossible to detect and handle gracefully.

Also, now that it was safe to do so, I removed the auto
registration of some odd Java beans classes.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9457 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-06 05:31:16 +00:00
PSp..om
516e3065dc Moved the string read/write to static methods to
make it easier to reuse in classes that want to
read/write strings the same way without using
Serializer directly.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9456 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-06 04:52:58 +00:00
PSp..om
819407cf79 Starting to reorganize serializer a bit to later add
some features that will make it slightly less fragile.
The code that registers a serializer for an ID has
been centralized.
A method was added to hand out new IDs and it now
skips IDs that are already in use.  This will allow
certain serializers to be fixed against specific IDs
to maintain backwards and forwards compatability even
as the automatically registered list of serializers
changes.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9455 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-06 03:26:26 +00:00
nor..67
ea0be5cf9f - fix imports across engine
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9451 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-06-03 13:10:26 +00:00
PSp..om
1083cbd5aa Removed the extraneous warning message since you will
get an exception with the same info (and it's not a 
warning anyway, it's fatal).
Also improved the error message to include the field
that failed to write.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8960 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-28 07:05:16 +00:00
PSp..om
dc46e28eb9 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
2011-12-17 11:21:13 +00:00
PSp..om
d1576a3580 Added a proper toString() to SerializerRegistration.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8941 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-17 11:14:15 +00:00
PSp..om
e84d8300dd Modified Client/Server to support alternate channels. The
server can configure additional ports that will be sent to
the client upon connection.  These channels can be used to
send messages in parallel to the normal messages.  This is
useful to keeping several separate command pathways flowing
smoothly despite potentially large messages on one channel.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8938 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-16 10:28:50 +00:00
nor..67
3cdaf0e051 jme3:
- fix imports in all classes

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8843 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-03 14:06:48 +00:00
nor..67
c906508e62 - big refactoring of engine build and cleaning of sources, totally breaking SDK build for now
- separate jar files for engine components
- resolve dependencies between code parts
- remove Nifty dependency from Cinematics
- remove Physics dependency from TerrainGrid
- add public accessors to Natives Extraction
- remove RenderHint serialization from networking

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8839 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-12-03 01:22:42 +00:00
PSp..om
c548987709 Removing the deprecated packages and old version of the
networking layer.  Note: because some messages were removed
from Serializer's auto-registration this version is not
binary-compatible with the last.  So you must upgrade your
client and server at the same time.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8286 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-09-24 09:16:54 +00:00
PSp..om
1dbd617d2d Added a method to register classes in bulk.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8069 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-24 09:52:35 +00:00
PSp..om
8f90e62fec A change from a while back that presents a slightly better
error message than an NPE but still isn't very helpful.  This
usually only happens when things are totally confused, ie:
stream corruption or more likely misregistered classes.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8068 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-08-24 09:38:28 +00:00
PSp..om
68bac95cd5 Added some more information to the logging.
Removed an errant nextId decrement that would occur
even if the class was already registered and already
had an ID.  This makes the teetering tower of glass
shards slightly less fragile... slightly.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7722 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-24 10:06:41 +00:00
PSp..om
98267c3d0f Added a check for no-arg constructor during initialize
to avoid having to wait to find this out until a message
is sent.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7694 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-23 08:19:06 +00:00
PSp..om
2bc6e27200 Proper fix for the bug where JME's quaternion wasn't
being serialized automatically.
When a class is final and in the field of a class that
is registered, it is safe to register it automatically
because the type can be determined reliably on the
other end of the stream.  So now it allows that.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7276 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-20 17:41:15 +00:00
nor..67
1203073bd9 - make SM Serializer only display warning instead of throwing an Exception when the class has not been registered, internally supported classes like jME math primitives were not accepted anymore
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7267 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-20 13:58:26 +00:00
PSp..om
c5ac1c8bfe Modified to throw an exception if the class of the object
being written hasn't been registered yet and does not
have an explicit ID set.  The old way would try to send
it anyway and then it would fail to get received on the
other end.
A setStrictRegistration(false) method can be used to get the
old behavior if needed.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7222 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-09 08:07:25 +00:00
PSp..om
0f1b05b405 Fixed the few uncheck warnings that I could... suppressed
the rest.  Added an UnsupportedOperationException to 
SerializableSerializer so that it doesn't silently fail
to do anything at all.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7219 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-08 02:55:21 +00:00
PSp..om
4deb4d46e7 Improved the exception handling when objects fail
to instantiate.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7217 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-07 22:40:53 +00:00
PSp..om
041f47157d Modified serializer to throw an exception if it tries
to read from a buffer and doesn't understand what class
it's reading.  Error messages... it's the little things
that matter.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7180 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-04 01:01:17 +00:00
PSp..om
37cc6e581d Deprecated registerPackage() and added a log INFO to
log all classes that are registered.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7136 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-28 19:33:41 +00:00
PSp..om
99a21a8c1d This would have saved me soooo much time. Serializer's
single-arg registerClass() method now throws an exception
if the object is not marked Serializable.  Internally,
the package-load stuff uses the new alternate method that
allows safe non-exception throwing registration since it's
hitting it with every class in a package.
Interestingly enough, messages will still get written out 
because of some questionable code in writeClassAndObject()...
but it won't be read as anything but null despite its
40+ bytes of data.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7121 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-27 05:31:21 +00:00
PSp..om
5012b2d3dd Use an extra byte per final-typed field to handle
the case of nulls.  Note: this is specific to
serialized objects and is therefore not adding
a byte to things like Strings or arrays... those
will have to be reviewed separately.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7119 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-26 22:44:09 +00:00
PSp..om
3e5973793e A better exception for errors that really should have a root
cause.  It's possible to set it right on IOException but not
at all convenient.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7118 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-26 21:32:49 +00:00
nor..67
9e53abbb7a move jme3 to trunk
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@6971 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-14 12:55:32 +00:00