Bugs item #1600373, was opened at 2006-11-22 01:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=723099&aid=1600373&group_id=132078

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libtpclient-py
Group: Bug - Unknown
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Lee Begg (llnz)
Assigned to: Tim Ansell (mithro)
Summary: Objects from previous game appear in starmap/info

Initial Comment:
Following log should help.

[00:33] <Lee> There is something funny happening with the game data cache
[00:34] <mithro> hrm, what do you think it is?
[00:34] <Lee> All objects that don't exist anymore still appear after I reset 
the game on the server
[00:39] <mithro> I know what is causing your problem :P
[00:39] <Lee> and rwt the appearing non-existing objects, they don't appear in 
the tree, just in the star map
[00:41] <mithro> hrm, that doesn't make much sense
[00:42] <Lee> and the info in the info window appears correct for the old game
[00:42] <mithro> yes
[00:43] <mithro> I can't figure out how to get around this
[00:44] <mithro> you return a list of objects which have been modified
[00:44] <mithro> o wait :P
[00:50] <mithro> Lee: do the servers produce any unquie identifier I could 
cache?
[00:51] <Lee> global unique? in the game unique? on ther server unique?
[00:51] <mithro> game unique
[00:53] * mithro ponders, how do I test this?
[00:53] <Lee> inside a game, the object ids are unique, there are used for just 
one object (and whatever the object turns into later)
[00:53] <mithro> yes that is okay
[00:54] <mithro> but how do i know it's the same game (IE a new game has 
started)
[00:54] <Lee> at a guess, there would be different ids (or at least fewer)
[00:55] <Lee> the modtimes would be more recent
[00:57] <Lee> the list of objects, orders, players, designs, etc would be 
different

[01:02] <Lee> mithro: maybe in tp04 we should have game information 
request/info frames that would have a start date which you could use

First patch

[01:04] <mithro> Lee: give that a try
[01:06] <mithro> actually the "and rwt the appearing non-existing objects, they 
don't appear in the tree, just in the star map"  makes sense

<backtrace>
[01:07] <Lee> KeyError: 0
[01:07] <Lee> this is after receiving three invalid frame errors from the server
[01:07] <Lee> and before that many, many Read Socket Error (11, 'Resource 
temporarily unavailable')
[01:08] <mithro> hrm....
[01:12] <Lee> the failing frames are Order_Get

Second Patch

[01:13] <mithro> try now
[01:15] <Lee> better
[01:15] <Lee> seems fine now, but noticed game may have changed to fix it anyway
[01:15] <mithro> yeah
[01:16] <mithro> can you log a bug to keep it in my mind?
[01:16] <Lee> sure, against libtpclient-py?
[01:16] <mithro> libtpclient-py



The cause is/was in the game data cache code somewhere.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=723099&aid=1600373&group_id=132078
_______________________________________________
tp-bugs mailing list
[EMAIL PROTECTED]
http://mail.thousandparsec.net/cgi-bin/mailman/listinfo/tp-bugs

Reply via email to