Xadrian: Factory Complex Calculator for X3TC and X3AP

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
Sam L.R. Griffiths
Posts: 10522
Joined: Fri, 12. Mar 04, 19:47
x4

Post by Sam L.R. Griffiths » Fri, 12. Jun 09, 00:34

kayahr wrote:A new version (1.2.1) is available. No new funky features. Just added the new crystal fabs of size L which were introduced in X3TC 2.1

As usual the new version can be downloaded here:

http://www.ailis.de/~k/projects/xadrian/download.html
The L size protein paste fab was also added in 2.1 but it is missing from Xadrian.
Lenna (aka [SRK] The_Rabbit)

"Understanding is a three edged sword... your side, their side... and the Truth!" - J.J. Sheriden, Babylon 5 S4E6 T28:55

"May god stand between you and harm in all the dark places you must walk." - Ancient Egyption Proverb

"When eating an elephant take one bite at a time" - Creighton Abrams

User avatar
kayahr
Posts: 321
Joined: Sat, 12. Apr 08, 20:33
x4

Post by kayahr » Fri, 12. Jun 09, 09:11

Roger L.S. Griffiths wrote: The L size protein paste fab was also added in 2.1 but it is missing from Xadrian.
Ah, I missed that one in the ChangeLog (and still can't find it there). I'll add that this evening or this weekend.

Any other changes which were made but not announced? Unfortunately I can no longer use my data dump script to simply export the data since X3TC 2.0. Would be nice if Egosoft would create a special Game Start which starts the game with the Aldrin plot already finished. Than I could use this start as reference start for the export.

User avatar
JFJohnny5
Posts: 198
Joined: Mon, 12. Dec 05, 17:38
x4

Post by JFJohnny5 » Fri, 12. Jun 09, 16:39

Wow. Really nice app! Well done man. Just wanted to offer my thanks. Will be using this a LOT. :)

User avatar
kayahr
Posts: 321
Joined: Sat, 12. Apr 08, 20:33
x4

Post by kayahr » Sun, 14. Jun 09, 21:31

Roger L.S. Griffiths wrote: The L size protein paste fab was also added in 2.1 but it is missing from Xadrian.
Sorry, but where the hell is this fab? The terran ship yard still only has the M size protein paste fab. The data dump also does not contain the L version of this fab. So it looks to me that this fab is a myth. Or is it a bug and it does not appear when I have finished the Aldrin plot with X3TC 2.0? Maybe the patch forgot to add it to an already existing terran ship yard? Can someone confirm that this fab exists?

User avatar
Sam L.R. Griffiths
Posts: 10522
Joined: Fri, 12. Mar 04, 19:47
x4

Post by Sam L.R. Griffiths » Sun, 14. Jun 09, 22:17

kayahr wrote:
Roger L.S. Griffiths wrote: The L size protein paste fab was also added in 2.1 but it is missing from Xadrian.
Sorry, but where the hell is this fab? The terran ship yard still only has the M size protein paste fab. The data dump also does not contain the L version of this fab. So it looks to me that this fab is a myth. Or is it a bug and it does not appear when I have finished the Aldrin plot with X3TC 2.0? Maybe the patch forgot to add it to an already existing terran ship yard? Can someone confirm that this fab exists?
Just double checked in my 2.0a completed game and verified it was there and it is... in the logical place too rather than shoved to the bottom of the list as with the Commonwealth Crystal Fab Ls.
Spoiler
Show
Have you rewired to the non-Kha'ak TUS#2 and linked this to Neptune?
Lenna (aka [SRK] The_Rabbit)

"Understanding is a three edged sword... your side, their side... and the Truth!" - J.J. Sheriden, Babylon 5 S4E6 T28:55

"May god stand between you and harm in all the dark places you must walk." - Ancient Egyption Proverb

"When eating an elephant take one bite at a time" - Creighton Abrams

User avatar
kayahr
Posts: 321
Joined: Sat, 12. Apr 08, 20:33
x4

Post by kayahr » Sun, 14. Jun 09, 22:29

After I have repeated the Aldrin plot (I was lucky and had an old save game where I just had to fly to the Neptune gate) the Protein Paste Fab L is now available in the ship yard. Looks like a bug that some savegames are not correctly updated by the 2.1 patch (maybe it's a Steam issue, who knows...)

So I added it to Xadrian and released version 1.2.2.

As usual the new version can be downloaded here:

http://www.ailis.de/~k/projects/xadrian/download.html

BlueSwede
Posts: 251
Joined: Sat, 7. May 05, 19:05
x3tc

Post by BlueSwede » Tue, 16. Jun 09, 19:06

Very nice complex calculator. Thanks for your hard work.

Wip3out (Bru)
Posts: 132
Joined: Fri, 11. Nov 05, 22:46
xr

Post by Wip3out (Bru) » Sat, 4. Jul 09, 00:38

Brilliant Calculator! Thanks alot! 8)
Intel i7 4820K @ 3.9GHz
32GB Corsair Dominator 2133MHz DDR3 RAM
Palit Super Jetstream Nvidia GTX980Ti

Kor'ah
Posts: 3312
Joined: Wed, 25. Apr 07, 15:29
x4

Post by Kor'ah » Mon, 17. Aug 09, 03:25

Very nice work. There is one thing it needs to be perfect. An hour-by-hour simulation of the complex running.

This old complex calc still gets alot of use from me because of it's simulation feature. Mostly for tracking energy and ore/silicon useage over a long period of time.
[X3] Guide to training CAG and CLS1&2 pilots
[X3T] Guide to training CAG and CLS1&2 pilots in Terran Conflict

The mercenary code
There is no right or wrong.
There is no good or evil.
There is only the will of the client, and how much they're paying.

User avatar
nponoBegHuk
Posts: 474
Joined: Thu, 6. Mar 08, 19:55
x4

Post by nponoBegHuk » Sat, 12. Dec 09, 17:13

I don't know java but shouldn't be too different from C# I use: I will give it a spin

edit: well it seems I won't have free time anytime soon because of work so I'll let any volunteer correct the "automatically calculated base complex" algorhitm to something more correct, since xadrian currently does it wrong. Here is the correct algorhitm:

For most factories that come in M and L sizes, where L produces 2.5 times as much of product per hour as the M-sized one (pretty much every intermediate product factory like BoFu, BioGas and such), the correct way to determine how many M and L stations you need is as follows (kinda excel format so most of people would understand):

Code: Select all

UnitSize = "M-sized fac. production per hour" / 2
UnitsNeeded=roundup(TotalProductNeededPerHour/UnitSize;0)
LFactoriesNeeded=if(and(isodd(UnitsNeeded);UnitsNeeded>4);1+rounddown((UnitsNeeded-5)/10;0)*2;rounddown(UnitsNeeded/10;0)*2)
MFactoriesNeeded=(UnitsNeeded-5*LFactoriesNeeded)/2
Spp Factories calculation algorhitm:

Code: Select all

UnitSize = "M-sized fac. production per hour" / 2
UnitsNeeded=roundup(TotalProductNeededPerHour/UnitSize;0)
LFactoriesNeeded=if(and(isodd(UnitsNeeded);UnitsNeeded>4);1;0)
XLFactoriesNeeded=rounddown((UnitsNeeded-5*LFactoriesNeeded)/10;0)
MFactoriesNeeded=(UnitsNeeded-10*XLFactoriesNeeded-5*LFactoriesNeeded)/2

User avatar
kayahr
Posts: 321
Joined: Sat, 12. Apr 08, 20:33
x4

Post by kayahr » Tue, 8. Jun 10, 22:59

Version 1.3.0 is now available.

Changelog:
  • Added Polish translation. Thanks to Mariusz and sorry that it took a year until it was finally published...
  • Added up/down buttons to control factory quantities without opening the quantity dialog.
  • Improved shopping list. You can now use up/down counters to note which factories you have already built.
  • Applied nicer style to complex data. Sections can now be collapsed and expanded by clicking the section headers.
  • Fixed error which occured sometimes when loading the same complex two times.
  • Added new preference for displaying factory resources in complex table. (Patch contributed by Milan Gvoždík)
  • Implemented better asteroid yield selection for mines.
  • Fixed Ion/Tracker mine bug which was fixed also in X3TC 2.7.
  • Added player sector. You can configure in the preferences dialog which player sector you have chosen in the game.
This is a pretty big update so expect (and report) problems.

Thank you, and have a very safe, and productive day.

sndle9
Posts: 428
Joined: Tue, 10. Feb 04, 09:00
x4

Post by sndle9 » Wed, 9. Jun 10, 08:55

Cool set of updates. Thank you kayahr.

Had a quick play and it all seems to be working fine so far.

Cheers,
Dave.

whoeva
Posts: 42
Joined: Mon, 28. Aug 06, 20:08

Post by whoeva » Wed, 9. Jun 10, 11:02

Thank you for this update. I was using a really old version without L size crystal fabs!

User avatar
kayahr
Posts: 321
Joined: Sat, 12. Apr 08, 20:33
x4

Released version 1.3.1

Post by kayahr » Wed, 9. Jun 10, 18:32

A minor update (Version 1.3.1) is available.

Changes:
  • Fixed printing.
  • Fixed Null-Pointer-Exception which occured when adding a factory which is already in the complex.
  • Fixed some layout problems in complex table and changed some colors.
  • Completed German translation.

User avatar
TTD
Posts: 11165
Joined: Sun, 6. Jul 08, 10:29
x4

Post by TTD » Wed, 9. Jun 10, 22:15

:thumb_up:

Well done.

Thankyou.

User avatar
kayahr
Posts: 321
Joined: Sat, 12. Apr 08, 20:33
x4

Post by kayahr » Wed, 25. Aug 10, 14:15

Version 1.3.2 is now available. Only change is the addition of two missing asteroids in Guiding Star.

Pezkenin
Posts: 76
Joined: Wed, 10. Jun 09, 22:44
x3tc

Post by Pezkenin » Wed, 25. Aug 10, 17:35

Brilliant work, each version got better and better.

User avatar
Nomadski
Posts: 508
Joined: Sun, 13. Nov 05, 22:24
x4

Post by Nomadski » Wed, 15. Dec 10, 12:27

This is superb, so easy to use

User avatar
assemblerbot
Posts: 81
Joined: Sun, 11. Feb 07, 20:18
x3tc

Post by assemblerbot » Wed, 9. Feb 11, 08:23

Good work, but function 'Add base complex' creates very expensive complexes. For example:
Sector: Mines of Fortune
Factories: 3x Boron Chip Plant, 1x Teladi sillicon mine (yield 72)
Final cost with base complex is more than 43 millions.

I'm not sure if there is a cheaper solution than this:
1 x Boron Bio Gas Factory M (1 x 224,636 cr = 224,636 cr)
1 x Boron Bio Gas Factory L (1 x 561,528 cr = 561,528 cr)
1 x Boron Bofu Chemical Lab M (1 x 809,992 cr = 809,992 cr)
1 x Boron Bofu Chemical Lab L (1 x 2,024,976 cr = 2,024,976 cr)
3 x Boron Chip Plant (3 x 5,012,124 cr = 15,036,372 cr)
2 x Boron Crystal Fab M (2 x 2,973,516 cr = 5,947,032 cr)
1 x Teladi Silicon Mine L (1 x 905,688 cr = 905,688 cr)
2 x Boron Solar Power Plant M (2 x 4,401,840 cr = 8,803,680 cr)
11 x Paranid Complex Construction Kit (11 x 259,696 cr = 2,856,656 cr)
final price: 37,170,560 cr

Tip: your program used cheapest Crystal Fab L (Terran) but terrans have very expensive food chains and moreover I set Boron factories for final products so that is even cheaper if you use food chains you already have :-)

User avatar
kayahr
Posts: 321
Joined: Sat, 12. Apr 08, 20:33
x4

Post by kayahr » Wed, 9. Feb 11, 09:16

assemblerbot wrote: Tip: your program used cheapest Crystal Fab L (Terran) but terrans have very expensive food chains and moreover I set Boron factories for final products so that is even cheaper if you use food chains you already have :-)
This has nothing to do with it. You can disable the use of terran factories in the preferences and you will end up with a more expensive complex. Your custom complex is cheaper because your complex has a minor crystal deficiency. Xadrian always calculates complexes without deficiencies.

Post Reply

Return to “X Trilogy Universe”