[SCRIPT] Warehouse v1.40 by Nividium 9/14/2007 UPDATED
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 800
- Joined: Tue, 21. Aug 07, 01:31
[SCRIPT] Warehouse v1.40 by Nividium 9/14/2007 UPDATED
Nividium - Warehouse Custom X3 Reunion Script Package.
Name of Script Package Warehouse
Version Number 1.40
Date Released 9/06/2007
Last Updated 9/14/2007
Script Created For X3 Reunion v 2.0.02
File Package Available X3 Script Installer "SPK"
This script is NOT compatible with the XTM mod !
Download the "SPK" file format package here: Warehouse v.1.40
Description:
This script package allows you to buy a Warehouse from any race's Shipyard. You buy it just as you would any other station using your own TL or by hiring one and having them dock at a Shipyard. Then you buy the warehouse. But, the station is not called a warehouse. It is actually a gutted old Xenon Shipyard that has been captured and towed back to the race's shipyard for refurbishment and resale. So, you will be looking for a Xenon Shipyard within the list of available stations for sale at any race's shipyard. The warehouse cost is about 633,000 credits.
Features:
- WARNING: This is a stand alone warehouse. Do Not connect to or form a Complex with this.
- Unlimited storage unit capacity (billions of units).
- Unlimited storage types of wares capacity (store hundreds of kinds of wares).
- Wares are stored in the back cargo bays and not displayed up front.
- Prevents your MK3, CAD and other Agent ships from accessing your wares.
- Prevents othr races from accessing your wares.
- Wares stored in the warehouse are indicated on the station details list but show "0".
- A report is available on demand to show the types of wares and quantities stored in warehouse
- Simple and easy to use Import and Export process.
- No need to dock your ships at the warehouse to import or export wares.
- Just have your ship within 10 km of the warehouse to import or export.
- You can be In Sector or Out Of Sector and still Import/Export wares off your ships.
- So easy to use, even a Boron could use this.
- The warehouse has it's own built-in Transporter Device, so no special equipment is needed.
- Comes with the following 3 easy to use station command buttons:
[Warehouse Import]
[Warehouse Export]
[Warehouse Report]
[Warehouse Import]:
This warehouse command imports wares from a ship that is within 10km. Useage: Select a ship and then the ware that you want to transfer from the ship to the warehouse. Next input the quantity that is to be transferred from the ship to the warehouse.
[Warehouse Export]:
This warehouse command exports wares from the warehouse to a ship that is within 10km. Useage: First select the ware that is to be exported from the warehouse into a nearby ship. Second, select the quantity of ware that is to be transferred out to the ship. Third, select the ship that is to recieve the ware.
[Warehouse Report]:
This warehouse command sends a report to your Message Log ie: an email. It will show a listing of all wares stored in the warehouse.
Installation: Use the X3 Script Installer.
Uninstall: Use the X3 Script Installer. There is an uninstall script to remove the warehouses from you game. It will find all warehouses and undock any ships that may be docked there. Next it will examine any wares left inside and sell them (at average price) and deposit the credits into your account. Finally, it will remove the warehouses and then send you an email to inform you of how much credits were deposited and how many warehouses were removed.
1) Uninstall the scripts with X3 Script Installer.
2) Start X3 game and load your saved game. Wait a minute. You should get an email.
3) Save your game.
4) Start X3 Script Installer, it will ask if you want to remove the "uninstall" say yes.
Version History:
Version 1.40 Modified the "uninstall", added code to remove warehouses from race Shipyards
Version 1.30 Modified the "uninstall", the email ie remove from Text file, added to script
Version 1.20 Modified the "uninstall", added credits for selling of warehouse (big refund)
Version 1.10 Modified the "uninstall", made it automatic and adjusted code placement
Version 1.00 Initial Release.
Command Slots Used: (conflicts with cycrows Trader Distribution Network scripts)
<t id="1129">COMMAND_TYPE_STATION_29</t>
<t id="1130">COMMAND_TYPE_STATION_30</t>
<t id="1139">COMMAND_TYPE_STATION_39</t>
Text File Used: 447236.txt
Name of Script Package Warehouse
Version Number 1.40
Date Released 9/06/2007
Last Updated 9/14/2007
Script Created For X3 Reunion v 2.0.02
File Package Available X3 Script Installer "SPK"
This script is NOT compatible with the XTM mod !
Download the "SPK" file format package here: Warehouse v.1.40
Description:
This script package allows you to buy a Warehouse from any race's Shipyard. You buy it just as you would any other station using your own TL or by hiring one and having them dock at a Shipyard. Then you buy the warehouse. But, the station is not called a warehouse. It is actually a gutted old Xenon Shipyard that has been captured and towed back to the race's shipyard for refurbishment and resale. So, you will be looking for a Xenon Shipyard within the list of available stations for sale at any race's shipyard. The warehouse cost is about 633,000 credits.
Features:
- WARNING: This is a stand alone warehouse. Do Not connect to or form a Complex with this.
- Unlimited storage unit capacity (billions of units).
- Unlimited storage types of wares capacity (store hundreds of kinds of wares).
- Wares are stored in the back cargo bays and not displayed up front.
- Prevents your MK3, CAD and other Agent ships from accessing your wares.
- Prevents othr races from accessing your wares.
- Wares stored in the warehouse are indicated on the station details list but show "0".
- A report is available on demand to show the types of wares and quantities stored in warehouse
- Simple and easy to use Import and Export process.
- No need to dock your ships at the warehouse to import or export wares.
- Just have your ship within 10 km of the warehouse to import or export.
- You can be In Sector or Out Of Sector and still Import/Export wares off your ships.
- So easy to use, even a Boron could use this.
- The warehouse has it's own built-in Transporter Device, so no special equipment is needed.
- Comes with the following 3 easy to use station command buttons:
[Warehouse Import]
[Warehouse Export]
[Warehouse Report]
[Warehouse Import]:
This warehouse command imports wares from a ship that is within 10km. Useage: Select a ship and then the ware that you want to transfer from the ship to the warehouse. Next input the quantity that is to be transferred from the ship to the warehouse.
[Warehouse Export]:
This warehouse command exports wares from the warehouse to a ship that is within 10km. Useage: First select the ware that is to be exported from the warehouse into a nearby ship. Second, select the quantity of ware that is to be transferred out to the ship. Third, select the ship that is to recieve the ware.
[Warehouse Report]:
This warehouse command sends a report to your Message Log ie: an email. It will show a listing of all wares stored in the warehouse.
Installation: Use the X3 Script Installer.
Uninstall: Use the X3 Script Installer. There is an uninstall script to remove the warehouses from you game. It will find all warehouses and undock any ships that may be docked there. Next it will examine any wares left inside and sell them (at average price) and deposit the credits into your account. Finally, it will remove the warehouses and then send you an email to inform you of how much credits were deposited and how many warehouses were removed.
1) Uninstall the scripts with X3 Script Installer.
2) Start X3 game and load your saved game. Wait a minute. You should get an email.
3) Save your game.
4) Start X3 Script Installer, it will ask if you want to remove the "uninstall" say yes.
Version History:
Version 1.40 Modified the "uninstall", added code to remove warehouses from race Shipyards
Version 1.30 Modified the "uninstall", the email ie remove from Text file, added to script
Version 1.20 Modified the "uninstall", added credits for selling of warehouse (big refund)
Version 1.10 Modified the "uninstall", made it automatic and adjusted code placement
Version 1.00 Initial Release.
Command Slots Used: (conflicts with cycrows Trader Distribution Network scripts)
<t id="1129">COMMAND_TYPE_STATION_29</t>
<t id="1130">COMMAND_TYPE_STATION_30</t>
<t id="1139">COMMAND_TYPE_STATION_39</t>
Text File Used: 447236.txt
Last edited by Nividium on Fri, 3. Apr 09, 21:56, edited 2 times in total.
-
- Posts: 800
- Joined: Tue, 21. Aug 07, 01:31
Ok, here are some updates to the Warehouse script:
Version History:
Version 1.40 Modified the "uninstall", added code to remove warehouses from race Shipyards
Version 1.30 Modified the "uninstall", the email ie remove from Text file, added to script instead.
Version 1.20 Modified the "uninstall", added credits for selling of warehouse (big refund)
Version 1.10 Modified the "uninstall", made it automatic and adjusted code placement
Version 1.00 Initial Release.
Version History:
Version 1.40 Modified the "uninstall", added code to remove warehouses from race Shipyards
Version 1.30 Modified the "uninstall", the email ie remove from Text file, added to script instead.
Version 1.20 Modified the "uninstall", added credits for selling of warehouse (big refund)
Version 1.10 Modified the "uninstall", made it automatic and adjusted code placement
Version 1.00 Initial Release.
-
- Posts: 522
- Joined: Thu, 13. Apr 06, 12:35
I have a request for a small modification to this script:
I like this station because it s fairly cheap to aquire from the start and has a huge storage capacity. I have one set up in Spaceweed drift with a couple of Vultures running Bunny's mobile mining script. This station is their homebase..When I transfer ore to the station it makes it available as a "product" at that time..I then transfer 2 (the limit) to the station itself. My hope was to get the Vultures to contact me when they are full (as bunny did not add this feature to his script)..I am thinking that if you was to also make the station show ore, silicon, whatever as a "resource"as well
, then the part of Bunny's script to re-supply homebase stations may kick in sending me a message...Currently I set up a Nav Sat a short distance from the station and send my miners there to transfer there ore, etc....In other words: Can you add "resource" as well as product, maybe then they will let me know something when they can't empty their cargo because the 2 resource limit is full...I can then just guide them over to my Transfer Sat and let the station do its thing..Thanks
I like this station because it s fairly cheap to aquire from the start and has a huge storage capacity. I have one set up in Spaceweed drift with a couple of Vultures running Bunny's mobile mining script. This station is their homebase..When I transfer ore to the station it makes it available as a "product" at that time..I then transfer 2 (the limit) to the station itself. My hope was to get the Vultures to contact me when they are full (as bunny did not add this feature to his script)..I am thinking that if you was to also make the station show ore, silicon, whatever as a "resource"as well
, then the part of Bunny's script to re-supply homebase stations may kick in sending me a message...Currently I set up a Nav Sat a short distance from the station and send my miners there to transfer there ore, etc....In other words: Can you add "resource" as well as product, maybe then they will let me know something when they can't empty their cargo because the 2 resource limit is full...I can then just guide them over to my Transfer Sat and let the station do its thing..Thanks
X3..The most fun a man can have...With his clothes on.
-
- Posts: 800
- Joined: Tue, 21. Aug 07, 01:31
The warehouse was designed to store billions of units "in the back". It was not intended to have a "store front" presence. The products that it shows are for referrence only and should all be at "0". Any qty that you transfer to the "store front" will not be included in the stock count [Warehouse Report]. I do understand why you are doing that ie: in an effort to get the miners to automatically fly to the warehouse.Pogi wrote:I have a request for a small modification to this script:
I like this station because it s fairly cheap to aquire from the start and has a huge storage capacity. I have one set up in Spaceweed drift with a couple of Vultures running Bunny's mobile mining script. This station is their homebase..When I transfer ore to the station it makes it available as a "product" at that time..I then transfer 2 (the limit) to the station itself. My hope was to get the Vultures to contact me when they are full (as bunny did not add this feature to his script)..I am thinking that if you was to also make the station show ore, silicon, whatever as a "resource"as well
, then the part of Bunny's script to re-supply homebase stations may kick in sending me a message...Currently I set up a Nav Sat a short distance from the station and send my miners there to transfer there ore, etc....In other words: Can you add "resource" as well as product, maybe then they will let me know something when they can't empty their cargo because the 2 resource limit is full...I can then just guide them over to my Transfer Sat and let the station do its thing..Thanks
If you were to check the box on the miner [Commands] submenu that says "Notify me when job/task complete", would the miners send you a message when they are full then? I don't know.
Not sure, but if I added "resource" and it has "product" too, the warehouse staff might start to think they are a Factory and try to start producing widgets and what not.

-
- Posts: 522
- Joined: Thu, 13. Apr 06, 12:35
A shipyard as you know has a limit of 2 on product and resource...I remember using differant scripts in X2 that showed them both at the same time..Actually that was the only way to get some scripts to even work then...I'm just looking for a "trigger" for the miners to head for home. The "product" side does not give them a trigger..The "resource" side does.....Your Nividium Proccessing Plant has that trigger..Ore.., So Bunny's miners seem not to have a problem.
I really don't see a problem down the road for anyone by adding "resource" as well to the shipyard...But, my scripting knowledge is "less than limited"..
Because of the low price of this station, I am planning on setting one up in "every" sector that I have major mining operations going..its really good for miners. I'm also thinking that if I central locate my Nividium stores at my HQ (which btw has a modified 5million storage), I can then use TS ships and Buy Ware For Best Price and Sell " " " to keep a stock of 2 Nividium available at each warehouse all the time to be sold locally...2 is the limit set as well for your Nividium as second resource plugin...for Buy Ware to work, I need that "resource" added at the warehouse..
I really don't see a problem down the road for anyone by adding "resource" as well to the shipyard...But, my scripting knowledge is "less than limited"..

Because of the low price of this station, I am planning on setting one up in "every" sector that I have major mining operations going..its really good for miners. I'm also thinking that if I central locate my Nividium stores at my HQ (which btw has a modified 5million storage), I can then use TS ships and Buy Ware For Best Price and Sell " " " to keep a stock of 2 Nividium available at each warehouse all the time to be sold locally...2 is the limit set as well for your Nividium as second resource plugin...for Buy Ware to work, I need that "resource" added at the warehouse..

X3..The most fun a man can have...With his clothes on.
-
- Posts: 800
- Joined: Tue, 21. Aug 07, 01:31
Yes, but my shipyard "Warehouse" is not limited to 2 products and 2 resources. It can show 100's on the front cover.. But, more importantly, it is NOT meant to be used as a "Store Front". As an example, it can hold all of the following, and more:Pogi wrote:A shipyard as you know has a limit of 2 on product and resource...I remember using differant scripts in X2 that showed them both at the same time..Actually that was the only way to get some scripts to even work then...I'm just looking for a "trigger" for the miners to head for home. The "product" side does not give them a trigger..The "resource" side does.....Your Nividium Proccessing Plant has that trigger..Ore.., So Bunny's miners seem not to have a problem.
I really don't see a problem down the road for anyone by adding "resource" as well to the shipyard...But, my scripting knowledge is "less than limited"..
Because of the low price of this station, I am planning on setting one up in "every" sector that I have major mining operations going..its really good for miners. I'm also thinking that if I central locate my Nividium stores at my HQ (which btw has a modified 5million storage), I can then use TS ships and Buy Ware For Best Price and Sell " " " to keep a stock of 2 Nividium available at each warehouse all the time to be sold locally...2 is the limit set as well for your Nividium as second resource plugin...for Buy Ware to work, I need that "resource" added at the warehouse..
- Ore 5 million units
- Silicon 50 million units
- Wheat 100 million units
- Scruffin 2 million units
- Meatsteaks 20 million units
- Nividium 90 million units
etc etc etc
Ok, I will see about making a second version of the Warehouse that uses only "Resources" and make that available as well as the regular Product Warehouse type. If I am successful with that, I will post it above in Original Post as a Type 2 Warehouse. How does that sound?
-
- Posts: 800
- Joined: Tue, 21. Aug 07, 01:31
Ok, Pogi
preliminary results are in. Very odd too. I modified the warehouse script to use only "Resources". Then had my Mammoth TL drop off 500 units of Nividium, 500 of Ore and 500 Silicon. Warehouse report showed that it received the stock. No problem. But, the weird thing is no "resources" show on the warehouse "store front". Weirder still, is I had 2 Mercury TS make the warehouse their Homebase, then commanded them to "Buy Ware Best - Silicon" and the other Ore. Nothing, they would not budge. But, when I commanded them to just "Buy Ware", they instantly ran to the local Ore and Silicon Mines and returned to the Warehouse. Even more weird still, is when you go to transfer ware using the normal freight transer of the station, it would transfer the goods 2 at a time, but "0" shows up in the list and still NO resources show up in the main Station Details screen.
But, bottom line I gues is it would work to get your miners to dock at your Warehouse, but then you would have to "move command" them out of dock in order to use the Warehouse Inport Command. I will not make this script available as a general download, as I can just see all the dudes going , wheres my stuff, what's going on etc. I could give you a copy though, I suppose, for a price.
preliminary results are in. Very odd too. I modified the warehouse script to use only "Resources". Then had my Mammoth TL drop off 500 units of Nividium, 500 of Ore and 500 Silicon. Warehouse report showed that it received the stock. No problem. But, the weird thing is no "resources" show on the warehouse "store front". Weirder still, is I had 2 Mercury TS make the warehouse their Homebase, then commanded them to "Buy Ware Best - Silicon" and the other Ore. Nothing, they would not budge. But, when I commanded them to just "Buy Ware", they instantly ran to the local Ore and Silicon Mines and returned to the Warehouse. Even more weird still, is when you go to transfer ware using the normal freight transer of the station, it would transfer the goods 2 at a time, but "0" shows up in the list and still NO resources show up in the main Station Details screen.
But, bottom line I gues is it would work to get your miners to dock at your Warehouse, but then you would have to "move command" them out of dock in order to use the Warehouse Inport Command. I will not make this script available as a general download, as I can just see all the dudes going , wheres my stuff, what's going on etc. I could give you a copy though, I suppose, for a price.

-
- Posts: 522
- Joined: Thu, 13. Apr 06, 12:35
I can't remember the name of the script..But it was in either X-Tension or X2, there was this station (Xenon Power Plant) that had all the products/resources in it. You add to the resources and the product increased as well and vise versa.
What I really need is the station to have both product and resource at the storefront.
Price
..Ok how much nividium is this going to cost me.... 
What I really need is the station to have both product and resource at the storefront.
Price


X3..The most fun a man can have...With his clothes on.
-
- Posts: 800
- Joined: Tue, 21. Aug 07, 01:31
What...Products and Resources...that doesn't sound like a Warehouse to me, it sounds more like Walmart or Scruffin Fruit Factories.
Hmmm...sounds like you need a dif kind of station altogether. Let me look at some of the other non-used stations and if there is one there that allows both P and R, I could use that for a separate special kind of warehouse, oh and do you still need the unlimited storage capacity with that...maybe some fries and gravy, crumpits, perhaps some tea.

Hmmm...sounds like you need a dif kind of station altogether. Let me look at some of the other non-used stations and if there is one there that allows both P and R, I could use that for a separate special kind of warehouse, oh and do you still need the unlimited storage capacity with that...maybe some fries and gravy, crumpits, perhaps some tea.

-
- Posts: 800
- Joined: Tue, 21. Aug 07, 01:31
-
- Posts: 522
- Joined: Thu, 13. Apr 06, 12:35
-
- Posts: 800
- Joined: Tue, 21. Aug 07, 01:31
You mean like this?
Products:
- Ore
- Silicon
- Nividium
Resources:
- Ore
- Silicon
- Nividium
I think I tried that with this station and it constantly tried to make product out of it's own stuff, it was like very strange. Trying to suck Ore out to make Nividium and weird stuff like that. This can't be what you want, is it?
Products:
- Ore
- Silicon
- Nividium
Resources:
- Ore
- Silicon
- Nividium
I think I tried that with this station and it constantly tried to make product out of it's own stuff, it was like very strange. Trying to suck Ore out to make Nividium and weird stuff like that. This can't be what you want, is it?
-
- Posts: 522
- Joined: Thu, 13. Apr 06, 12:35

But if it can be done some how..I'm sure you can figure out something...lol
Standard storage would be fine I think as the homebase TS ships will be constantly moving product.
It would kind of be like a "mini HQ" just for minerals. Forward trading post.
X3..The most fun a man can have...With his clothes on.
-
- Posts: 522
- Joined: Thu, 13. Apr 06, 12:35
@Nividium....I found that X2 script that I mentioned earlier and uploaded it to my file share site.
Download:
http://www.4shared.com/file/24916619/bc ... d=6a1aedf4
It was done by Mc Spy and was very popular in X2...Maybe you could review it and see if something simlar could be done in X3 for minerals.
I think a forward trading station just for minerals would be very popular among us miners in the X3 community.
Thanks for your time.
Download:
http://www.4shared.com/file/24916619/bc ... d=6a1aedf4
It was done by Mc Spy and was very popular in X2...Maybe you could review it and see if something simlar could be done in X3 for minerals.
I think a forward trading station just for minerals would be very popular among us miners in the X3 community.
Thanks for your time.
X3..The most fun a man can have...With his clothes on.
-
- Posts: 800
- Joined: Tue, 21. Aug 07, 01:31
-
- Posts: 92
- Joined: Wed, 28. Apr 04, 19:01
I use your werehouse and was not realy happy sorry.
I see the werehouse in a system where I had a fleet of ship's mining and was hoping they dock up unload them self, like other stations but when I look to see how they was doing they was just dock there not doing a thing.
Which mean's I have to then import from my ship to werehouse each time.
Is there any way I can set my ship to just unload on there own each time ?
I see the werehouse in a system where I had a fleet of ship's mining and was hoping they dock up unload them self, like other stations but when I look to see how they was doing they was just dock there not doing a thing.
Which mean's I have to then import from my ship to werehouse each time.
Is there any way I can set my ship to just unload on there own each time ?
-
- Posts: 800
- Joined: Tue, 21. Aug 07, 01:31
Hi Dragonfox,
the script could be modified to examine any ship that comes near and auto transfer goods to the warehouse. But, this could lead to unwanted transfers being made that was not intended. Another way would be to examine any ship that has docked and do an auto transfer, but how does the game know you want to auto import instead of auto export? That is why it is set up to have Player interaction with the warehouse, so you tell it what you "want" it to do. You could use a TL and dump bulk loads of stuff in one go, that might help.
You see this is a dif kind of operation. I have written scripts that do auto transfer of resources from ships and then auto transfer finished product back out to ships ie: the Assimilator script, but this was meant to be that way ie no control over what it does because it is an Alien factory that I made to behave that way. But, the warehouse must remain the way it is, in order for it to work properly. So, I cannot change it.
the script could be modified to examine any ship that comes near and auto transfer goods to the warehouse. But, this could lead to unwanted transfers being made that was not intended. Another way would be to examine any ship that has docked and do an auto transfer, but how does the game know you want to auto import instead of auto export? That is why it is set up to have Player interaction with the warehouse, so you tell it what you "want" it to do. You could use a TL and dump bulk loads of stuff in one go, that might help.
You see this is a dif kind of operation. I have written scripts that do auto transfer of resources from ships and then auto transfer finished product back out to ships ie: the Assimilator script, but this was meant to be that way ie no control over what it does because it is an Alien factory that I made to behave that way. But, the warehouse must remain the way it is, in order for it to work properly. So, I cannot change it.
-
- Posts: 92
- Joined: Wed, 28. Apr 04, 19:01
It's fine. The Warehouse is a good idea and I do use it.
But what I am going to be doing is set up a TL as a base for my miner's to off load there ore, then I use my Warehouse to off load from TL later.
This way I can keep a eye on them now and then.
BTW I am useing a scripts to let my miner's to dock at my TL.
Not able to see how that will work yet as I gong to have to start game again.
Mind you that's a idea a script that would work along with the warehouse to tell your miner's where to drop there load then that script tell's your warehouse, so then warehouse would only off load what you told your miner in the script to off load. Or something like that. What you think could that work ?
But what I am going to be doing is set up a TL as a base for my miner's to off load there ore, then I use my Warehouse to off load from TL later.
This way I can keep a eye on them now and then.
BTW I am useing a scripts to let my miner's to dock at my TL.
Not able to see how that will work yet as I gong to have to start game again.
Mind you that's a idea a script that would work along with the warehouse to tell your miner's where to drop there load then that script tell's your warehouse, so then warehouse would only off load what you told your miner in the script to off load. Or something like that. What you think could that work ?
-
- Posts: 209
- Joined: Sat, 19. Jan 08, 01:04