[MOD/Script] LI Freight Distribution Network (FDN) - v7.2 21/11/2010

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

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

Post by apricotslice »

mostlikely wrote:Before thinking about the transport method.. how will the inter sector transfer logic work?

Basically you have 2 FDN-N's in 2 separate sectors, both with different collection and amounts of wares.
How will you decide to transfer one ware to the other?

Also as you get 3 or more FDN-N's how will a FDN-N prioritize sending wares to one FDN-N over another FDN-N?

Maybe a FDN-SuperNode which could act for FDN-N's like the FDN-N acts for factories.
Too complicated.

There should only be 1 FDN, and it beams everything in to itself, and beams out everything where its needed.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

The logic between FDN-N's is the easy bit. Simple terms there is ultimately one factory array for the sector, each factory is called and the Primary & Secondary resources are checked. If the FDN-N has the ware and in quantity it's passed to the factory , this is were I'll put in the script to capture what wares are not held by the Node.

The FDN-N search function will build a quick array of FDN's and the number of Jumps away. Loop through the FDN-N's and search for the right ware, if available transfer. Repeat for each FDN-N.

There will have to be checks to ensure that any FDN-N is still left with the right amount of wares to supply it's sector. I may add the ability to lock wares from inter-sector operations just like factories can be locked.

I have the makings of the check written down. The distribution flow can be captured and saved it in an array locally on the FDN-N (Factory, Ware, Amount, then a counter to say which rotation the transfer happened, or even game time for easy sort). I'll be using this to created flow reports keeping the last hours worth, so 20 rotations to cover an hour.

With the above details I'll be able to check predicted usage of wares and the FDN-N will only move what wares it classes as free.

This is all in the planning stage at the moment but will need to be done prior to any inter sector operations or you could end up with wares in a FDN-N loop!


One option I'm looking at is that the FDN-N will have a sphere of influence depending on it's size.

XL - 15 sectors
L - 11 sectors
M - 8 sectors
S - 5 sectors

If the sector is within range, has an FDN-Relay (think upgraded Advanced Satellite) and the fall within it's or an Advance Satellite coverage it will be managed by the FDN-N.

If I go with this option which at the moment I'm liking the sound of (changes every time I come up with a new option), I'll not include FDN-N to FDN-N operations. It will a) make FDN far more powerful than I intended, and b) far more work than I'd like :(

I'll just add the ability to the FDN-N menu to add a sector, first check, is it within the jump limit, second check is there an FDN-Relay, third check is it managed by another FDN-N.

This would be an extension of existing checks, just looped to cover multi sectors.

I will still include the flow reports as I thing this will be a good idea even without inter FDN-N operations.

As always this is open to discussion and ideas :)


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

Post by apricotslice »

The logic is sound.

You know, theres a very nice looking dish thing on the bottom of the PHQ model. If you could 'detach' that as a separate model, it would be a great 'relay'. I'd like to see something more substantial than a satelite.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

apricotslice wrote:The logic is sound.

You know, theres a very nice looking dish thing on the bottom of the PHQ model. If you could 'detach' that as a separate model, it would be a great 'relay'. I'd like to see something more substantial than a satelite.
I would love to have all custom models :) Totally agree with the "more substantial" comment.

Unfortunately I don't have any graphic modelling experience. What I can do is edit the relevant files and use the Advance Satellite as a place holder until I've been able build the model. That or delay until I've added the model. I'll have a read through the guides, if it looks like something I can do in a reasonable time scale Ill do it.

I think the sphere of operations is a sound idea in itself, limiting the FDN-N to a set amount of sectors over a limited jump distance opens up FDN to a believable concept for multi-sector coverage without making it over powered.

It could be possible to edit the FDN-N to build the FDN-Relay/Advance Satellites by playing with the hq.xml file.


LA
Marodeur
Posts: 1349
Joined: Wed, 6. Nov 02, 20:31
xr

Post by Marodeur »

Another idea i got after a cup of coffee...

Maybe a first small step for inter-sector operations...

I have many factories in the unknown sector, east of PTNI HQ, to produce some... ähm... not completely legal wares like Incendiary Bomb Launchers :D

After building the first factories i got the problem with silicon and ore because there arent any roids in this sector (or i missed them). But there are asteroids in PTNI HQ.

So what would be a good idea is a possibility to expand the nodes range in the sectors around the main sector. Only with satellites doesnt realy fit. More like a small relay station (say it will cost ~2.000.000) without any space for wares, only transport through the gate (maybe you need a second relay station in the core sector for inter-sector transport).

Factories in the surrounding sectors are controlled by one central node with the help of relay stations.
User avatar
mostlikely
Posts: 157
Joined: Sat, 29. Nov 03, 23:20
x4

Post by mostlikely »

In my opinion having a standard 'sphere of influence' that comes free with every node would make things too bland. Having an energy cost or failure rate only partly helps with this.
My initial idea was that you needed a chain of nodes or similar functioning structures between each 2 sectors you wanted to link FDN's, when you mentioned inter sector FDN (I think it was suggested).
This gives the player some work to do to set it all up atleast and gives them something to think about when they want to link FDN's in two sectors divided by a hostile sector.

The very least I'd think is that inter-sector FDN should be an paid node upgrade much like LazCorp Crystal Free Solar Power Plant. You pay allot for the initial node but that gives a great benefit for the sector. You'l have to at least pay something or do something to get the even greater benefit for having it inter-sector.


The reason I asked for the logic is the following:
If you are going to have the information you said, a list of wares per node which the node has to capture, you could also capture said wares from any TL currently in the sector.
In the same way you could transfer back any wares the node has plenty of back to the TL.
You'd just need a script that makes the TL jump/fly back and forth between 2 sectors from time to time and you have that transfer method too.

I say 'too' because it's nice to have both that and a 'sphere of influence' transfer method available.

Anyways.. sorry for bringing TL's up 'again' but I do so wish I could use them for... you know.. actually transporting wares. ;)
WildAce
Posts: 356
Joined: Thu, 2. Nov 06, 18:06
x4

Post by WildAce »

can we get a version wheres its not etirely dependant on having good relations with the argon...

like maybe put only the small and medium sized nodes in ALL standerd size shipyards, and then put the Large and XL in each races super shipyards?
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

Okay, after much deliberation I'm looking at taking FDN down the following route.

FDN-N's will be a standalone distribution solution. By this I mean deployed FDN-N's will only manage sectors under their sphere of influence. There will be no FDN-N to FDN-N interconnection.

The FDN-N's sphere of influence and maximum number of managed sectors will depend on the version deployed.
Provisionally this will be:

XL:
Storage = 50,000,000
Sectors = 15
Jump Distance = 6
L:
Storage = 40,000,000
Sectors = 11
Jump Distance = 5
M
Storage = 30,000,000
Sectors = 8
Jump Distance = 4
S
Storage = 30,000,000
Sectors = 5
Jump Distance = 3

Each sector without an FDN-N will require a FDN-Relay to be deployed. Sectors will only be managed by a single FDN-N.

(FDN-Relay's will be like deployable Satellites and will intergraded with existing Advance Satellites to improve sector coverage. They will either be build-able from the FDN-N and /or available from Shipyards. Depending on the work involved this will either be an existing model or a new one)

The FDN-Network will need to be maintained. If an FDN-Relay is destroyed FDN-N access to the sector will be lost, if an Advance Satellite is lost coverage will be reduced.

There will be a Network Report available at the FDN-N displaying the state of all contributing elements.

There will be a Flow Report for monitoring the amount of ware handled by the FDN-N both inbound and outbound over the last hour.

I forgot to say, Ship Re-supply will be limited to the Sector were the FDN-N is deployed.

Although I'm keen to go down this route I'm still open to ideas, issue, arguments or suggestions. :wink:


@ mostlikely. I hope this address some of your issue? It wouldn't take much scripting for an energy cost based on the jump distance. But if you have to do this for each ware you may need an XL SPP to solely support a single FDN-N! Not keen but it's better than charging money.
You could still use TL for inter FDN-N manually! Maybe v3.2 will add this (just maybe), and develop FDN-N to a fully integrated Universal Ware Distribution Service (UWDS - spawn of FDN).

@ WildAce. I could add FDN-N to all Shipyards in v3.1, no problem there it's just several TDock & HQ.xml additions. I did keep the reputation requirements to standard Factory access.

I hope the above concept is a advancement to FDN which is a compromise to all interested parties?
One note is that I won't introduce financial changes other than the cost of setting up and maintaining the FDN Network.


LA
Last edited by Logain Abler on Mon, 12. Jan 09, 17:40, edited 2 times in total.
WildAce
Posts: 356
Joined: Thu, 2. Nov 06, 18:06
x4

Post by WildAce »

thx, it was just that in one of my games im killing Argons left and right so even standerd argon shipyard access doesnt exist for me :)
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

WildAce wrote:thx, it was just that in one of my games im killing Argons left and right so even standerd argon shipyard access doesnt exist for me :)
Not a problem, if you PM me your email I may be able to sort that out for you prior to v3.1.


LA
Marodeur
Posts: 1349
Joined: Wed, 6. Nov 02, 20:31
xr

Post by Marodeur »

Logain Abler wrote:.

I hope the above concept is a advancement to FDN which is a compromise to all interested parties?
For me: :thumb_up:

:)
WildAce
Posts: 356
Joined: Thu, 2. Nov 06, 18:06
x4

Post by WildAce »

Logain Abler wrote:
WildAce wrote:thx, it was just that in one of my games im killing Argons left and right so even standerd argon shipyard access doesnt exist for me :)
Not a problem, if you PM me your email I may be able to sort that out for you prior to v3.1.


LA
thx, but im not impatient. i dont mind waiting for the normal release. atm in that game i dont even have any factorys yet,
Spoiler
Show
doing the Poisoned Paranid start and just finished the 25mill start quest. so my main goal atm is just to finish outfitting the HypV and its 2 Escort fighters.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

WildAce wrote:
Logain Abler wrote:
WildAce wrote:thx, it was just that in one of my games im killing Argons left and right so even standerd argon shipyard access doesnt exist for me :)
Not a problem, if you PM me your email I may be able to sort that out for you prior to v3.1.


LA
thx, but im not impatient. i dont mind waiting for the normal release. atm in that game i dont even have any factorys yet,
Spoiler
Show
doing the Poisoned Paranid start and just finished the 25mill start quest. so my main goal atm is just to finish outfitting the HypV and its 2 Escort fighters.
No problem :) Have fun :lol:


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

Request

Post by Logain Abler »

Hi All,

I have a request for anyone who's been using FDN.

I'm wondering if anyone has had any performance issues that might be attributable to FDN?

Although I've tested with 120+ factories and complexes over several sectors with no issues, I'd like to know how things are working in a real game environment.

Cheers :)


LA
Marodeur
Posts: 1349
Joined: Wed, 6. Nov 02, 20:31
xr

Post by Marodeur »

How about an option to set a maximum stock for specific wares in the node? If i cant sell all surplus wares in time the node is flooded with low cost resources and i have not enough room for the wares i want in stock.

Yes, i can turn that station off so no products are beamed to the node. But then i have to keep checking the node if there is need of that resource again and activate it... and so on...

If i set a maximum stock of a ware in the node and it stops beaming the freight into it if it has reached that level i havent to check it all the time.

Freighters can sell the ware if there is no need of it in the node (I use the commercial agent from lucike and he sells wares only if they are above a specified level).

Would make management easier i think.
Last edited by Marodeur on Tue, 13. Jan 09, 01:36, edited 4 times in total.
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

No problems with the concept as outlined for me :)

What we need is a modder to take the chainsaw to the bottom of the phq. :)

Perhaps put a new thread in asking for someone to help with that ?

Armageddon could do it, but I'm not sure he is around.
Observe could do it and he is around, but might be too busy.
KilleRTidE did the model for the Complex Cleaner (not sure if he is around.)
aXeL_UK has just done the whitestar, so might be able to do this.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

apricotslice wrote:No problems with the concept as outlined for me :)

What we need is a modder to take the chainsaw to the bottom of the phq. :)

Perhaps put a new thread in asking for someone to help with that ?

Armageddon could do it, but I'm not sure he is around.
Observe could do it and he is around, but might be too busy.
KilleRTidE did the model for the Complex Cleaner (not sure if he is around.)
aXeL_UK has just done the whitestar, so might be able to do this.
I loaded up Gmax and all the X3:TC related tools and imported a few ship & station models.

I have an idea of taking the done bit from the old PHQ model I'm using for the FDN and sticking the sensor array you mentioned on the bottom.

This will keep a bit of continuity between the FDN-N & Relay.

I just have to spend a bit of time playing around, read a few guides.

Every days a school day.


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

Post by apricotslice »

aXeL_UK seems to be interested in helping.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

Marodeur wrote:How about an option to set a maximum stock for specific wares in the node? If i cant sell all surplus wares in time the node is flooded with low cost resources and i have not enough room for the wares i want in stock.

Yes, i can turn that station off so no products are beamed to the node. But then i have to keep checking the node if there is need of that resource again and activate it... and so on...

If i set a maximum stock of a ware in the node and it stops beaming the freight into it if it has reached that level i havent to check it all the time.

Freighters can sell the ware if there is no need of it in the node (I use the commercial agent from lucike and he sells wares only if they are above a specified level).

Would make management easier i think.
I'll make it so. The logic is easy and already in use with the PHQ, Equipment Dock side of things.


LA
User avatar
mostlikely
Posts: 157
Joined: Sat, 29. Nov 03, 23:20
x4

Post by mostlikely »

Logain Abler wrote:.
I hope the above concept is a advancement to FDN which is a compromise to all interested parties?
Aye it's all good..
gah.. now I can't wait to see it in my game.. ;)

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