On Thu, 29 May 2008, Tim Ansell wrote:
> > I didn't get
> > off scotch free, and there are still some issues with my own code. In
> > the "Objects" section of the universe updater I get the following error:

Good to hear you got it going. How?

> It appears that you are not using the planet definition which is used in
> TP03. Planets in TP03 must have a given format as shown in
> http://www.thousandparsec.net/tp/dev/documents/objects.php

The root of the problem is that might not have actually been a planet at all.

There is a way of creating TP03 compatible objects in tpserver-cpp, but I much 
prefer to focus on TP04, with it's cleaner way of defining objects.

jphr: look at minisec/planet.cpp in Planet::packExtraData(Frame* f). If your 
game has resources, then use code similar to that, otherwise packInt(0) is 
all you need to do. Also note that you might need to do the equivalent of 
OwnedObject::packExtraData() as well.

> What specifically is the problem is that you are missing the length
> value for the four element list ([jjjj]). I'm not sure how tpserver-cpp
> works in this regard and how you are missing that list length.

tpserver-cpp works in assuming the client is running TP04. There is extra 
programming required (that requires learning the frame format and using the 
frame object) to make it work for TP03. It is much simpler to program for 
TP04 *only*.

Note that rfts even has a galaxy class, but doesn't use it because of how 
crappy TP03 is. I am working toward tp04 support in libtpproto-cpp currently 
(once I've finished, or in concert with, async support).

> Tim 'Mithro' Ansell

Later
Lee

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel

Reply via email to