X4: Foundations

X4: Foundations

Mules and Warehouses v4
54 Comments
The Adversary Jan 21 @ 4:25pm 
sooo this mod DOES break saves since it stops ships that had orders from moving and accepting new orders this includes AI trading vessels
Zaxius Feb 11, 2022 @ 4:51am 
Question to author: After setting a mule to "Station Trader" Assigning it a target and source station, allowing all wares, the trader sits idle with a big blue ? next to it. My target station needs the raw resources the source station has but the trader just sits there. Does the big blue question mark mean he is just calculating trades, or does that indicate something is not set right? Just curious if I did something wrong in the setup?
jetblade545 May 24, 2021 @ 3:20am 
is there a way to have a ship dock to a L mining ship then collect the ore then dock at station and store the ore and repeat?
Mo¡stDreams Apr 11, 2020 @ 1:40am 
I maintain the updated version of this over on nexus and here
https://steamcommunity.com/sharedfiles/filedetails/?id=2013772865
cyron43 Apr 10, 2020 @ 7:33am 
@hellgorama Nope, use this updated version: https://www.nexusmods.com/x4foundations/mods/416
hellgorama Apr 10, 2020 @ 6:01am 
Does this mod work with 3.0?
nmaher2007 Feb 3, 2020 @ 4:12pm 
I tried using this mod in 2.6 today in an existing save. Most ships had to be given new orders as their current orders were not functioning. Several that were executing an order with a station at the time of save load, were stuck with that order and I couldn't do anything to get rid of the order. Shame
cyron43 Jan 10, 2020 @ 12:51pm 
I'm playing the 3.0 Beta for a long time already and this mod still works. :)
Browser_ice Jan 10, 2020 @ 8:14am 
Last comment and update from MOD owner is July-2019. A few threads have been posted since then now making me unsure if I should keep using it once 3.0 kicks in. I am at 2.6 but haven't used it in long time - I restarted a game from scratch ....

LegionOfOne are you still monitoring your MOD posts and what is your current status in 3.0 compatibility work?
KAcidi Jan 8, 2020 @ 9:12am 
Mod not work with 2.6
Is there any conflicts with other mods?
Revnge_SevnFold Dec 22, 2019 @ 7:52am 
Ok, I think the author removed the file for the mod, found this in the ui log file:
["message"]="Error: File I/O: Could not find file '.\\extensions\\stationmule\\aiscripts\\orders.base.xml.sig'"
Revnge_SevnFold Dec 22, 2019 @ 7:14am 
I cant find the order.base.xml file, I searched my entire pc(using find) using that name, where is it located?
Revnge_SevnFold Dec 22, 2019 @ 7:12am 
The mod works flawlessly however I get stutter in the 3d objects in the game, for instance when I move camera while in station build mode. its wierd. When I disable the mod I get no stutter. (Playing in 3.0 Beta)
Mo¡stDreams Dec 13, 2019 @ 12:40am 
The bug which causes ships-not-docking with 3.0 Beta is this -

'order.base.xml' file, which fudges up everything. Once you delete it, everything goes as it should (although I believe that existing saves with bugged ships are not salvageable).
cyron43 Nov 22, 2019 @ 8:40am 
Is this mod compatible to 3.0? If not, will it get updated?
Sicario Nov 16, 2019 @ 5:31pm 
So for some reason i get Screen Freezes when i use this mod,
Under Normal Play i can have dozens of traders on auto trade with no issue what so ever
With this mod i got to about 15 set to System Traveler to trade everything and i get really bad freezes
Xenomorph Nov 9, 2019 @ 3:15pm 
how do i locate this file?
MrHellhound1 Nov 5, 2019 @ 4:37am 
Just want to add that EightBeats' comment below has resolved the issues i was having with this mod, such as stuttering and my ships all stopping working. Deleting the file, so far, has helped and the mod *appears* to still work fine.
EightBeats Nov 4, 2019 @ 8:12am 
Reposting here (originally posted on the Mules Extension mod page) :

"Hey, dropping by to say that I found out the culprit in the ships-not-docking issue.

It is caused by the order.base.xml file, which fudges up everything. Once you delete it, everything goes as it should (although I believe that existing saves with bugged ships are not salvageable).

Tested on a new save file, 40 hours in and the mules are behaving as they should be.
I'm not sure if I'm using this version or the one from LegionOfOne, but the issue stems from the same file.

Also, using Civilian Fleets also work with Mules - no more configuring mules one by one, just assign new ships to the a mule and they'll turn into mules too.

Hope this helps."
SureAction Oct 29, 2019 @ 8:54am 
if i install this than all the ships in the universe stop moving and do not trade or mine anymore.. i am also using tader trade maybe thats the issue but i cant use the mod atm..
standard Oct 22, 2019 @ 11:57am 
Oh, and yes, I have sell offers for both wares.
standard Oct 22, 2019 @ 11:56am 
Station mules work fine for me, except that the "Make target warehouse" option does not seem to accomplish anything. I have this dock-plus-container storage station in Argon Prime that is being supplied with Food Rations and Medical Supplies by a Station Mule. However, the trader assigned to the station in Argon Prime only lists Drone components as a trading ware. The storage assigned to Food and Medical Supplies is full, but nothing ever gets sold.
gorgofdoom Oct 14, 2019 @ 1:34pm 
I have found a bug!


If you have a station with a large pool of resources, and a trade mule assigned to it to 'buy', your account balance will go into the negative. I came back to ~10 million credits in the negative after leaving X4 running an hour w/ one mule running.

Is there any way to prevent this aside from manual intervention?
PitchBlack Sep 17, 2019 @ 11:19am 
btw it will be nice to actually choose the construction side directly.
PitchBlack Sep 16, 2019 @ 8:03am 
nevermind just choose it 2 times..
PitchBlack Sep 16, 2019 @ 8:01am 
how can i choose a constructionside for the Mule? am i blind? o.O
MrClau Sep 12, 2019 @ 10:55am 
damn nvm i fix it, just seted him to void the station im in..hehe
MrClau Sep 12, 2019 @ 10:30am 
hi, i just started the game using this mod and i have a problem, i only got 1 ship with an npc pilot,so i landed on a station and left ship letting npc pilot do the dirty trading work, wile im going for a walk on the station but the npc keeps asking for permision to leave the ship evry time he landing on a station, i want him to autotrade overnight but he will not take off without mi permision ... is there any way to avoid permision and let him trade by his own? ty
thebruce Aug 22, 2019 @ 12:07pm 
hey,
is someone using the player-owned warehouses with UI Mod from LegionOfOne in addition?
https://forum.egosoft.com/viewtopic.php?f=181&t=417394#p4872152
i have the problem, that i could not setup the buyprice in a tradestation.
maybe someone could help?
thanks
Worzel Jul 11, 2019 @ 5:25am 
Yea I read the forums and it seems I wasn't the only person to try, shame really but I understand why - container only.

What I'm now doing is moving the refined ore and silicon wafers, think that'll work better (still in the process of building)

Thanks :)
LegionOfOne  [author] Jul 11, 2019 @ 5:21am 
Worzel : No, just noooooo :steamfacepalm:

Mules are not Miners, only trade ships.
You cannot use Mules to move raw materials.

Check the Egosoft thread for many answers, to this question and others.

Also, to all of you : I will update the mod again, but right now I cannot run X4 because of hardware issues.
In a few weeks I hope to be able to bring you (and me :steamhappy:) a few new options, improvements, and maybe a new Mule or two.
Worzel Jul 9, 2019 @ 9:57am 
So I'm clearly being silly somewhere.

I have a pier and a miner (with a manager) - warehouse
Elsewhere I have a pier and an ore refinery (with a manager) - intermediate
I set up a station-mule (large miner) with the miner using the ore 'warehouse' as the source and I allow small trades. I believe this has worked as there is a sell option for ore on the 'warehouse'.

What I don't have is a buy option for ore on the warehouse. So when I get my miners to 'mine for' they have nothing to mine and sit there idle. Both factories have money and there is ore in the sector.

I read the comments here and it says I shouldn't see any buy orders for ore, but the miners aren't mining ore for here?

Any guesses what I'm doing wrong please?
gorgofdoom Jul 8, 2019 @ 6:12pm 
@IchBinGroot

this script will not affect the decisions made by other factions, only your own ships that you set to use it.
honestonion Jul 8, 2019 @ 8:32am 
Hey. Is there a video on setting this up properly? I’ve never used a mod like this on X series.
IchBinGroot Jul 5, 2019 @ 6:27pm 
do other faktions buy from my warehouse?
Anthony AyeDog Jun 23, 2019 @ 5:17am 
Currently your mod is the only mod I'm using (and well worth the modified tag).

It's holding spare wares. I usually check the two dozen or so Helios traders across all my traders every few hours and have them either drop or transfer the idle wares.

I'll try to take a peek at the egosoft forums.
LegionOfOne  [author] Jun 23, 2019 @ 3:34am 
Anthony : do you have a mod that makes ships pick up containers floating in space automatically ?
Because Mules should never have 'left-over' wares in inventory, the first thing they do is try to sell their current inventory before trying normal Mule duty.

The Mules from your foodstuff factory can sometimes carry other wares, if they are idle and default to in-system trade. But they shouldn't have left-overs, unless none of your stations want to buy that ware.

The discussion on the Egosoft forums is more lively, and you have other users nice enough to answer questions when I'm not around.
Anthony AyeDog Jun 21, 2019 @ 11:37am 
Mod is working beautifully.

I don't know how I bothered with station operations without it. It's helped me build up my system 20x faster than I was before, and without any of the manual trade orders.

One thing - my traders keep picking up and holding onto wares and I can't figure out why. Not large amounts, but a couple. I'm talking like 3 hull parts, 20 drone components, a few scanners.

The weirdest thing, though, is that the traders from my foodstuffs factory are carrying said wares. I'm not sure where or why along the way they would have picked them up at all.
LegionOfOne  [author] Jun 20, 2019 @ 10:37am 
Unfortunately all storage space allocation is done by the Station Manager, there is nothing I can do about it for now.
Droll Jun 19, 2019 @ 3:52pm 
When dealing with warehouses is there a way to partition storage? For example have it so that only 20% of total container storage is filled up with energy cells by a station mule delivering to a warehouse.

I know that distriMule sort of can do this but that works between warehouses as opposed to the supplier/warehouse routes that stationMules handle.
LegionOfOne  [author] Jun 16, 2019 @ 11:08am 
As indicated in the revised description, 1 credit in budget is not enough for a Warehouse and the buy offers do not appear on the warehouse.

As we saw with Anthony it seems to work for factories, but if they ever stop buying, try boosting their budget too.
Anthony AyeDog Jun 15, 2019 @ 1:55pm 
"Make sure that factory has a budget of at least 1 credit, or it will not publish buy offers."

Actually seems to have fixed it, as far as I can tell.

I usually zero-out the balances on my stations once I have their production chain set up, as I don't need money in holding.

I went ahead and put 1 credit in each of my stations (Raw, Intermediate and Advanced) and it does seem to have resolved it, the traders are all moving about and setting up trades.


Everything else was in order - I didn't have any stations producing their own goods (microchip and silicon wafer on the same station), and there's plenty of allocated cargo space for each ware.

I'll let the game run for a good while longer and see if it continues to smooth itself out.

Thank you for the quick replies!
LegionOfOne  [author] Jun 15, 2019 @ 12:51pm 
Anthony (again) : If the 'bug' is only affecting silicon wafers and nothing else, it is quite strange because there is nothing special in the code about that ware.
Maybe check that the Intermediate Station has enough storage reserved for Silicon ?
If they only reserved room for 100 units, then the buy offer will never be high enough for Mules to notice.
LegionOfOne  [author] Jun 15, 2019 @ 12:41pm 
Anthony (continuing) :

If your Raw factory is also using the wares it produces for some production, these wares will not show up for sale until the manager has about 60-70% full storage of that ware. Before that it will try to buy the ware.

If your Intermediate factory also produces (ore, ...) then a Mule should still deliver it as long as the storage is under 60-70%, when the manager starts selling that ware.
The only difference is when the Mule is trading in the whole system : wares that a factory produces and uses are never in the highest-priority deliveries.
But the factories set up as Source and Target are always the first priority, if there is something to sell.

Make sure you are using the latest 3.5 version !
LegionOfOne  [author] Jun 15, 2019 @ 12:32pm 
flanders : Miners work the vanilla way on stations with Mules, I did nothing to Miner logic.
Just select mining ships, right-click your station and give them the 'mine for' order.
Make sure your station has money in the budget, otherwise it won't buy anything.

Anthony : I assume your raw factory makes (ore, ...) without using it, and just sells it.
Check that the manager has put the wares on sale, just by trying to buy them manually.
Then I assume your intermediate factory needs the raw wares, but does not make them.
Make sure that factory has a budget of at least 1 credit, or it will not publish buy offers.
Then, a Mule set up with the raw factory as Source, the Intermediate as Target, and no option activated (except commander) should work just fine.
To be sure, test by activating 'Allow Low Volumes'. If they start trading then only, that means the amounts on sale in your Raw factory were too small to bother with.

I hope it helps !
Anthony AyeDog Jun 15, 2019 @ 11:23am 
Somwhat ironically, I'm actually getting better results from setting my Intermediates station as the source, with Raw Goods as the Target.
Anthony AyeDog Jun 15, 2019 @ 11:17am 
Started using this mod today. So far, so good.

I have noticed, though.

I have my Raw Goods facility (ore, silicon, gases etc) as the source and my intermediate facility (hull parts, microchips, etc) as the target. Most of the traders are sitting totally idle and my Intermediate facility has a near-100% shortage of Silicon Wafers (which the Raw Goods has afull stock of).

Did I set anything up wrong?

The traders are preferring to trade with my foodstuffs factory rather than fill the much-needed shortage of Silicon Wafers
flanders107a Jun 15, 2019 @ 8:16am 
Hello All. How do I now manage miners to these stations? I can’t seem to assign them to the station anymore with this mod.
LegionOfOne  [author] Jun 15, 2019 @ 5:22am 
Good to know ! Had not noticed, don't pay much attention to it.
I guess the devs know their player base, most of them don't play vanilla.
CubeBix9000 Jun 14, 2019 @ 8:48pm 
if you have mods on X4 you still get achievements.