[Script] Freight Logistics Software

The place to discuss scripting and game modifications for X³: Reunion.

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

User avatar
Jimmy Jazz
Posts: 738
Joined: Wed, 4. Jun 03, 17:20

[Script] Freight Logistics Software

Post by Jimmy Jazz » Fri, 11. Nov 05, 13:33

Important: This script works without any known issues. Unfortunately I never found the time to develop the script further, especially the command signals were asked for by many people.

But do not despair, Klaatu has improved the script and added better funcionality. You will find it at:

http://forum.egosoft.com/viewtopic.php?t=124953

Many thanks to Klaatu

----------------------

Freight Logistics Software

By Jazz Industries

Trade Software for the Industrial Moguls

Access through the ships Trade menu, TradeSoft MKII required

Adds two new commands to the ships trade menu:

NEW: One Way Delivery: Delivers a ware from one of your stations to another and returns empty. This it will do forever and ever and ever….

Two Way Delivery: Delivers a ware from one of your stations to another and returns with a second ware. This it will do forever and ever and ever….

Why do I need this?
Imagine you have an industrial complex that needs silicon and a silicon mine that needs energy. With FLS you can assign a freighter to deliver energy from your complex to the mine and return with the silicon. No money is involved. This way you can give the mine zero credits and it will work nevertheless. Industrial complexes can now become truly self sufficient even without being connected to a mine.
The software does not discriminate between products and resources. This means you can load energy cells from a complex although it uses it as a resource.

When does it stop working?:
If the hull of your ship drops below 80% or if one of the stations is destroyed it will fly to the nearest shipyard and send you a message.

How to install:
Just extract the archive into the main game folder. The next time you start the game, you should see the commands in the trade menu


Download at:
http://plutonium.schattenseite.de/fls.zip

Resources used:
Text ID: 44-8216
Command_Type_Trade_48
Command_Type_Trade_48

Suggestions, comments?
Last edited by Jimmy Jazz on Wed, 1. Feb 06, 13:50, edited 3 times in total.
Pinky : "Gee, Brain what do you want to do tonight?"
Brain : "The same thing we do every night Pinky. Try to take over the world!"

User avatar
Simon029
Posts: 65
Joined: Wed, 14. Jul 04, 11:12

Post by Simon029 » Fri, 11. Nov 05, 14:48

nice idea.

good work. :)

the game is getting better and better with all those scripts.
grep -ir [\f]uck /usr/src/linux

User avatar
Sandalpocalypse
Posts: 4121
Joined: Tue, 2. Dec 03, 23:28

Post by Sandalpocalypse » Fri, 11. Nov 05, 20:03

Nifty.

bendyspex
Posts: 708
Joined: Tue, 13. Apr 04, 10:39

Post by bendyspex » Fri, 11. Nov 05, 22:26

Jimmy Jazz, I am currently trying to make a script that will collect e-cells from my complex and sell them. I think some slugs have better scripting abilities than me, but this shows me that I can make a script that will make a freighter collect resources. Maybe you could adapt that script, or show me how you did it. All I want the script to do is have one freighter collect e-cells and sell them, then just repeat that.
Anything you can do is appreciated, thanks.

User avatar
Jimmy Jazz
Posts: 738
Joined: Wed, 4. Jun 03, 17:20

Post by Jimmy Jazz » Sat, 12. Nov 05, 17:41

I am currently pretty busy, barely find the time for scripting :cry:

If you want to pick up e-cells from your complex you need the right argument in your script. Argument station/product lets you chose a product only, station/resource lets you pick e-cells from your complex (or any other resource). The most useful argument in your case imo is station/ware since it lets you chose resources and products. Thus you can sell resources from your complex.

For the selling for best price part, why don't you try to find a similar script and adapt to your needs or try to learn from them :wink:

If you want the script to run forever, you have to loop it with the "while" command, don't forget to implement an interupt for the loop, or it will truly run forever

Hope this helped
Pinky : "Gee, Brain what do you want to do tonight?"
Brain : "The same thing we do every night Pinky. Try to take over the world!"

Mopy
Posts: 1146
Joined: Tue, 2. Aug 05, 20:59

Post by Mopy » Sat, 12. Nov 05, 20:16

Yay!

Nice one. Do you have to transport goods both ways, or can it function like CLS in X2, where you can do this with just one product, one way, repetitavely? Either way, off to give it a shot ;)

Cheers,
Mopy
Sig

User avatar
Jimmy Jazz
Posts: 738
Joined: Wed, 4. Jun 03, 17:20

Post by Jimmy Jazz » Mon, 14. Nov 05, 13:13

It works both ways only. Maybe I will adapt it in the near future. should be easy. Just don't have much time right now.
Pinky : "Gee, Brain what do you want to do tonight?"
Brain : "The same thing we do every night Pinky. Try to take over the world!"

User avatar
DeltaWolf
Posts: 594
Joined: Tue, 6. Jul 04, 08:48

Post by DeltaWolf » Tue, 15. Nov 05, 12:34

I was planning to write a script to do the same thing - I had one for X2, but thanks to you - it saves me the hassle :D
Click image below for link to F.A.C.T.S.

Image

User avatar
Jimmy Jazz
Posts: 738
Joined: Wed, 4. Jun 03, 17:20

Post by Jimmy Jazz » Thu, 17. Nov 05, 15:41

I am now working on expanding the script...

Wrote a one way version of the delivery and working on a sell resource script

available for download soon
stay tuned :wink:
Pinky : "Gee, Brain what do you want to do tonight?"
Brain : "The same thing we do every night Pinky. Try to take over the world!"

bendyspex
Posts: 708
Joined: Tue, 13. Apr 04, 10:39

Post by bendyspex » Thu, 17. Nov 05, 18:24

Thanks. great script. Im using it to get silicon to my complexand to take energy back, and it works fine. Il wait until you release a new version, since you seem to know waht you are doing.

Eventure
Posts: 2
Joined: Sat, 5. Nov 05, 13:56

Post by Eventure » Fri, 25. Nov 05, 20:26

Nice script, works pretty good!

But how about to upgrade the FLS script that the transport can use his jumpdrive for stations far away?

He can get the required energy from the stations pool he visits. Only as much he need for one transfer, jumps to destination, unloading the goods, gets new energy he needs for jumping back and so on.

Helps alot when your complexes or stations are around the universe and you have to support it with goods, that other complexes or stations far away produces.

At the moment i must do that frequently by using manual commands. Not really fun! :(

Baleur
Posts: 582
Joined: Fri, 28. Oct 05, 13:37

Post by Baleur » Sat, 26. Nov 05, 06:40

Please please please release the one-way version now, i need it ^^
CPU: Intel i5 2500k RAM: 8gb 1333mhz Video: nVidia 560TI 1gb Sound: Asus Xonar D2

Mopy
Posts: 1146
Joined: Tue, 2. Aug 05, 20:59

Post by Mopy » Sat, 26. Nov 05, 11:04

Looking forward to it :)

Cheers,
Mopy
Sig

reddragon133
Posts: 12
Joined: Sun, 20. Nov 05, 13:49

Post by reddragon133 » Sat, 26. Nov 05, 12:05

oh yes, exactly what I DO need!! a one way script. pls, pls release it. even without the trade option. just a one way delievery.

by the way, I try to run your two way script, my editor is enabled, script loaded, but when I give the command to my trasnporter nothing happens and he send me an email without any message. what do I wrong?

thy a lot for your work.

RaGodofTehSun
Posts: 417
Joined: Thu, 23. Dec 04, 04:02

Post by RaGodofTehSun » Sat, 26. Nov 05, 12:36

this script is GREAT thank you i use it alot to form SPP loops...and as for the problem i have never encountered it before...maybe your docking paths are blocked?

Post Reply

Return to “X³: Reunion - Scripts and Modding”