Home » Stars! Clones, Extensions, Modding » FreeStars » Race Wizard almost done (but not quite)
Race Wizard disection |
Fri, 07 September 2007 05:51 |
|
mazda | | Lieutenant | Messages: 655
Registered: April 2003 Location: Reading, UK | |
|
mazda wrote on Fri, 17 August 2007 16:07 | Not sure I've seen anything that explains the difference between shifting left and right yet either.
|
Got this bit now !
Not yet made up my mind whether I think it is intended or not.
Difficult to tell with no comments in the code.
Code is as follows :-
planetDesir = planetValueCalc(testPlanetHab);
v100 = v108[0]+v108[1]+v108[2];
IF (v100>TTCorrFactor)
{
planetDesir -= v100-TTCorrFactor;
if (planetDesir<0) planetDesir=0;
)
At this point it is calculating the habs of the 1331 test planets and adding them all together to get a point score.
The more total hab then the more it costs in the RW. Simple.
The array v108[] is a set of three values representing the distance between the the ideal for the race and the planet hab being tested.
If the v108[] values are sufficiently positive then the RW thinks the test planet is less desirable and hence it costs you less.
However these values have a sign - if the planet value is higher (to the right of) than the centre point of the race band then these values are instead negative and so unlikely to produce a reduction in desirability and hence no reduction in RW cost.
So the more test planets you have with hab values left of your ideal values then the less points you will pay.
Comparing a left-shifted hab scheme with a right-shifted hab scheme it is easy to see which of them will have more test planets left of your ideal values.
As soon as the notional terra of 15 clicks hits the left edge then you start to lose planets because you can't go any further left.
The right-shifted scheme doesn't lose these planets and hence you pay less.
I think there are quite complicated interactions between distance from the edge and rounding that give rise to the odd behaviour that we see in these regions of the hab screen.
[Updated on: Fri, 07 September 2007 05:56] Report message to a moderator
|
|
|
|
|
Race Wizard almost done (but not quite)
By: icebird on Thu, 04 November 2004 08:56
|
|
|
Re: Race Wizard almost done (but not quite)
By: LEit on Thu, 04 November 2004 09:16
|
|
|
Re: Race Wizard almost done (but not quite)
|
|
|
Re: Race Wizard almost done (but not quite)
By: TomT64 on Tue, 09 November 2004 20:24
|
|
|
Re: Race Wizard almost done (but not quite)
|
|
|
Re: Race Wizard almost done (but not quite)
By: ConstB on Tue, 15 March 2005 10:04
|
|
|
Re: Race Wizard almost done (but not quite)
By: LEit on Thu, 16 February 2006 17:18
|
|
|
Re: Race Wizard almost done (but not quite)
By: LEit on Thu, 16 February 2006 17:22
|
|
|
Re: Race Wizard almost done (but not quite)
|
|
|
Re: Race Wizard almost done (but not quite)
By: LEit on Thu, 16 February 2006 21:22
|
|
|
Re: Race Wizard almost done (but not quite)
|
|
|
Re: Race Wizard almost done (but not quite)
By: LEit on Fri, 17 February 2006 10:06
|
|
|
Re: Race Wizard almost done (but not quite)
|
|
|
Re: Race Wizard almost done (but not quite)
By: LEit on Fri, 17 February 2006 16:02
|
|
|
Re: Race Wizard almost done (but not quite)
|
|
|
Re: Race Wizard almost done (but not quite)
By: mazda on Fri, 17 August 2007 11:07
|
|
|
Re: Race Wizard almost done (but not quite)
|
|
|
Re: Race Wizard almost done (but not quite)
By: mazda on Thu, 06 September 2007 07:40
|
|
|
Race Wizard disection
By: mazda on Thu, 06 September 2007 10:02
|
|
|
Race Wizard disection
By: mazda on Fri, 07 September 2007 05:51
|
|
|
Re: Race Wizard disection
By: m.a@stars on Sat, 08 September 2007 14:00
|
|
|
Re: Race Wizard disection
By: mazda on Mon, 10 September 2007 03:25
|
|
|
Re: Race Wizard almost done (but not quite)
By: yartrebo on Wed, 03 October 2007 15:16
|
|
|
Re: Race Wizard almost done (but not quite)
|
|
|
Re: Race Wizard almost done (but not quite)
By: yartrebo on Wed, 03 October 2007 21:26
|
|
|
Re: Race Wizard almost done (but not quite)
|
|
|
Re: Race Wizard almost done (but not quite)
By: ConstB on Sat, 06 October 2007 12:56
|
|
|
Re: Race Wizard almost done (but not quite)
By: yartrebo on Sat, 06 October 2007 14:39
|
|
|
Re: Race Wizard almost done (but not quite)
By: Hilton on Tue, 15 March 2005 12:46
|
|
|
Re: Race Wizard almost done (but not quite)
|
|
|
Re: Race Wizard almost done (but not quite)
By: icebird on Wed, 16 March 2005 11:44
|
|
|
Re: Race Wizard almost done (but not quite)
|
Goto Forum:
Current Time: Mon Apr 29 08:29:40 EDT 2024
|