Archived from groups: alt.games.vga-planets (
More info?)
Maurits van Rees wrote:
> Op 2005-02-25, rgronwald@hotmail.com schreef <rgronwald@hotmail.com>:
> I see Stefan Reuther has just updated peng to version 0.31; it's a
> Portable Shiplist Compiler. I haven't used it though and haven't
> created own ship lists with other tools either. Anyway, the docs may
> be helpful, though I don't see a maximum on crew mentioned there:
peng does not enforce any limits, therefore there are none mentioned in
the docs.
As far as I know, HOST also has no sanity checks on the crew (they are
not really needed: all ships are created by HOST and/or MASTER, and
clients cannot change the crew, so whatever HOST puts there stays there).
So you only have to make sure not to trigger any overflow in the
program. The only critical thing I can imagine is boarding, where ship
crews are scaled and shuffled around. I think you are on the safe side
by assuming a limit of 10000 (or, 16383, if you insist, such that adding
two crews does not overflow). 10000 is a common limit for 16-bit values
in VGA Planets. Every integer that comes in through a turn file has this
10k limit, so using it as a limit for crew would make sense. Although,
as I already said, crew never is changed by a client and thus never
appears in turn files.
Stefan