Space Engineers

Space Engineers

Not enough ratings
Automated Inventory Sorting Helper
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
1.684 KB
6 Feb, 2015 @ 2:04pm
1 Change Note ( view )

Subscribe to download
Automated Inventory Sorting Helper

Description
NOTE: This is only useful if you have the "Automated Inventory Sorting" mod installed.
Automated Inventory Sorting: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=321588701

If you're like me you have a welder ship in your world and you probably want that ship to have components in it for various welding related activities.
This is a little helper script that skips the effort of setting up that really long sorting string for all of your containers.

How to use:
WARNING: Running this script will reset the names of all your cargo containers.
You simply set the amount of volume you want to try and occupy (I like to use inventory_size/2 because my welder ship is usually a grinder ship too) and the priority that you want to use to suck with (e.g. if the base priority of your component containers is 10, you might want 9) and then run the script.
After that feel free to dock your ship to your component reservour and fill that puppy up.

If you want to change your priority or max volume at any time just do so in the script and run it again.

WARNING: Don't run while attached/docked to another ship unless you want all the containers renamed on both/all grids.

For nerds and tweakers:
The in-script documentation explains how to edit the base assumptions for how much of each you might want.
It is possible to set constant values e.g. "I want 1 missile in each container, no matter what" and it's also possible to set arbitrary proportional values e.g. "I want twice as many steel plates as I have large steel tubes inside the volume I have allowed".
Setting nonsensical values WON'T break the script, it will just confuse the Automated Inventory Sorting mod.

TODO:
Extensively survival test the base numbers to make sure that they're properly balanced.
Don't forcibly rename the cargo containers.


Any input is most welcome :)
4 Comments
Donny  [author] 7 Feb, 2015 @ 11:32am 
I meant the proportions array that you have, so I can use it/results from my testing to better balance the script.

That way your other faction mates can load up the better balanced proportions by default right away.

I just came up with the proportions off the top of my head and then had to go to work so I haven't actually had the chance to balance it yet so your input is most welcome.
Darkosis 7 Feb, 2015 @ 4:36am 
my current string for the large container on my small ship welder is:

[Component/Construction:P7:10000,Component/MetalGrid:P7:1000,Component/InteriorPlate:P7:10000,Component/SteelPlate:P7:10000,Component/Girder:P7:1000,Component/SmallTube:P7:1000,Component/LargeTube:P7:2000,Component/Component/Motor:P7:300,Component/Display:P7:200,Component/BulletproofGlass:P7:1000,Component/Computer:P7:1000,Component/Reactor:P7:2000,Component/Thrust:P7:2000,Component/RadioCommunication:P7:100,Component/SolarCell:P7:256,Component/PowerCell:P7:50]

I currently just keep a notepad on my desktop and copy that into any other welders i need, but having those proportions in your script would make it easy for other faction mates to load up their own welder (instead of hogging mine then crashing it) : (
Donny  [author] 7 Feb, 2015 @ 3:15am 
@Darkosis
Great to hear it's simple to use.
I'd love to see your adjusted proportions if you could pastebin them to me.

There is a way to do what you need, simply change the value of total_volume from the default to whatever you desire. The default value of ~6500 comes from using the adjusted inventory mod on small ship large containers at 1x inventory size divided by two.
I just tested to make sure it works correctly for your purpose and it does.
Keep in mind that it'll underfill if you're short on specific components.

There's nothing I can really do about that since my script can't control the amount of components you have but you can use some of the more advanced features of the inventory sorting mod to ensure that the minimum requirements are met and then brim the containers with whatever they can find. That'd just involve adding a bit to the end_string.
A simpler solution would just be to aim to fill a volume higher than the volume of the containers and hope that it works out.
Darkosis 6 Feb, 2015 @ 8:05pm 
I love the script ease of having adjusted amount proportions however, my dedicated welder ship i want to use this on is a small ship with multiple large cargo containers and this scrip doesn't come close to using all of the available storage space. My cargo containers have a volume of 80,000 and the script will only use 6,553. Is there a way to adjust this script simply to use all available space without changing any of your other settings?

BTW, thank you so much for the script, great helper script idea!