About this mod
Fixes the tradestation economy and also resolves the Nividium economy breaking down. Last tested with 6.0. Works without problems.
- Permissions and credits
- Changelogs
(UPDATED) Drain the stations:
This mod adds a simple wares drain to all the tradestations, shipyards, wharfs and equipment docks in the game. So no more overfilled stations that can not buy anything or are stuck in the production with having no storage capacity for the last important hullparts to buy to finish the build list.
Once a ware in a tradestation, shipyard, wharf or equipment dock gets filled up over 90% of its container space it will be targeted by this mod after 5 minutes and the specific ware gets reduced down to 90% of its maximum storage capacity.
Nividium get a special treatment and will be plain consumed by 30% if it reaches 50% of its maximum capacity.
Last tested with 6.0. Works without problems.
(NEW) Fill the stations:
Tackling an other problem, this mod tries to give a stagnant economy a little push. All tradestations only, will be checked during the drain cyle of 5 minutes for empty wares. If a ware on a trade station is below 100 cargo, it will get a basic stock of that specific ware until the amount of 100 cargo is reached again.
This gives low economy sectors or war torn reagions the chance to slowly get up on their feet again.
This mod partially counteracts the problem of a dying economy if not enough war is going on, but I need to observe this more.
(NEW) Easy custom configuration:
I've added an extra Config file, for you to turn features on and off. You can select what station type gets drained or filled, and set the cargo threshold to what capacity the wares are going to be filled up. Just look inside the "md" folder in the downloaded mod.
Be carefull though. The ware refill mechanic is deactivated by default for shipyards, wharfs and equipmend docks. You can easily enable it via the config file. But keep in mind that all the drain and fill mechanics do affect the Xenon wharfs and shipyards too. So if you turn that feature on and crank up the volume on the cargo threshold to much, you might end up with a never ending Xenon army.
Why would I want this:
I was tired of the crashing economy with no need for Nividium in all the production chains. Only the tradestations were able to buy my precious Nividium, but once the containers were full, there was no place my miners could sell their wares.
Additionally all other wares in the tradestation could become overfilled once the production gets higher than the demand. Resulting in an economical dead end for the given tradestation.
Note:
There is a litte drainscript already in the game, but it only drains the wares on tradestations that are actually sold back by the station. But as not all wares are sold, and more are bought by some tradestations these wares got stuck in an overfilled dead end container. And the vanilla drain even for selling wares is by far not enough.
Maybe Egosoft will fix that problem some day, but for now I just use that mod.
Installation:
Download the file, extract the ZIP folder and move it to your extensions folder (in your game root directory, NOT
DOCUMENTS).
In case you don't have one yet, simply create it at the base directory of X4, so for a steam user it would
be: Steam\steamapps\common\X4 Foundations\extensions
Changelog:
v1.3 - reworked the code to be stable under game version v3.3 and v4.0 (thanks for all the messages and suggestions)
- changed the timer to run every 5 minutes to feel not so "cheaty" anymore
- changed the drain value. Now all wares will be drained until the given storage maximum of 90%. (Nividium still keeps its special treatment)
- added shipyards, wharfs and equipment docks to the drained staiton list, to circumvate the problem of a stuck ship production
- added support works for all Split stations (works with and without the Split Vendeta DLC)
- added fill function to tradestaions. Tradestaitons with no cargo of any ware, will receive an amount of 100 to every ware type. This helps to negate a little bit against an early game economy stagnation.
- added an easy to use config file to set up the minimum amount of wares to filled up. It also allows to enable or disable the drain and the fill mechanics to be set up per station type individually
- Xenon Shipyards and Wharfs get the same treament like all other shipyards and wharfs (be carefull not to crank up the fill amount to much with an active shipyards and wharf fill mechanics. Xenon might get way to aggressive with that one)
v1.2.1 - removed a little bug that caused the debuglog to fill with unwanted messages
v1.2 - reworked the mod (thanks to iforgotmysocks for the help)
- changed the way the universe was scanned
- changed the drain intervall to 5 minutes
- changed calculation of wares to be removed. Now all wares will be drained until the given storage maximum of 75%.
- Nividium has a special treatment now. Once the Nividium storage reaches 50% of its maximum storage capacity, it will be drained by 30%.
v1.1 - fixed a bug that caused the mod not to start correctly on Game Version 1.50
v1.0 - inital release