Autonauts

Autonauts

Not enough ratings
Storage Cap to 100000
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
280.568 KB
22 Feb @ 4:47pm
1 Change Note ( view )

Subscribe to download
Storage Cap to 100000

Description
Change all storage capacity to 100,000.
Updates all storage capacity every 5 second.

This effect all non-empty storage including silo and barrel.

To work for silo and barrel ModStorage.SetStorageMaxCapacity() was used. This function can only be called after the game has loaded and only effect one storage building at a time. Due to this limitation, there is a 5 second repeating update rate in which all storage (and any newly built storage) are updated to change their capacity.

Known issue:
1. On loading the world, all storage building have their max capacity reset back to default, only after 5 second will the capacity will be changed back to 100,000. This shouldn't effect the stored amount.
2. Using this with storage links (mod) magnet causes the max capacity and stored amount to reset to the default max capacity whenever the magnet add item to the storage building for item with durability. My method to change the capacity don't like how storage links magnet add item with durability to storage building. If you want this to work with those item, you will need to modify storage links to use "ModStorage.SetStorageQuantityStored()" instead of "ModStorage.AddToStorage()".

I will not be updating this. Feel free to use / modify the lua however you want.