[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: Scripting / Modding Moderators, Moderators for English X Forum

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

Post by Logain Abler »

thunderai wrote:
Logain Abler wrote:
thunderai wrote:The one-way transfer just killed this for me. After I wipe a sector of Xenon and I dock at the PHQ for refueling I drop off all my winngins. I then use FDN to move that extra junk back to the node. This is controled using the max level of ware.

FDN then moves those winngs out to the docks for sale.
I could add a check that moves excess to the closest Node automatically, that’s not a biggie. Not a feature I’d use but happy to add in a basic form.

LA
Yes, if I set a cap on an item at the PHQ, I want everything added above that to go to the node. Then I set a level at the dock and the dock should suck wares from the node to fill in that set level.

Also, if it is moved to the nearest node, and the node is set to share wares. All the other nodes will have access to that wares as well, so docks all the way across the universe should have access to any wares I unload at the PHQ
No, depends if the Dock(s) are within range of the Node, there will be no daisy chaining Nodes together.

Example
Node A linked to Node B. Node C which is within range of Node B but not Node A.

Node A & Node C will not have access to each others wares, both will have access to B.
If Node A can't get the wares from B that's the end of the line, B won't in turn check C for the wares A needs.


If that's what you are talking about, “All the other nodes will have access to that wares as well, so docks all the way across the universe should have access to any wares I unload at the PHQ” then no.

Docks will take whatever the available amount is of a ware if its less then it requires, then cycle to the next Node in range.

LA
thunderai
Posts: 374
Joined: Fri, 17. Apr 09, 04:40
x3tc

Post by thunderai »

But I can pin wheel the nodes. Node A can be in the center and then have a few B,C,D,E nodes all within 8 sectors which would pull wares from A
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

thunderai wrote:But I can pin wheel the nodes. Node A can be in the center and then have a few B,C,D,E nodes all within 8 sectors which would pull wares from A
Yes correct :)
thunderai
Posts: 374
Joined: Fri, 17. Apr 09, 04:40
x3tc

Post by thunderai »

Can this be done prior to upgrading to 2.1 or does it have to wait until after I patch up to 2.1?
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

thunderai wrote:Can this be done prior to upgrading to 2.1 or does it have to wait until after I patch up to 2.1?
It's the mod files which are version dependant, this should work fine just as a script update. However all the links are current v2.1 updated files. I will have an old pre v2.1 about if needed.

LA
thunderai
Posts: 374
Joined: Fri, 17. Apr 09, 04:40
x3tc

Post by thunderai »

so wait until i update to 2.1 then
StormMagi
Posts: 1335
Joined: Sat, 17. Mar 07, 03:53
x4

Post by StormMagi »

I have pre 2.1 around as well if needed.

LA: Are there any other files that need to be modified besides the subtype and node.install to add a new station because I modified those and it still isn't showing.
MOD XR Show Skills

Flying spaceships since 1993.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

StormMagi wrote:I have pre 2.1 around as well if needed.

LA: Are there any other files that need to be modified besides the subtype and node.install to add a new station because I modified those and it still isn't showing.
Post me what you have and I'll have a look
StormMagi
Posts: 1335
Joined: Sat, 17. Mar 07, 03:53
x4

Post by StormMagi »

http://www.stormmage.org/x3tc/fdn/modif ... 0files.zip

Those are the four files I have modified. I am guessing I am just missing something fairly simple.
MOD XR Show Skills

Flying spaceships since 1993.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

StormMagi wrote:http://www.stormmage.org/x3tc/fdn/modif ... 0files.zip

Those are the four files I have modified. I am guessing I am just missing something fairly simple.
Sorry for the late reply, beer out for a few beers :D

The error is on line 0113 on the "plugin.FDN.SubType" script:

Code: Select all

EQ:
$nodeEQ = sprintf: fmt='%s', $nodeL, null, null, null, null
$sub = get number of subtypes of maintype 5
while $sub 
  dec $sub =
  $node = get ware from maintype 5 and subtype $sub
  $node = sprintf: fmt='%s', $node, null, null, null, null
  if $nodeEQ == $node 
    $subType = $sub 
    goto label Return
  end
end
Which should read:

Code: Select all

EQ:
$nodeEQ = sprintf: fmt='%s', $nodeEQ, null, null, null, null
$sub = get number of subtypes of maintype 5
while $sub 
  dec $sub =
  $node = get ware from maintype 5 and subtype $sub
  $node = sprintf: fmt='%s', $node, null, null, null, null
  if $nodeEQ == $node 
    $subType = $sub 
    goto label Return
  end
end
Hope that sorts it?

LA
StormMagi
Posts: 1335
Joined: Sat, 17. Mar 07, 03:53
x4

Post by StormMagi »

:oops: I thought it was something simple >_< Will go try it. BTW have another beer on me 8)

It is in! Label is Readtext though so will have to sort that out. Need to redo the price changes as well =/
MOD XR Show Skills

Flying spaceships since 1993.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

FDNv4

Post by Logain Abler »

v4 is now ready for download :) See updated OP

Please let me know how you get on.

LA
StormMagi
Posts: 1335
Joined: Sat, 17. Mar 07, 03:53
x4

Post by StormMagi »

How much has changed so far? Just the way the scripts/menus work or did you change how many nodes etc? the OP doesn't list too many of the changes.


I just started a new game with the the modified 3.2.06 (as in playing for maybe 10 minutes :P) so an upgrade should be easy.

Full version uploaded: http://www.stormmage.org/x3tc/fdn/FDNv4_full.zip
Script Uploaded: http://www.stormmage.org/x3tc/fdn/FDN_v4_script.zip
Last edited by StormMagi on Thu, 18. Jun 09, 22:50, edited 1 time in total.
MOD XR Show Skills

Flying spaceships since 1993.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

StormMagi wrote:How much has changed so far? Just the way the scripts/menus work or did you change how many nodes etc? the OP doesn't list too many of the changes.


I just started a new game with the the modified 3.2.06 (as in playing for maybe 10 minutes :P) so an upgrade should be easy.

Uploading full ver now, will upload script when rapidshare lets me dl. Will update this to reflect when they are done.
This is purely a script change, however its not a straight upgrade from v3.2.06 to v4.

New models will come at a later date once I know the script side of v4 is nailed.

LA

Edit: Tweaked OP
StormMagi
Posts: 1335
Joined: Sat, 17. Mar 07, 03:53
x4

Post by StormMagi »

Ok so then theoretically I can just put in the new SPK (and put in the old suptype and node.install) and still use my modified version for now?

I still haven't had any luck getting 3ds to open station files properly either :evil: :evil:
MOD XR Show Skills

Flying spaceships since 1993.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

StormMagi wrote:Ok so then theoretically I can just put in the new SPK (and put in the old suptype and node.install) and still use my modified version for now?

I still haven't had any luck getting 3ds to open station files properly either :evil: :evil:
If you don't follow the update steps your game could crash :!:

LA
StormMagi
Posts: 1335
Joined: Sat, 17. Mar 07, 03:53
x4

Post by StormMagi »

Even though I have no FDN stations going at all? (brand new game :P)
MOD XR Show Skills

Flying spaceships since 1993.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

StormMagi wrote:Even though I have no FDN stations going at all? (brand new game :P)
In that case your fine :D , it's only if updating with FDN up & running.

LA

Edit: I really like this version but please do your best to break it! and let me know what you think.
StormMagi
Posts: 1335
Joined: Sat, 17. Mar 07, 03:53
x4

Post by StormMagi »

Ok then (kinda glad you didn't change subtype/node.install....yet 8) )

I hope to start putting up complexes semi soon. However tomorrow I head out of town untill Monday afternoon so I won't have much time to play :(
MOD XR Show Skills

Flying spaceships since 1993.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

StormMagi wrote:Ok then (kinda glad you didn't change subtype/node.install....yet 8) )

I hope to start putting up complexes semi soon. However tomorrow I head out of town untill Monday afternoon so I won't have much time to play :(
:D Have a good one

LA

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