Hello Again,
> > Silly question... is it worth adding a 'weight' field and changing the
> > total maximum to be a total weighted maximum?
> >
> > So that sum of each items #selected * weight < total weighted maximum.
>
> Note that weight is integer, so some fun math might be necessary to adjust
> the
> total weighted max.
Not really - since everything else is an integer... But it's a small
issue.
> > I'm just thinking this takes the normal case for building stuff really
> > nicely... So building ships and stuff can be done automatically in the
> > client in an easy way?
>
> So, yes the refsys "type" field is necessary...
>
> > Also trading games with different cargo units can work with the list
> > easily too.
>
> How well will total weighted max work with both resource "size" and "mass"?
> Could there be a problem there? IE, hitting the max size OR the max mass?
It just wouldn't work at all.
To do that we'd have to change it to:
Each item adds:
* A list of:
...
* List of Weightings
...
Then at the end:
* A list of:
* Maximum weighting (0 for ignored - no limit on this resource)
* A GRS to the 'resource'.
So basically instead of a single weight, we get a vector for each item.
The final list would contain a reference to the resource type in use.
The result is so the UI can do things like:
Scouts * 3 (9 Ironium, 3 Germ, 21 Bor, 1128 Resources)
Destroyer (50 Ironium, 42 Germ, 122 Bor, 29 Resources)
..
Used: 50 Ironium, 45 Germ, 143 Bor, 1157 Res)
Maximum ( 200 Ironium, 9843 Germ, 145 Bot, 1200 Res)
Using 0 limits it means full costs can be calculated in games like
Stars!.
So V.3 looks like:
* A list of:
* a UInt32, read only, id of what can be selected
* a String, read only, String Name of can be
selected
* SInt32, read only Maximum that can be selected
(-1 == no limit)
* A List of
* Int32, read only, Weightings
* a GRS list, read only, What this item refers too
(May be GRS single??)
* A list of
* Int32 Weighted limit for this 'resource'
* GRS `Resource' this refers to
The selection, A list of:
* a UInt32, read write, id of the selection
* a UInt32, read write, number of the selection
This works with RFTS, Stars! and quite a few other games I'd imagine.
> > * A list of:
> > * a UInt32, read only, id of what can be selected
> > * a String, read only, String Name of can be
> > selected
> > * a SInt32, read only, maximum number of can to be
> > selected, -1 means no limit
> > * an UInt32, read only, weighting.
> > 0 means doesn't count to limit
> > * a GRS list, read only, What this item refers too
>
> Why a list?
That's one for mithro ;-)
Regards,
nahs
_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel