What?
Resizes the tank capacity of vanilla pipe network (VPN) mods according to increased or decreased stack sizes.
A restart is required for the tanks to resize if the stack size of things is changed. If you reduce the size and the tank was full, the excess contents will be lost.
Can safely be added or removed midgame. Although removing it will delete all content above the original capacity
How?
By calculating the ratio of the storage capacity to the original stack size and then multiplying this ratio with the new stack size. For good measure, I also rounded up the capacities to 100.
Supported mods
Most likely works with all stack size mods. Tested with [url=https://steamcommunity.com/sharedfiles/filedetails/?id=1447140290]OgreStack [/url] and [url=https://steamcommunity.com/sharedfiles/filedetails/?id=826366050]XXL Stack[/url].
[b]Should work for all mods using the vanilla expanded pipe network since it will automatically patch all Vanilla Pipe Network tanks[/b] if the ressource name in the storageComp is the same as the def name of the thing (for example chemfuel or deepchem tanks). Otherwise manuell patching is required (for example Nutrient Paste or Hemogen Vats).
If you find other tanks for which this doesnt work leave a comment and I will add it.
Tested with
- [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2920385763]Vanilla Nutrient Paste Expanded[/url]
- [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2921013972]Vanilla Nutrient Paste Expanded: Deep Vat[/url]
- [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2792917473]Vanilla Chemfuel Expanded[/url]
- [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2975771801]Vanilla Races Expanded - Android[/url]
- [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2963116383]Vanilla Races Expanded - Sanguophage[/url]
- [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2965143667]More Hemogen Vats[/url]
- [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2931216924]Vanilla Milk Expanded[/url]
- [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2988129340]Milk Pipe Network[/url]
- [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3075384838]Ancient hydroponic farm facilities[/url]
It has no effect on the [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2877699803]Helixien Gas[/url] Tank, maybe because helixien gas stack size is not change by stack size changing mods since its not really a thing that can spawn normaly.
Load order
Apparently, it doesn't matter, although I have yet to fully understand why. I expected the mod would have to be loaded before stack size changing mods since I am loading and saving the original stack limits. And then execute code after all mods are loaded to use the difference. But in my tests, I get the correct numbers regardless of whether my mod is the first or last in the mod list.
Please tell me if you have a stack size changing mod where the load order compared to this mod matters.
WARNING
Using this mod might lead to complete base destruction and mass death by fire caused by explosions of tens of thousands of liters chemfuel, deepchem or milk. You have been warned!
Need more Pipe Network Stuff? Have a look at my other mods
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=2979624445][img]https://i.ibb.co/kQHZP0v/Preview-Small.png[/img][/url]