X3: Sector Planner v1.2 sp1 Released (19 March 2006)

General discussions about the games by Egosoft including X-BTF, XT, X², X³: Reunion, X³: Terran Conflict and X³: Albion Prelude.

Moderator: Moderators for English X Forum

User avatar
ajw2255
Posts: 229
Joined: Sat, 8. Oct 05, 22:53
x3

Post by ajw2255 » Mon, 12. Dec 05, 22:48

Excellent work, thanks a lot for the effort of making it.
Destroy the mothership and the cards will fall like a stack of dominoes. Checkmate

X-it
Posts: 1311
Joined: Wed, 6. Nov 02, 20:31
x3

Post by X-it » Mon, 12. Dec 05, 23:28

LordSuch,

Not sure if the feature suggestions report form is working on your website, but I've submitted a few suggestions. Let me know if you didn't receive them, and I'll post them here or in a PM.

Once again thank you very much for this. Perfect timing, as I'm about to start building factories. :)

LordSuch
Posts: 201
Joined: Tue, 22. Apr 03, 16:08
x3

Post by LordSuch » Mon, 12. Dec 05, 23:34

X-it,

Thanks for the feedback, I have seen your comments, however I just haven't had time to respond to them as yet. Rest assured that they have been logged and I will respond later this evening.

Cheers

LS

X-it
Posts: 1311
Joined: Wed, 6. Nov 02, 20:31
x3

Post by X-it » Mon, 12. Dec 05, 23:55

Thanks. And please, there is no hurry! :oops: Just wanted to check if they arrived ok. I'm going to bed now anyway... :) Good to know that the online form is working as well.

X-it
Posts: 1311
Joined: Wed, 6. Nov 02, 20:31
x3

Post by X-it » Wed, 14. Dec 05, 10:04

The Station Calculator indicates that an XL SPP will generate 314,400 credits an hour in profits with average prices (buy crystals for 1684 and sell energy for 16). I went through most of the list, and this was definitely the biggest money maker (M SPP had 62,880 credits per hour).

On the known issues page there wasn't anything mentioned about the SPPs, so I assume the numbers are correct, although I've heard that SPPs are no longer the 'biggest money makers' in the X-universe?

Any chance that the numbers for these are incorrect?

Another thing: On the known issues page it says:
The resource usage display in the main window ignores "explored" sectors
What does this mean, exactly?

jlehtone
Posts: 21815
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone » Wed, 14. Dec 05, 10:35

X-it wrote:I've heard that SPPs are no longer the 'biggest money makers' in the X-universe?

Another thing: On the known issues page it says:
The resource usage display in the main window ignores "explored" sectors
What does this mean, exactly?
The resource usage probably can tally up consumption and production from nearby sectors. What if it does indeed use all nearby sectors instead of just nearby explored sectors?

The 'biggest money maker' refers to X2. You could get a SPP for 240k in X2. Easy to set up early on. Paid itself in few hours. What is the price of SPP XL? Is it 20.000k? That is about 100-fold investment. However, the increase in profitability (average-price) is only 10-fold. Besides, the X2 SPP really shone, if you could sell at max. The max price for energy was 23 then and is 19 now. And price is not everything. Demand counts too. You can never sell weapons for more than average price, but what is their production cost? Furthermore, assume that the production cost for every fab is 0. Selling at average, how do the stations rank up then? SPP did won that race in X2 by a fair margin.


To stay at least vaguely on topic: How does Sector Planner (the greatest playing aid since sliced bread) convert yield to standard factory units? I came up with my equation, but what would I know?
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.

X-it
Posts: 1311
Joined: Wed, 6. Nov 02, 20:31
x3

Post by X-it » Wed, 14. Dec 05, 10:48

Thanks jhletone. Thorough and logical post as usual. One can assume the numbers are correct then.

When setting the max profit values for it (buy crystals at 1432, sell energy for 19), you'll get a profit of 796,800 credits an hour.

If you create a loop or a complex providing free crystals, you'll make 1,656,000 credits an hour selling at max price, and 1,324,800 selling at average. But then you'll have to deduct all the energy that your loop/complex needs, so single SPPs are probably the way to go.

And to try and stay on topic by answering your quesiton: I have no idea how Sector Planner converts yield to standard factory units... :P

The_Abyss
Posts: 14933
Joined: Tue, 12. Nov 02, 00:26
x3

Post by The_Abyss » Wed, 14. Dec 05, 11:12

Thread added to Players Guides

Excellent work!

LordSuch
Posts: 201
Joined: Tue, 22. Apr 03, 16:08
x3

Post by LordSuch » Wed, 14. Dec 05, 12:32

The_Abyss wrote:Thread added to Players Guides

Excellent work!
Thanks!
jhletone wrote:To stay at least vaguely on topic: How does Sector Planner (the greatest playing aid since sliced bread) convert yield to standard factory units? I came up with my equation, but what would I know?
Like X2 it works on the principal that a 25 yield mine produces one factory unit multiplied by the size of the mine (2x for M, 5x for L). I believe this to be correct from my limited testing in game, if anyone knows any different then please let me know.

jlehtone
Posts: 21815
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone » Wed, 14. Dec 05, 13:46

LordSuch wrote:
jlehtone wrote:To stay at least vaguely on topic: How does Sector Planner (the greatest playing aid since sliced bread) convert yield to standard factory units? I came up with my equation, but what would I know?
Like X2 it works on the principal that a 25 yield mine produces one factory unit multiplied by the size of the mine (2x for M, 5x for L). I believe this to be correct from my limited testing in game, if anyone knows any different then please let me know.
I have tried to express my conseption about the matter in here.

However, just last night I compared my calculations against X2 SectorPlanner and naturally the Silicon values did not match. Hence my uncertainty. I trust my math, but not that much :roll: Despite the numbers, my X2 Mammoth will haul Silicon mines to Elena's Fortune anyway.
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.

LordSuch
Posts: 201
Joined: Tue, 22. Apr 03, 16:08
x3

Post by LordSuch » Wed, 14. Dec 05, 15:11

jlehtone,

Have you actually validated your formula under X2 or X3? I validated mine under X2 but have only had a very brief check in X3 and the values looked pretty much the same - also the game files seem to back this up.

On the Sector Planner FAQ there is a formula for converting cycle time (prod_time) to yield which is:

Code: Select all

yield = (96 / prod_time) * 25
If we rearrange this to get cycle time from yield we get

Code: Select all

prod_time = 96 * 25 / yield
Where prod_time is the time taken to produce one silicon wafer.

This certainly held true in X2 and therefore there was no diminishing returns from larger yields. Also it means that a 25 yield mine will feed exactly 1 factory (ignoring M / L variations).

My concern about your formula is there seems to be a number of +1's that seem to have no logical reason. For instance when coding you would normally guard against a divide by zero rather than arbitrarily adding 1 which effects the calculation, particularly at the limits. i.e. adding 1 to a yield 2 asteroid is adding 50% to its yield.

In terms of this mathematical examination, I am going to ignore the multiplier from your formula as whether a station creates 2 products in 90 seconds or 1 product every 45s is irrelevant when working out normalised factory units.

If we take your formula (modified to remove the multiplier) as we only want to know how long it takes to produce one unit (set up for silicon)

Code: Select all

BASETIME = 2400

Basic_cycletime = rounddown( BASETIME / (Yield + 1) ) + 1 seconds 
If we think about this as if we're writing code so we guard against divide by zero without adding a factor

Code: Select all

BASETIME = 2400

if (Yield > 0) 
{
Basic_cycletime = rounddown( BASETIME / Yield ) + 1 
}
else
{
Basic_cycletime = -1 // -1 to signify that the cycle time is infinite
}
Guess what? If you ignore the rounding which may or may not be valid (but should be irrelevant anyway) we get:

Code: Select all

Basic_cycletime = 2400 / Yield 
Which is the same as

Code: Select all

prod_time = 96 * 25 / yield
Q.E.D. 8)

On a final note in a mathematical sense 2400 / yield is valid even for zero as the cycletime would then be infinite which is the correct outcome!

If you read all of that well done!

If you have any questions or want to tell me I'm wrong :wink: please let me know.

jlehtone
Posts: 21815
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone » Wed, 14. Dec 05, 21:31

LordSuch wrote:jlehtone,

Have you actually validated your formula under X2 or X3? I validated mine under X2 but have only had a very brief check in X3 and the values looked pretty much the same - also the game files seem to back this up.
:D I dare to disagree.

I have shown X3 in-game values that I did look up myself here. Since we are now mainly talking about the Silicon, I repeat that table:

Code: Select all

Silicon mine L:
Yield/Time/Products
0  40:01  5  *
5   6:41   5
6   5:43   5
13   2:52   5
21   1:50   5
26   1:29   5
31   1:16   5   *
64   1:14   10
* Observations by others, the yield 0 is a case, where the Silicon mine was erroneously built on an Ore asteroid.

I fully agree with you that both multipliers (mine_size and never-under-60s) are mere obfuscation that can mostly be ignored. In the above table, only yield 64 has multiplier 2 and the raw prod_time is 37s.

I just checked my X2 game, and the cycle times are exactly the same there too. I did saw a version of my equation initially in some ancient thread for X2, and have verified it along my X2 game. At least every single case have fitted exactly.
LordSuch wrote:On the Sector Planner FAQ there is a formula for converting cycle time (prod_time) to yield which is:

Code: Select all

prod_time = 96 * 25 / yield
Where prod_time is the time taken to produce one silicon wafer.

This certainly held true in X2 and therefore there was no diminishing returns from larger yields. Also it means that a 25 yield mine will feed exactly 1 factory.
Now allow me to show the table from above again, but this time with raw times in seconds and with prod_time from your equation. I'll even add couple datapoints from my X2 Silicon mines that I just looked up.

Code: Select all

Yield	Cycle	prod_time
0	2401	Inf
5	401	480
6	343	400
9	241	266,67
12	185	200
13	172	184,62
17	134	141,18
21	110	114,29
26	89	92,31
31	76	77,42
45	53	53,33
64	37	37,5
You have validated your data. I have validated my data. Does Egosoft have a random number generator?
LordSuch wrote:My concern about your formula is there seems to be a number of +1's that seem to have no logical reason. For instance when coding you would normally guard against a divide by zero rather than arbitrarily adding 1 which effects the calculation, particularly at the limits. i.e. adding 1 to a yield 2 asteroid is adding 50% to its yield.
Yes, there are two. First is adding to the yield, and the other is just one annoying second more. The odd thing is, which I did realize only recently, that with my equation, Ore mine yield 25 has cycle time to exactly match one factory. The logic for both is beyond me.

LordSuch wrote: If we take your formula (set up for silicon)

Code: Select all

BASETIME = 2400

Basic_cycletime = rounddown( BASETIME / (Yield + 1) ) + 1 seconds 
If we think about this as if we're writing code so we guard against divide by zero without adding a factor

Code: Select all

BASETIME = 2400

if (Yield > 0) 
{
Basic_cycletime = rounddown( BASETIME / Yield ) + 1 
}
else
{
Basic_cycletime = -1 // -1 to signify that the cycle time is infinite
}
Guess what? If you ignore the rounding which may or may not be valid (but should be irrelevant anyway) we get:

Code: Select all

Basic_cycletime = 2400 / Yield 
Programming-wise, it is more efficient to compute than to test for conditions. I would assume that the yield is an unsigned integer, since we really do not need any other values than 0 and positives. Thus, the 0 is the only special case. There is no asteroid with yield 0. Except when you build a mine of wrong type on it. Then it apparently has yield 0. Now, how to show in the game that you have made a mistake. It would be nice, if they would simply deny building on wrong type. However, I could then fly around with a mine in my TL and test where I can build, without scanning the roid first. The mine could have infinite cycle time, but that is a big number to put in there. The mine could just show "Disabled", put that too is a "special" number to place somewhere and requires a way to show it. What they obviously have chosen, is that every mine produces. Yield 0 produces only half of what yield 1 produces. 2 is 50% faster than 1 and 3 is 33% faster than 2. The effect is clear in low-yield roids. You can hardly see it on "normal" ones. 50-yield roid is still ~100% faster than 25-yield one, which is intuitive. The explanation for yield 0 producing is probably that every roid contains some traces of all minerals. This would explain the fisrt "1" in my equation.

Code: Select all

prod_time = int( 25.0*96/(yield+1) )+1
That can always be computed, and there is no reason to test the special condition, because its result has acceptable effect in the game and requires no special handling, ie extra code.

The extra second. Ore mines have obviously a different constant. Thus:

Code: Select all

prod_time = int( 25.0*24/(yield+1) )+1
Without that extra second, yield 24 would be the "fab equivalent". With the second, it is too slow. Yield 25 in there

Code: Select all

25.0*24/(25+1) = 23,08
int( 23,08 ) + 1 = 24
creates the illusion of "exact match". Thus, the "rounding" is not indifferent, but crucial for the logic and very simple in the code too.

The lack of exact match in the Silicon case - no yield matches "fab equivalent" - could be intentional. After all the 100% SPP is intentionally (I presume), "one second off" too.

My equation is not utterly complex. It does fit the observed data perfectly. All that I can do is to rest my case and let the jury do their work :wink:

If only the judges would not have NDA ...
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.

LordSuch
Posts: 201
Joined: Tue, 22. Apr 03, 16:08
x3

Post by LordSuch » Wed, 14. Dec 05, 22:26

jlehtone,

This is an interesting set of data. Unfortunately I'm pretty certain I don't have my data from X2 any more and even if I do, its on a machine with a broken graphics card! However I am willing to entirely trust your data and can therefore only assume that either something changed at some point in X2 or that I deliberately decided to use an approximation. It was getting on for two years ago now when I did the original calculations :o

However if what you are saying is correct (which given the data you have provided, it seems to be) then Sector Planner will underestimate *slightly* the number of factorys that a single mine can support.

For instance (assuming silicon mine L to emphasise the difference):

Code: Select all

Yield   Actual Facts  SP Facts
  12            2.6          2.4
  64            12.95       12.8
Of course the there will be a point at above 64 yield where you can actually support one more factory (with L) than Sector Planner states.

Once I have a working graphics card in my development machine I will address this. I suspect that it never came up in X2 as there were not the M, L variants and therefore the difference would always be less than a factories worth.

Ultimately I concur! :D

On a final note - purely to be picky - If I was writing the code for X3, I would not be calculating the production time for a mine repeatedly I would calculate it once when the mine is built - the yield is an invariant in this context. And I would probably prefer the one assembly instruction overhead for the clearer code (and probably a correct calculation)! However it would appear this is not what happened!

Thanks for you input I will address this once I have a new graphics card.

LS

jlehtone
Posts: 21815
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone » Wed, 14. Dec 05, 23:04

8)

I sincerely hope that I have presented you the "real" data and no misconceptions of mine. (pun unintended)

It is not that bad to underestimate the production. The opposite would be. Everybody having unexplainable lack of wafers.

I agree that the production time is probably computed exactly once and stored in the station description. I do not think they do it in assembly. Optimization is the source of evil, etc. It is still tricky, because every mine can have different cycle time, apart the NPC ones, while the other station types are more homogenous. Memory vs cpu cycles. Both are valuable and used by X3 :wink:

I got into this, because I wanted to get the most out of the few roids in X2. Now I practically mine everything, regardless of cost. :roll: Hence the knowledge. And I wanted to know how much is much. Being a late convert, I naturally use version 1.4 of X2. Was there economy adjustments in those patches?

The L-mines in X3 practically multiplied the amount of asteroids by 5. Where is the challenge, if one can set up 13 self-sufficient weapon factories with just 3 well placed mines (in Ore Belt)?

Now I remember. You corrected the NPC mines to have yield 40 in the latest X2 SectorPlanner. I assume that the data for that is relatively recent?

BTW, Burianek wrote in S&M that factories, I assume High tech, can have different cycle time for player than for NPC. The example was that player fab is faster than the NPC one. It was a description of some T*-file. Thus, I do not know how the ware amounts are affected.

PS. I know the feeling about gfx. Had mine broken in the summer. Took one month to even get the warranty replacement. The replacement occasionally "disappears". Does not consume power either and does not show in the PCI(-E). Had a trusty 2MB Matrox Millennium card in use in the summer. :wink:
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.

LordSuch
Posts: 201
Joined: Tue, 22. Apr 03, 16:08
x3

Post by LordSuch » Thu, 15. Dec 05, 00:17

jlehtone wrote: Now I remember. You corrected the NPC mines to have yield 40 in the latest X2 SectorPlanner. I assume that the data for that is relatively recent?
This was based upon information from Rapier (the person who created the Utopia spreadsheet for X-T).

To be honest I have never spent that much time investiagting NPC production times as you have to monitor over a significant period of time and allow for the actions of traders coming and going which means that it is never an exact science. Particularly secondary resources - X3:SP assumes a rate of 1/3 but that is an educated guess, purely because it seems about right, however depending upon when you monitor you could come up with figures from 1/6 -> 1/2.
jlehtone wrote: BTW, Burianek wrote in S&M that factories, I assume High tech, can have different cycle time for player than for NPC. The example was that player fab is faster than the NPC one. It was a description of some T*-file. Thus, I do not know how the ware amounts are affected.
I'm intrigued as the T-files don't distinguish between NPC and player fabs - unless I have overlooked a field or two. Similarly the production (or consumption - not certain which) rate is in the various TWare files (it was rolled into the price in X2) but again there is no distinction between NPC & player.

It could be internal to the game as it does a number of things that aren't defined in the game files, i.e. NPC stations that require things as primary resources, but the player equivalent does not.

I suppose I really should get round to signing that NDA I printed about 6 months ago and then I would probably know!

jlehtone
Posts: 21815
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone » Thu, 15. Dec 05, 09:11

LordSuch wrote:
jlehtone wrote: BTW, Burianek wrote in S&M that factories, I assume High tech, can have different cycle time for player than for NPC. The example was that player fab is faster than the NPC one. It was a description of some T*-file. Thus, I do not know how the ware amounts are affected.
I'm intrigued as the T-files don't distinguish between NPC and player fabs - unless I have overlooked a field or two. Similarly the production (or consumption - not certain which) rate is in the various TWare files (it was rolled into the price in X2) but again there is no distinction between NPC & player.

It could be internal to the game as it does a number of things that aren't defined in the game files, i.e. NPC stations that require things as primary resources, but the player equivalent does not.
It probably was about TWare Relvalue fields. There are two of them and they represent the production time in seconds. The latter one is for player. The (average) price of ware ought to be Constant*Relvalue. I think that the Constant is about 80 for ships, or at least for some classes of ships. Thus, the Constant depends on ware class, and is hidden somewhere. I have no idea, how different rates for same product are handled nor what is the benefit, but I assume that only high-end products are affected by this. No idea yet :twisted: Explore, Think, ...
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.

LordSuch
Posts: 201
Joined: Tue, 22. Apr 03, 16:08
x3

Post by LordSuch » Thu, 15. Dec 05, 12:43

jlehtone wrote: It probably was about TWare Relvalue fields. There are two of them and they represent the production time in seconds. The latter one is for player. The (average) price of ware ought to be Constant*Relvalue. I think that the Constant is about 80 for ships, or at least for some classes of ships. Thus, the Constant depends on ware class, and is hidden somewhere. I have no idea, how different rates for same product are handled nor what is the benefit, but I assume that only high-end products are affected by this. No idea yet :twisted: Explore, Think, ...
X3: SP gets its all its values from the TWare* files, however I had assumed that the second "Relvalue" field was cycle time related and the first was price related mainly because seperation of price from cycle time was wanted by several modders. I haven't tried modding them and checking the outcome in game so I can't validate either viewpoint.

jlehtone
Posts: 21815
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone » Thu, 15. Dec 05, 13:32

Ho hum, went digging ... real deep ...

This was the post I referred to. :roll:
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.

LordSuch
Posts: 201
Joined: Tue, 22. Apr 03, 16:08
x3

Post by LordSuch » Fri, 16. Dec 05, 01:23

Yeah that was the one I found today also! :P

At some point when I have some time, I need to do a bit of testing on this as I really haven't had the time since the beta of X3: SP was released back in early November. However it shakes down, SP is not that far off the mark at the moment. Ultimately SP will can never be 100% accurate as its model is based upon the average case i.e. if you set buy price to 15 for energy it assumes you always buy energy at 15, whereas in reality you'll sometimes buy it for 12!

Anyway, looks like I've got plenty to do when my development machine is back in working order!

Apocholypse
Posts: 2909
Joined: Thu, 1. Jul 04, 17:19
x3

Post by Apocholypse » Fri, 16. Dec 05, 16:11

Actually, you always buy at 12!

Anyhoo, LordSuch, I been looking at your sector Planner, and found a few errors in the Station profits and resources.

Quantum Tubes:
1.Ore cannot be bought at 49 credits
2.The profits per hour is way off

MicroChips
1.Profits per hour again off by 20-30,000

Solar Power Plants
1.Profits Way way off lol
2.(XL can earn nearly 300,000 more than you puit in

Weapon Component Factory
1.Earns to little
2.At Average Price selling, and at lowest Price buying, it nets only 28,000 but should be getting 46,928.57

Ore Mines
1.Cannot sell at 49 credits!

Alpha PSG's
1.90,780 profit, not 15,124

Alpha Hepts
1.101,536 profits not 22,000

Bliss Place
1.Swamp Plant can be baught for 36 at lowest price
2.It makes 24,000 more profit than you have specified.

Ammunation Factory's
1.84629 is it's profits per hour buying at lowest price not 15,000
2. Again ore cannot be bought at 49 credits

I won't rant any further, but you see my point. Now either I'm terribly terribly wrong, in which case you have my sincerest apology. Or you need to redo some of your figures.

Now, I know I'm not your beta tester but I'm just so dam helpful :P

Basically:

1.Change that ore pirce lol
2.As far as I can see, most if not all of your weapons statistics are inaccurate (you haven't based it on X2 to have you :roll: )
3.High Tech Fabs need to have a breeze over
4.As far as I can see, all food fabs are okay, except for the slight inaccuracy on space weed.

If you want it, I would be willing to help you out on your statistics.

I was going to PM you, but didn't think you would answer.
If you want me to Beta Test..... :) (If I'm right of course)

On a positive note, a side from a few miss calculations, your sector planner is truly work of exelence! Nice work!

Post Reply

Return to “X Trilogy Universe”