# 1 Computations now done with floating point numbers to reduce truncating/rounding errors. Necessary utility files from the floating point math lib are included in the zip, so no need for any extra download.
# 2 Improved filter to extract fabs belonging to the selected complex. This is now done via a subscript.
# 3 Extended ware2relval list to include Jakesnake5's Yaki script (you can now have typhoon and/or disrupter missile fabs in your complex). Also nividium, spaceflies, and Kha'ak and Terran missiles and weapons included.
Installation
Extract the 447004.xml into the /t folder of your X3 folder and all other files into the /scripts folder.
How it works
You will find a new trade command in your ship's trader command menue. Click that, select one of your complexes and then check your log. For each ware the complex is producing you will find an entry with the production cost based on the price settings of the resources of the complex.
Download Link
Thanks to Jakesnake5 for hosting

===========original post========================
As we all know the current production cost (value in square brackets below the product selling price) are always [0] for a complex (not for a station/fab).
{ Note that with 2.0.02 there is no [0] shown anymore. E. }
Although that may be true for a well-planned and self-sufficient complex it is certainly not true in general. Just connect any two stations of the same type, for example two cattle ranches. The prduction cost show [0] irrespectively of the ecell buying price.
My idea is to write a script available as a special command of the player's ship. As input select one of you complexes and the actual production cost is then calculated and written to the player's log.
Would such a script be interesting?
Edit: updated and ready for download - see 6 posts down.E.
{ Download link moved up. E. }
Cheers Euclid