[MOD/Script] LI Production Modules (PM) - v7.2 29/08/2010

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

I will be patching v4 (already!) for shields. The issue is that when PM creates a Light, Medium & Heavy shield factory you only get the option for 5 MJ, 200 MJ and 2 GJ (This is down to how the game creates the factory, not PM).

To fix this short fall when PM detects one of the above you will be given the option do downgrade each to its lesser counterpart. Hope that makes sense?

If you can think of any other factory or Forge where this would be needed please let me know.

LA
Last edited by Logain Abler on Tue, 1. Sep 09, 10:10, edited 1 time in total.
Tasolth
Posts: 79
Joined: Mon, 20. Oct 08, 21:49

Post by Tasolth »

Sweet Caroline, v4 looks absolutely beautiful. Can't wait to give it a run.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

Tasolth wrote:Sweet Caroline, v4 looks absolutely beautiful. Can't wait to give it a run.
:) Cheers, needs a good run out so let me know how you get on. I've an L version with around 160 modules running churning out Drones for SSDN & LSDC and masses of missiles!

The only issue I can see is ensuring its local production is balanced with any FDN requirements. I always over produce resources and limit what the Node accepts via its ware cap, what the Node won’t take can then sit in the Production Complex until required. The beauty is I can change production on the fly, no wasted stations doing nothing.

I only now have mines deployed as far as factories go, really cleans up the Property screen and no massive complexes.

LA
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

Logain Abler wrote:I will be patching v4 (already!) for shields. The issue is that when PM creates a Light, Medium & Heavy shield factory you only get the option for 5 MJ, 200 MJ and 2 GJ.
(This is down to how the game creates the factory, not PM)

To fix this short fall when PM detects one of the above you will be given the option do downgrade each to its lesser counterpart. Hope that makes sense?

If you can think of any other factory or Forge where this would be needed please let me know.

LA
The above fix works a treat, so please let me know if any other products need to be added just in case I've missed something. I'll have a work through the stations tonight to see what needs captured.

LA
Tasolth
Posts: 79
Joined: Mon, 20. Oct 08, 21:49

Post by Tasolth »

so far no major problems, interface feels a little bit clunky, but nothing too bad. specifically what I mean is I link the module, have to confirm the link, then turn the module on, and after I've done this for all my modules, go back in on one of them and tell them all to supply to the FDN node (thanks for that all feature btw). Other than that it works great.

As you said, it would be nice if FDN could read ware use / produced per min for PM in conjunction with other stations. AKA silicon, ore, and ice mines that need energy, and produce mineral products. PM cant read the minerals coming in, while FDN cant read whats coming out of the PM.

Basically if its connected to the node, It would be nice if it would have one report that shows everything connected to that node, PM or otherwise.

I agree 110% that PM helps clear up sector lists from lots of factories, or complexes, and makes managing factories a lot easier.

One question though, I haven't tried it yet, but I use XXL facts by mutantdwarf, wondering how PM will handle them if at all. (mostly have it for adding the special forges not present in a normal game).
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

XXL isnt updated to 2.1 yet either, but is supposed to be in progress, although its way overdue on the date I last heard.

But its a good question. Since FDN has to handle complex cleaner crunch modules, PM should be able to handle XXL stations.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

Tasolth wrote:so far no major problems, interface feels a little bit clunky, but nothing too bad. specifically what I mean is I link the module, have to confirm the link, then turn the module on, and after I've done this for all my modules, go back in on one of them and tell them all to supply to the FDN node (thanks for that all feature btw). Other than that it works great.
The confirm link and start production really comes from how I setup the complex, I link more stations than I’m initially going to use. For example, I’ll link 5 XL SPP with the required Crystal, Meatsteaks & Beef factories to support full production. I won’t have then all initially active (so easier just to have then linked but production off) I would just scale up & down as required.

I must admit linking to individual FDN Node was the last feature, and a last minute change. I also don’t class it as a core PM setting as it will only work if FDN is installed, that’s why I placed it in the additional update, module configuration screen.
Tasolth wrote:
As you said, it would be nice if FDN could read ware use / produced per min for PM in conjunction with other stations. AKA silicon, ore, and ice mines that need energy, and produce mineral products. PM cant read the minerals coming in, while FDN cant read whats coming out of the PM.

Basically if its connected to the node, It would be nice if it would have one report that shows everything connected to that node, PM or otherwise).
Easier said than done unfortunately, the FDN report works on a selected ware and the values are taken from the factories details.
A Production Complex is a PHQ with Modules that mimic the production properties of a factory; the report is more of a local overview of production at the module. Granted the details are there but there is a lot of extra work/code to incorporate the details into FDN or visa versa. But something I may look at eventually but far from a priority at the moment.

As for XXL, if there standard factories they should work fine.

LA
Tasolth
Posts: 79
Joined: Mon, 20. Oct 08, 21:49

Post by Tasolth »

That's the problem, the XXL facts aren't standard factories as far as I know.
I remember an old bug that exposes the problem. They are essentially wheat farms, that when deployed, a script changes them to the proper size and product / resources. That's why I was wondering if they would work. But I do know that they won't wort after re-reading how PM operates.

Reason I was also asking about integrating the FDN and PM production report, I like to have my energy grid separate from my production complex. In FDN that was essentially multiple sectors worth of factories all combined using FDN.

Don't get me wrong. I do very much appreciate what you've done in getting PM to work as it does. This is all just icing on the cake. I'll have to watch my silicone, energy cells and ore a little more closely now is all. :shock:
someone else
Posts: 2972
Joined: Sun, 18. Jun 06, 13:37
x3tc

Post by someone else »

Tasolth wrote:That's the problem, the XXL facts aren't standard factories as far as I know.
I remember an old bug that exposes the problem. They are essentially wheat farms, that when deployed, a script changes them to the proper size and product / resources. That's why I was wondering if they would work. But I do know that they won't wort after re-reading how PM operates.
imho a small change can make the script recognize the new fabs... it deploys a dummy station as usual, then detects its specifications, if the product is delexian wheat while the name of the fab is NOT Delexian wheat fab M/L it waits and checks every 10 secs or so until detects that the product is NOT delexian wheat. Then contiunes as usual with the script integrating the data and then killing the "dummy" station.

it will be a bit longer to load fabs, but it would work fine this way
Trade, Fight, Build, Think, Modify.
Ship Rebalance Mod
OOS Rebalance
Resized Aldrin Big Rock
SIDE/TOP/FRONT Ship Size Comparison
Remember young Padawan: money stolen can be, time cannot.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

I'll have to put some thought into the XXL issue. I'm not keen on leaving a dummy station deployed with its production task running while it waits for another script which is out of my control to kick in. When I say not keen, I should say I won't change it. I do try ad be accommodating as I think most of my responses will show. It’s a work around someone else so many thanks for the suggestion :)

The report will be looked into, but it will be a while.

LA
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

LA, dont call the XXL scripts. Take them and integrate with yours using your script naming convention, or rebuild them if need be using them as a guide.

Then you have complete control.

Then if someone wants to use both PM and XXL, you instruct them to remove the XXL setup script, and then you ignore the others. (Or you include a dummy XXL setup script that does nothing, that overwrites the original one.)

Maybe package it as a PM-XXL conversion pack, so only those running both need to install it.
Tasolth
Posts: 79
Joined: Mon, 20. Oct 08, 21:49

Post by Tasolth »

I'm not anywhere near worried about using XXL's and PM. it was just a thought.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

Trying to put some thought into how to improve the wares utilisation reporting between PM and FDN.

As I see it there are two issues:

i) FDN being able to take into account PM supplied wares in its existing wares report
ii) PM being able to report on resources which are not produced locally

For this the Report will have a search all Docks, TL’s and PM within a 5 jump range.
Then cycle through all the modules checking if linked it’s linked to the Node, then check if the selected ware is a product. If not a product cycle through the resource array to see it the ware is required.

Granted this is the long winded way, but this could be hundreds of Modules to check.

A short cut (although just as much work to maintain) is that the Node maintains an array (Station/ship, Module Number, ware, production time, Product/Resource) and queries that, but this would still need code to maintain it, called each time a Module has its FDN linked status changed. It may be easier to break the Array down into an Array within an Array….

The PM report for resources would be a case of checking each modules wares and comparing it against what the PM produces (hopefully).

This will be a bit of work, especially to ensure that the Nodes Array is maintained.

I'm on call this weekend and the girlfriend is away on a course, I'll have a play then.

Once I've sorted the reporting side of things I'll have a look at XXL compatibility (but no promises there).

LA
Fragile Ego
Posts: 174
Joined: Thu, 18. Sep 08, 04:15

Post by Fragile Ego »

Logain, I'm just getting started with PM and FDN so this is probably my doing :) But PM isn't working for me at all. I have an FDN Node in the Unknown Sector E of Montalaar and sent a Mammoth with a Boron SPP XL on board to Akeela's Beacon.

As far as I can tell I have everything in place, the PM script is running, and I can access the menu and set up the module. But nothing happens. The FDN doesn't pass crystals to the PM and the PM doesn't produce any ECs. I don't get any error messages either even with debugging on.

One thing I'm unclear on is whether or not we're supposed to be able to see the PM module as a linkable station on the FDN main menu. If so, it's not showing up for me.

Anyway, I deployed the SPP and linked it via the FDN menu and it works perfectly. Crystal goes to the SPP and energy goes back to the node. So it doesn't appear to be an issue with the FDN script, which is why I'm posting it here.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

Fragile Ego wrote:Logain, I'm just getting started with PM and FDN so this is probably my doing :) But PM isn't working for me at all. I have an FDN Node in the Unknown Sector E of Montalaar and sent a Mammoth with a Boron SPP XL on board to Akeela's Beacon.

As far as I can tell I have everything in place, the PM script is running, and I can access the menu and set up the module. But nothing happens. The FDN doesn't pass crystals to the PM and the PM doesn't produce any ECs. I don't get any error messages either even with debugging on.
Debug writes to file, not player log. It will be a file called log09913.txt under in the Egosoft folder in your documents. Email or post the file and it will tell me what’s going on.

The TL will need to be within the Node range and there will need to be an Adv Sat in the sector.
Fragile Ego wrote: One thing I'm unclear on is whether or not we're supposed to be able to see the PM module as a linkable station on the FDN main menu. If so, it's not showing up for me.
No it won’t, FDN will show if a Production Complex is installed. I will be looking at this in a later version but due to the nature of PM its going to be a while before I get this working and it will only be for fixed positioned Modules, not mobile ones.
Fragile Ego wrote: Anyway, I deployed the SPP and linked it via the FDN menu and it works perfectly. Crystal goes to the SPP and energy goes back to the node. So it doesn't appear to be an issue with the FDN script, which is why I'm posting it here.
So ignore above, FDN can see the sector. If you run debug on the configured module I’ll have a look. More than likely there’s an issue with the supply link between Node & TL, but the logs will tell me that.

LA

Edit: Sorry for the late response

Edit 2: The TL will try and get resources from any Node in range if it doesn’t have them locally, even if it’s not linked to a Node. If the Module is linked to a Node (Supply FDN) you may not see the E-Cells being produced as the Module is flagged to send them to the Node?
Fragile Ego
Posts: 174
Joined: Thu, 18. Sep 08, 04:15

Post by Fragile Ego »

Logain, late? are you kidding? You're blisteringly fast!

The debug file only says: "Started" nothing else.

After reading your suggestions I went back and tried it a few more times in different ways, this time with an Orca and Cahoona Bakery L, that way I can see exactly when the Argnu Beef aboard the Node gets used. I tried it with debug on and off (again nothing going to the log file) and I tried it with sending the Meatsteaks to the Node and without. Still no joy.

So I loaded the Bakery onto the Node itself and activated it there as a module and it works perfectly! Argnu started to be used and Meatsteaks began to appear, plus the log file is getting filled with successfully completed tasks.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

Fragile Ego wrote:Logain, late? are you kidding? You're blisteringly fast!

The debug file only says: "Started" nothing else.

After reading your suggestions I went back and tried it a few more times in different ways, this time with an Orca and Cahoona Bakery L, that way I can see exactly when the Argnu Beef aboard the Node gets used. I tried it with debug on and off (again nothing going to the log file) and I tried it with sending the Meatsteaks to the Node and without. Still no joy.

So I loaded the Bakery onto the Node itself and activated it there as a module and it works perfectly! Argnu started to be used and Meatsteaks began to appear, plus the log file is getting filled with successfully completed tasks.
Thanks for the info, I will test now and get back to you.
LA
Last edited by Logain Abler on Thu, 3. Sep 09, 22:20, edited 1 time in total.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

Logain Abler wrote:
Fragile Ego wrote:Logain, late? are you kidding? You're blisteringly fast!

The debug file only says: "Started" nothing else.

After reading your suggestions I went back and tried it a few more times in different ways, this time with an Orca and Cahoona Bakery L, that way I can see exactly when the Argnu Beef aboard the Node gets used. I tried it with debug on and off (again nothing going to the log file) and I tried it with sending the Meatsteaks to the Node and without. Still no joy.

So I loaded the Bakery onto the Node itself and activated it there as a module and it works perfectly! Argnu started to be used and Meatsteaks began to appear, plus the log file is getting filled with successfully completed tasks.
Thanks for the info, I will test now and get back to you.
LA
I’m not sure what the issue is but I have a work-around.
Explanation, the code that runs the modules is the same whether it’s a Production Complex, Dock or TL.
However when you go through the same set-up, link station, start production, on a TL as you do on a Dock or P Complex the production task is not started!
However, if you turn the modules production off & then on again it starts with no issue, this being the work-around. I will need a few cups of tea, some time scratching my head and shaking my fist at the monitor, by then I should have a fix.......
I also need to see if the same thing is happening on Docks & P Complexes.
Thanks for the report Fragile Ego. Let me know how you get on with the work around....

LA

Update: Just tested P Complexes & Docks and they work with no issues, just TL's which are being Grrrrrrrrrr :evil:

LA
Fragile Ego
Posts: 174
Joined: Thu, 18. Sep 08, 04:15

Post by Fragile Ego »

Yay! The workaround works for me too! :D You're awesome!

I don't know if you noticed this, but the interface is a bit flaky, for example...if I stop/restart the production on the main "Production Module Menu" it works, but if I do it on the reconfiguration screen it doesn't.

And on a somewhat related issue. If I select "Supply FDN" from the main menu it just switches from "Off" to "1", it doesn't allow me to select which node to supply. But if I go to the reconfiguration menu this time, it will ask for the node I want to supply. :gruebel:

Anyway, besides that, great work! The PM is a very cool idea. Like some of the other comments I'm also looking forward to a version that will show production values to the FDN but I know that's a ways off. Until then I'll just use the complex calculator to figure out how many modules I need to hook up of each factory type.
chrisrico
Posts: 54
Joined: Sun, 1. Apr 07, 05:10
x3tc

Post by chrisrico »

This may be a stupid question, but I haven't gotten into station building because the whole station complex thing is so daunting and, well... complex. Does a production complex basically alleviate the need to build large station complexes (with the exception of ore production)?

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”