Slick Forums

Discuss the Slick 2D Library
It is currently Thu Jun 20, 2013 4:31 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Oct 01, 2009 7:16 pm 
Offline

Joined: Thu Oct 01, 2009 7:14 pm
Posts: 1
Location: Atlanta GA
org.newdawn.slick.util.pathfinding.Path$Step does not implement Serializeable. This means that when I try to serialize a Path, I get the exception
Code:
java.io.NotSerializableException: org.newdawn.slick.util.pathfinding.Path$Step
.

Either that or Darkstar is doing something really weird.

Thanks,

Summers


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 01, 2009 9:52 pm 
Offline
User avatar

Joined: Tue Dec 25, 2007 7:23 pm
Posts: 45
Location: Iowa, US
You are correct it is not marked with the Serializable interface. You could just serialize the (x,y) coordinate of the Step yourself.

In case you do not know how to serialize an int to a byte array checkout: DataOutputStream.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 23, 2009 7:48 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Fixed in SVN.

Kev


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group