Xadrian: Factory Complex Calculator for X3TC and X3AP
Moderator: Moderators for English X Forum
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
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
-
- Posts: 132
- Joined: Fri, 11. Nov 05, 22:46
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.
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.
[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.
- nponoBegHuk
- Posts: 474
- Joined: Thu, 6. Mar 08, 19:55
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):
Spp Factories calculation algorhitm:
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
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
Version 1.3.0 is now available.
Changelog:
Thank you, and have a very safe, and productive day.
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.
Thank you, and have a very safe, and productive day.
Released version 1.3.1
A minor update (Version 1.3.1) is available.
Changes:
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.
Version 1.3.2 is now available. Only change is the addition of two missing asteroids in Guiding Star.
- assemblerbot
- Posts: 81
- Joined: Sun, 11. Feb 07, 20:18
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
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
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.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
There is nothing stopping you from choosing one race over another,except that some races depends on supplies from other races for sepcific supplies.
As said above this calculator gives the cheapest available within the paremeters you set.
eg
I try not to use M size stations any more,so my complexes will be more expensive than if I let it choose for me.
When setting up there is a table which shows wether or not any particular resource has a shortfall in production or a surplus.
So if I see there is a 23 shortfall in wheat,then I can add another wheat farm and add spp etc if needed to supply it.
Then i might need another crystal fab.,which might need another silicon mine.
I continue until it is fully self sustaining if possible.
Thus it could get expensive,if you do not have the funds.
So start with something simple and add to it as needed and when funds are available.
Any shortfalls is down to you to see and adjust.
It is not the fault of the calculator.
As said above this calculator gives the cheapest available within the paremeters you set.
eg
I try not to use M size stations any more,so my complexes will be more expensive than if I let it choose for me.
When setting up there is a table which shows wether or not any particular resource has a shortfall in production or a surplus.
So if I see there is a 23 shortfall in wheat,then I can add another wheat farm and add spp etc if needed to supply it.
Then i might need another crystal fab.,which might need another silicon mine.
I continue until it is fully self sustaining if possible.
Thus it could get expensive,if you do not have the funds.
So start with something simple and add to it as needed and when funds are available.
Any shortfalls is down to you to see and adjust.
It is not the fault of the calculator.
-
- Posts: 237
- Joined: Wed, 9. Feb 11, 11:40
I know this thread is wicked old but I just discovered this tool today as I look to build my first actual complex. OK I do have a Java 6 environment on my Windows 7 machine. It says its Java 6 update 20. I extracted the zip to my x3 tc main folder, tried starting the application and nothing happened. I tried runningit as an administrator and still nothing happened. Wonder what I'm doing wrong.
"I don't understand......how can you shoot women and children"?
"Aw, its easy! You just don't lead them as much"!
"Aw, its easy! You just don't lead them as much"!