[TC][AP][Script][AL] LI Freight Distribution Network (FDN) – v8.04

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

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

wwdragon
Posts: 3761
Joined: Mon, 1. Oct 07, 02:18
x4

Post by wwdragon »

:lol: Thanks.

That should be specified somewhere in the intro posts then, cause I did not pick up on the fact that any station can be the DC.
Editing posts since long before I remember.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

wwdragon wrote::lol: Thanks.

That should be specified somewhere in the intro posts then, cause I did not pick up on the fact that any station can be the DC.
I will update, put in the User Guide and FAQ, but I'll make it a more prominent statement in the first post.


LA
wwdragon
Posts: 3761
Joined: Mon, 1. Oct 07, 02:18
x4

Post by wwdragon »

Cool. :)

I have a feature request: The ability to transfer money in and out of the designated DC.
I'd like to be able to access it from the main FDN menu, via typed in amounts.
It is very easy to use, compared to the station slider, when dealing with large amounts of credits.

I'm home most of today, so I'll keep this going and keep adding factories all over the place. When I get up to around 30 to 50 all told, I can stress test this while using seta.
Editing posts since long before I remember.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

wwdragon wrote:Cool. :)

I have a feature request: The ability to transfer money in and out of the designated DC.
I'd like to be able to access it from the main FDN menu, via typed in amounts.
It is very easy to use, compared to the station slider, when dealing with large amounts of credits.

I'm home most of today, so I'll keep this going and keep adding factories all over the place. When I get up to around 30 to 50 all told, I can stress test this while using seta.
FDN had this feature and it will be added to v8 for release of v1, the test build is for the core features and supply logic.

So yes :-)

LA

Edit: To be honest I never used the feature mark_a_condren’s Universal Banking v502 is a far superior option.
wwdragon
Posts: 3761
Joined: Mon, 1. Oct 07, 02:18
x4

Post by wwdragon »

Thanks. :)

Interesting mod. I'll give it a try later.


Somewhere in the faq, it should be mentioned that not setting any value(default) for the Sell Above Level setting, causes no wares of that type to be sold.

Btw the ability to add all stations to FDN at once is REALLY nice. 8)
Editing posts since long before I remember.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

wwdragon wrote:Thanks. :)

Interesting mod. I'll give it a try later.


Somewhere in the faq, it should be mentioned that not setting any value(default) for the Sell Above Level setting, causes no wares of that type to be sold.

Btw the ability to add all stations to FDN at once is REALLY nice. 8)
Does the guide not cover the point?

DC ware management options:
The following options are set at the ware level.

Remote Access past stock level – This is the level, which if set will limit access to the ware by none-production elements

Allow FDN to buy ware – This will allow the DC to buy the ware if required to maintain factory production, this is only called if there is insufficient wares held on the DC
Buy at/or below – This is the price at which or below which the DC will attempt to but the ware

Sell ware past stock level – This will allow the DC to sell the ware once the stock level is higher
Sell ware at/or above - This is the price at which or above which the DC will attempt to sell the ware

Move Ware – This will allow the user to move stock to any owned Station or Ship.

Note: All stock level inputs will accept 0 upwards; the value can be turned off with any negative number such as -1
Note: Wares will be removed from the virtual stock before the physical.


I can say that by defualt the option is not set, but I would have thought it was a given?
wwdragon
Posts: 3761
Joined: Mon, 1. Oct 07, 02:18
x4

Post by wwdragon »

It doesn't specify what the default does, no. If you've never played with the number, you would not know that - means the same as -1.

Oh that reminds me! What is Remote Access used for now; can you give an example, please?

Bugs: When I made a second EQ and switched it to be the control center, the profit from sales still goes to the first EQ!

Switching the control center to the second EQ caused all ware settings to be lost. Please make it transfer them.
Settings were still there when switching back to original EQ.
Editing posts since long before I remember.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

wwdragon wrote:It doesn't specify what the default does, no. If you've never played with the number, you would not know that - means the same as -1.

Oh that reminds me! What is Remote Access used for now; can you give an example, please?
Remote access is used to limit non-production access to stock, so in this case Docks, I think this is critical to ensure that wares required for production are not lost.
I will be writing supply script which can be called by other scripts; again they will only be able to remove wares above the remote access level.

Will add to the FAQ
wwdragon wrote: Bug: When I made a second EQ and switched it to be the control centre, the profit from sales still goes to the first EQ!
I think I know what this is; the sell script has a wait within each loop to ensure it does not lockup other scripts or processes. It maybe that this only calls the DC ref at the start, I will have a look and see if this is the case. The fix could be to check the DC each loop and if it’s changed exit the sell loop. This will stop the issue and the sell cycle would start again clean on the new DC

Good spot

LA
Last edited by Logain Abler on Thu, 31. May 12, 16:38, edited 3 times in total.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

Not a Bug: When I made a second EQ and switched it to be the control centre, the profit from sales still goes to the first EQ!
Status - Cleared
Uploaded - N/A
Impact - Fine

Issue - The sell script has a wait within each loop to ensure it does not lockup other scripts or processes. It maybe that this only calls the DC or Dock ref at the start, I will have a look and see if this is the case.

Update: Confirmed this is not a bug, if the sell process was started on a DC but halfway through the process the player changes DC,the sell of wares and profits from that sale will stay at the original DC. This is how it should be as the sale was initiated by the DC or Dock and should stay there. If the DC is changes, once the new DC starts a sell cycle the profits will go to it correctly.



LA
Last edited by Logain Abler on Thu, 31. May 12, 18:02, edited 3 times in total.
wwdragon
Posts: 3761
Joined: Mon, 1. Oct 07, 02:18
x4

Post by wwdragon »

Logain Abler wrote: Oh that reminds me! What is Remote Access used for now; can you give an example, please?

Remote access is used to limit non-production access to stock, so in this case Docks, I think this is critical to ensure that wares required for production are not lost.
I will be writing supply script which can be called by other scripts; again they will only be able to remove wares above the remote access level.

Will add to the FAQ
Ah ok. So right now, there's nothing I can setup to test this function?

Logain Abler wrote: Good spot
LA
:)
Editing posts since long before I remember.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

wwdragon wrote:
Logain Abler wrote: Oh that reminds me! What is Remote Access used for now; can you give an example, please?

Remote access is used to limit non-production access to stock, so in this case Docks, I think this is critical to ensure that wares required for production are not lost.
I will be writing supply script which can be called by other scripts; again they will only be able to remove wares above the remote access level.

Will add to the FAQ
Ah ok. So right now, there's nothing I need to test in relation to this function?
The feature is active but only in relation to supplying other Docks from the DC.


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

Post by Logain Abler »

wwdragon wrote:It doesn't specify what the default does, no. If you've never played with the number, you would not know that - means the same as -1.

Oh that reminds me! What is Remote Access used for now; can you give an example, please?
There are also visual indicators which show you if remote, buy and sell values are set on a ware.

On the DC each ware is prefixed with R|B|S which is Remote, Buy and Sell, if these are green then its active. This is also reflective in the Remote, But At, Sell and Sell At values which will also be green if set.

This should give you an intuitive display of the current setting without drilling down into details.

LA
wwdragon
Posts: 3761
Joined: Mon, 1. Oct 07, 02:18
x4

Post by wwdragon »

Ah yes, I see. :)

I've so-far been unable to find anymore bugs. I must say this is surprising, because usually on anything new there's a crap ton of them. :lol:

Does FDN actively ignore complexes or simply doesn't try to auto manage them? For instance, you mention a workaround for using this with the old pm.
Editing posts since long before I remember.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

wwdragon wrote:Ah yes, I see. :)

I've so-far been unable to find anymore bugs. I must say this is surprising, because usually on anything new there's a crap ton of them. :lol:

Does FDN actively ignore complexes or simply doesn't try to auto manage them? For instance, you mention a workaround for using this with the old pm.
It just ignores them, class them as Docks is an option i suppose, I have a dislike of Complexes.
But I'll have a look.

Edit:
If I add Complexes it will be under their own menu, DC, Factories, Docks, Complexes. I will give the same supply function as docks but without the sell option.

Maybe....

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

Post by Logain Abler »

Early days but no script/game breaking issues reported, so its either going well or the calm before the storm.

This version is really trimmed down with half the script files of the previous version but keeping its core purpose.

I've not found any issues with the virtual stock management side of things but I've only had around 90 factories and one dock deployed. It will be interesting to see how the script works under stress. I might write a script which deploys a few/several hundred factories to see how it holds up.


LA
wwdragon
Posts: 3761
Joined: Mon, 1. Oct 07, 02:18
x4

Post by wwdragon »

Ok.

Yeah, it's good.
Editing posts since long before I remember.
cbtendo
Posts: 12
Joined: Fri, 1. Jun 12, 15:20
x4

Post by cbtendo »

This is cool....
With this mod, I can localize all production station in a few secure sectors and just set up "stores" all over the galaxy.. :D

But, I'm having 2 problems,
1. Do DC automatically moves ware to docks?
I already constructed various factories and connect them all to 1 central DC, all stock are already centralized in the DC. Then, I constructed a Trading Station in other sector, manually adding the product in the station, set the minimum stock level in the dock configuration menu (1000 pcs), and nothing happens.
After waiting for a while (1000x SETA), the stock in my trading station still haven't changed from 0 to the minimum stock level. And when I checked the stock in the DC, I already have 43k of those and I only set "minimum stock" at 2k.

2. my DC (and my trading station) sometimes still bought some argnu beef even though I already set the "allow FDN to buy" to OFF and I have stock surplus of Argnu Beef in the DC
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

cbtendo wrote:This is cool....
With this mod, I can localize all production station in a few secure sectors and just set up "stores" all over the galaxy.. :D

But, I'm having 2 problems,
1. Do DC automatically moves ware to docks?
I already constructed various factories and connect them all to 1 central DC, all stock are already centralized in the DC. Then, I constructed a Trading Station in other sector, manually adding the product in the station, set the minimum stock level in the dock configuration menu (1000 pcs), and nothing happens.
After waiting for a while (1000x SETA), the stock in my trading station still haven't changed from 0 to the minimum stock level. And when I checked the stock in the DC, I already have 43k of those and I only set "minimum stock" at 2k.

2. my DC (and my trading station) sometimes still bought some argnu beef even though I already set the "allow FDN to buy" to OFF and I have stock surplus of Argnu Beef in the DC
Can you turn on the supply debug on, this will show me what’s going on, and screenshot of the settings would help. To supply docks you need to set the Remote Access Level on the DC for the ware and set the Maintain Level on the dock.

On both cases the logs will help, 09910.txt should in my documents.

LA
cbtendo
Posts: 12
Joined: Fri, 1. Jun 12, 15:20
x4

Post by cbtendo »

errm.. this?

http://dl.dropbox.com/u/29836756/log09910.txt

for the screenshots,

[ external image ]
[ external image ]
[ external image ]
*I purposively didn't set the Remote Access Level for Rastar Oil and Silicon Wafers. I thought this might/might not help.. :p

and this is the trading station stock after i set the Remote Access Level
[ external image ]
*the 5000 pcs of mosquito missile in the station is the result of manually moving it using the "move ware" command.

ow yeah, if it helps, I'm using XRM and other scripts....
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

Cheers cbtendo, I'll have a look after work.

LA

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