> ~~~~~
> Sorry for being a headache in advance, but I need to know this stuff
> ;) (and I assume the other AI developers for RFTS also do...)
> ~~~~~
>
> I accidentally sent the following message to nash instead of the devel
> list. The question is still valid:
My answer was a little too subtle then ;-)
> -------------------------------------------------------------------
> On Mon, 23 Jun 2008 14:01:46 -0400
> "Victor Ivri" <[EMAIL PROTECTED]> wrote:
>
> > Hey guys,
> >
> > Another quick question: can anyone provide mapping between
> > ship-types (integer), and the actual ship type (mk 1 - mk 4, scout,
> > colonist) ?
>
> You probably wanted to send this to the mailing list?
>
> Otherwise it's probably generated automatically...
>
> nash
> -------------------------------------------------------------------
>
> Hm, TP03 protocol specifies (and I have a feeling that it won't
> change) a -numeric- type for ships. E.g., I can have a fleet of 15
> type 1s, 4 type 3s, and 2 type 6s. What I need to know, is how to map
> these numeric types to logical ones (mk1-4, transport, scout). Does
> anyone know the exact mapping?
The mapping is up to the server at run time. It may hard code it, the numbers
may be per-player at creation time.
For example in minisec using tpserver-cpp:
Player 1 scout: 1
Player 1 frigate: 2
Player 1 destroyer: 3
Player 2 scout: 4
...
Each id is allocated when the player joins the game.
So basically you need to discover the numbers yourself at run time - most
likely by finding designs by name. Working out which is yours needs to be
done by seeing what you can build.
> Also, I've got a couple of other questions that popped up as I was
> playing the game:
>
> Whenever I colonize a planet, it has 0 RPs, and the situation -never-
> changes, which means I can't produce anything on it. Does anyone know
> why this happens, and how to remedy it?
/me thinks this sounds like a bug. xdotx this one is yours...
Else check the code ;-) Is the owner set correctly?
> Another question, regarding "mineable" resources. Is the "mineable"
> quantity the limit to the amount of resource I can purchase in the
> current turn, or in general throughout the game? (My intuition is the
> first one, but i need to be sure).
No idea... ;-)
Regards,
nash
_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel