- DodaFu's Universal Complex Tool
- Version: 3.42 Beta
- Last Update: April 1st, 2008
- Author: DodaFu [KBG]
- Translator: Dusty
Attention: The current version of this program comes with the german database. This means, the program itself is in english, but the factory/ware names are in german!
I'm working on the translation, but this will take some time. This thread will be updated too as soon as the translation is finished. - [ external image ]
DUCT_V3.42.zip
Installation: Extract the zip. file and run DUKT.jar
Java has to be installed!
If you have downloaded Version 3.41, I strictly recommend you to download the new version 3.42 due to there have been some major problems in 3.41. - [ external image ] The german Thread is here.

[ external image ] Description:

This tool has been developped by DodaFu [KBG] for calculating complexes and any other production cycles in X3. Anything is possible, starting with single factories and ending with a whole trading imperium. The DUCT can be used for X-Btf, X-T and X2 as well.
There is one point that stands out when comparing the DUCT with other complex calculation tools: It is fully adjustable. The user can change Everything - factories, wares, races...
In Addition, there are loads of "Mini-Features" like a sectormap or a roid calculator which tells you where you can find enough roids for your complex.

[ external image ] Main Features:

- Easy complex calculation. Simply enter the factories which produce your product, the DUCT tells you which factories you need to make the complex self-sufficient.
- Calculation of HQ-Supplying complexes (Ship production)
- Fully adjustable - the user can add, change and delete wares, factories and sectors - this makes the DUCT compatible with all mods.
- Descriptions of all races, wares and factories
- Complete list of all asteroids
- Automac mines - choose a sector, and the DUCT tells you which roids you need.
- Loads of additional tools, like a universe map, route-planner, yield calculator, help system and maybe some eastereggs...

[ external image ] ARES Export:

The DUCT is able to export a list of stations which can be imported by A.R.E.S..
To export the file, calculate your complex and select "Import/Export" in the main menu. Then hit the "ARES" Button. Now, a file named 498848.xml will be created in the "out" folder of the program (this folder can be changed in the options).
Now this is important: You have to rename the file to 448848.xml AND open it with the Text Editor and change the line <language id="49"> to <language id="44">. Now copy the file into your "t" folder located in your X3 main directory. Then you can import the list using ARES. See the ARES manual for details.

[ external image ] First Steps:

Calculating complexes
EXAMPLE: I want to build a self-sufficient booze-comlex. I have a silicon-roid with a yield of 10. My complex should contain 1 Space Fuel Distillery L and 1 Bliss Place M. What do I need to make this complex self-sufficient?
1. Run the DUCT
2. Look at the left side. There you'll see a list of all factories. Now search the Distillery and the Bliss Place.
tip: The easiest way to find a station or a ware is to use the 'search' feature. Go to Search/station and type the name (or a part of it). Now you can scroll trough the results with down-/upward.
3. Enter the two factories: 1 Distillery L and 1 Bliss Place M.
[ external image ]
4. Now you have to create the mine. Go to New/Add mine. Select the size (L), the yield (10) and the product (Silicon wafers).[ external image ]
5. Scroll down in the list to your new mine. Enter 1.
6. Click on 'reverse calculate'. Now, the tool calculates what factories you need to make the complex self-sufficient.
7. The list's a little crowded. But that's no problem – click on 'activate filter' on the left bottom of the window. All factories which you don't need will be hidden.
8. Finished – Now you can see your complex. It should look like this. That was it – calculating complexes can be as this easy

9. If you want to, you can save the result in a textfile. Go to File output/Put out as textfile. Now you can find your complex in following folder: DUKT/out/simple.txt
Calculating the complex for a ship-production
EXAMPLE: I want to produce the M7-Hyperion in my headquarters. I know which resources I need and how long it takes to produce it. But what complex do I have to build for a constant production?
1. Run the DUCT

2. First, you have to create the ship. Go to New/Add wares. Enter the name and select the transport class 'Ship L'. It should look like this:
[ external image ]
Select 'Examine', and if all settings are correct, click on 'create'.
3. Now, go to New/Add ship production. Select the Hyperion as the product.
4. Search the new ship production at the bottom of the factorylist. Selecht 'deactivate' and 'change'.
5. Enter the correct resources.
6. Click on 'reverse calculate'. Now, the tool calculates what factories you need to produce the hyperion. This complex will be self-sufficient, if you enter the mines too.
7. The list's a little crowded. But that's no problem – click on 'activate filter' on the left bottom of the window. All factories which you don't need will be hidden.
8. Finished – Now you can see your complex. That was it – calculating complexes for producing a ship can be as this easy


[ external image ] Changelog:

Version 2.9:
- comma-values will be written out
- Fixed: Building costs exceedet a maximal value, this is now increased
- Fixed: old counts for factories/wares if the options have been resetted
- Fixed: "Enforce surplus production with intermediate products" wasn't set in the options even if it has been setB
- Fixed: Usage of roids was calculated incorrect in some cases
- Fixed: "Clear fields" ignored the roid list
- Fixed: "Enforce surplus production with intermediate products" created an abort too early
Version 2.8:
- All problems with threads fixed (thanks to all who reported those bugs)
- New option to enforce surplus-production at intermediate products
- New status: All roids taken, some differ
- Sector complexes will be identified
- If 1 is entered as intermission, it will be reduced to 0
- Position of trades/transfers doesn't matter for the calculation
- The size of automatic generated mines can now be chosen
- Mines with a yield of 0 will be calculatet automatically, too
- Fixed: Error with the first roid in a list
- Fixed: Error with parralel reverse calculation
- Fixed: Without roids, the complex is always identified as a sector complex
- Fixed: Wrong ware as roid type, if the index of the ware has been modified
- Fixed: the optimal calculation didn't calculate trades/transfers which are selected as possibilites
- Fixed: roid list wasn't saved, even if this was desired
Version 2.62BETA:
- New status: roids available, some deviate
- sector complexes will be detected
- Fixed: error with the first roid in a list
Version 2.59BETA:
- Possibility to enter an intermission, which is considered by all
factories, mines, tradings and transfers
- line-by-line output of factories in the textfile
- First split-up to threads
- Lists optimized
- Fixed: wrong FULL-status when several mines with the same
mineral were present
- Fixed: Nullpointerexception in the route planner when
deactivated the logs were deactivated and a route through a
forbidden sector has been choosen
- Fixed: non-consideration of the size in the change-menu of
level-r-factories (thanks to jlethone, who found this error)
- Fixed: wrong price when creating mines
- Fixed: inaccurate price when duplicated
- Fixed: white text in some fields
Version 2.0 (KBG-Release):
- Roid-lists added
- Coordinates in the Universe-map will be shown even at existing
sectors
- Removed some pop-up-windows (They will only be shown if they
differ from the standard-values)
- Universe map available in the "create sector" and "change
sector" dialogueU- Route-logging is optional
- Extended Filter
- Fixed: Behoben: Bug in the sector-coordinates when creating a
new sector
- Fixed: Username isn't the prefix of the player-race
- Fixed: Credits (money) will be lost when saving a ship
production
Version 1.9
-New features:
---Included a Sector-System
---A route planner to find the nearest way from sector A to B
---Universe Map with informations about shipyards, equipment docks etc. and gate positions
---New race system
---Help system - pressing F1 will show a help-window
-visual point-out for buttons
-simple moving of factories and races in the list
-revised interface
-some bugs fixed
-many revised features
Version 1.32BETA:
- If you enter resources again, the old settings will be adjustet to the new ones.
- Special mark of buttons, if you point on it with the mouse
- Easy replacement of wares and factories in the main window: first click selects a ware/factory, second click locks it again. V
- Program has now an icon
- New Check: Deactivated factories - shows all deactivated factories.
- New Check: Reverse calculation settings, shows all wares which are reverse calculationable, but have no correct main factory
- Fixed: reverse calculation settings at minerals not active
- Fixed: Long complex names are cutted off at 2 sides
- New ware type: With Asteroids, normal ware, which can be used for creating asteroids, but not for creating mines
- New factory type
- Changes in the database which are made in version 1.3.2 can NOT be used in older versions!
Version 1.1:
Release (english version)
- Scrolling thru lists with the mouse wheel
- Close Windows with the standard buttons (x) top right
- possibility to change button positions
- "Apply Changes" and "Abort" are now in the middle of the window
- Deleting of factories is only possible if "Permit Changes" is activated
- Info-window during calculations
Version 1.01:
- Most Buttons have been replaced by menus
- Size S is now placed, if all other ticks have been removed.
- 3 Input fields at the mineral details were inactive, even if the rest wasn't
Version 1.0:
Release (german version)
- selection of a race for a factory
- possibility to ink factories of a specified race
- possibility to move factories in the list by an index
- check, which tests, if the first resource of every level-r-factory is used in the correct usage (900/hour).