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?
I just installed the compiled tpserver, and ran it from the installed
location.
jphr: look at minisec/planet.cpp in Planet::packExtraData(Frame* f).
If your
game has resources
Yes and no... Risk is pretty stripped down in terms of extras. The
only extras I have our the galaxy types, which have an integer that
represents the "bonus" provided for owning the entire galaxy. Then
there are planets, which have an int (not sure if it should be int or
uint32... This number should never be bigger than 2-3 hundred) as well
as a list that points to connected planets (not implemented yet.)
One question I have is do I need planets? They sort of marginalize
Star Systems, since there is always only 1 planet. Is there a way I
could cut out planets and let star systems do all the orders a planet
does?
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).
Still a little sideways from following you two talk about what I
should actually be doing.
On a side not I will file a bug report about the cache thing. Before I
do so, to what extent should I list instructions? or can I link to the
archived mailing list post?
Thanks
Ryan 'jphr' Neufeld
---------------------------
visit me at hammerofcode.com
_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel