Space Engineers

Space Engineers

55 vurderinger
All My Stuff
   
Utmerkelse
Favoritt
Favoritter
Fjern som favoritt
Merkelapper: inventory management
Filstørrelse
Lagt ut
Oppdatert
361.347 KB
15. mai 2022 kl. 5.03
12. mars kl. 14.44
11 endringslogger ( vis )

Abonner for å laste ned
All My Stuff

Beskrivelse
All My Stuff (version 1.5.0)
------------
A script to keep track of your inventory

Configure using Custom Data. In the Programmable Block, the Inventory section
sets the options while the Translation section provides alternative labels. Put an
Inventory section into any screen's Custom Data to activate it, which can be empty.

Here are the defaults:

[inventory] # Set this to change the update frequency. delay=3 # Use this to control a display for output (they start at 0) # For example, use this on a cockpit. The order is the same # as in the cockpit's terminal menu. display=0 # Make things on the display larger or smaller scale = 1.0 # Use this on a second screen if the lines don't all fit on the first, to skip lines skip = 0 # Use this to customise the header color of a screen color = 00FF55 # change to true to display numbers in the monospace font mono = false # Change to true to stop showing lines with zero stock levels suppress_zeros = false # Enable filtering enablefilter = true filter = ConsumableItem, Datapad, PhysicalGunObject, AmmoMagazine, Ore, Ingot, Component # Enable coloured line separators separators = true # Enable saved game persistence savetypes = true

An alternative, for those who wish to use more than one screen on a given
block at once, is to configure displays in the following manner (this example
works on the Sci-Fi Button Panel):

[inventory_display0] scale=0.4 [inventory_display1] scale=0.4 skip=5 [inventory_display2] scale=0.4 skip=10 [inventory_display3] scale=0.4 skip=15

You can set up a filter by adding a filter option. The options in the example above are all the valid ones, and you can have any selection that you want. As with colour, scale and skip, the filter is a per-screen option.

To re-scan for new inventories and reload the configuration, run with the argument rebuild

To clear any items from the inventory display that have a zero count, run with the argument clear

You can configure translations in the Custom Data section of the Programmable Block (this is global). This allows you to change the labels from the default internals. It might harm performance; removing the configuration will disable it.

Here is a useful translation configuration to use. It can be pasted into the Custom Data, before or after the rest of the configuration:

[Translation] Component/BulletproofGlass=Bulletproof Glass Component/Construction=Construction Comp. Component/Detector=Detector Comp. Component/EngineerPlushie=Engineer Plushie Component/GravityGenerator=Gravity Comp. Component/InteriorPlate=Interior Plate Component/LargeTube=Large Steel Tube Component/Medical=Medical Comp. Component/MetalGrid=Metal Grid Component/PowerCell=Power Cell Component/RadioCommunication=Radio-comm Comp. Component/Reactor=Reactor Comp. Component/SabiroidPlushie=Saberoid Plushie Component/SmallTube=Small Steel Tube Component/SolarCell=Solar Cell Component/SteelPlate=Steel Plate Component/Thrust=Thruster Comp. Component/ZoneChip=Zone Chip Ingot/Cobalt=Cobalt Ingot Ingot/Gold=Gold Ingot Ingot/Stone=Gravel Ingot/Iron=Iron Ingot Ingot/Magnesium=Magnesium Powder Ingot/Nickel=Nickel Ingot Ingot/Scrap=Old Scrap Metal Ingot/Platinum=Platinum Ingot Ingot/Silicon=Silicon Wafer Ingot/Silver=Silver Ingot Ingot/Uranium=Uranium Ingot Ore/Cobalt=Cobalt Ore Ore/Gold=Gold Ore Ore/Iron=Iron Ore Ore/Magnesium=Magnesium Ore Ore/Nickel=Nickel Ore Ore/Platinum=Platinum Ore Ore/Scrap=Scrap Metal Ore/Silicon=Silicon Ore Ore/Silver=Silver Ore Ore/Uranium=Uranium Ore ConsumableItem/ClangCola=Clang Kola ConsumableItem/CosmicCoffee=Cosmic Coffee PhysicalObject/SpaceCredit=Space Credit PhysicalGunObject/AngleGrinder4Item=Elite Grinder PhysicalGunObject/HandDrill4Item=Elite Hand Drill PhysicalGunObject/Welder4Item=Elite Welder PhysicalGunObject/AngleGrinder2Item=Enhanced Grinder PhysicalGunObject/HandDrill2Item=Enhanced Hand Drill PhysicalGunObject/Welder2Item=Enhanced Welder PhysicalGunObject/AngleGrinderItem=Grinder PhysicalGunObject/HandDrillItem=Hand Drill GasContainerObject/HydrogenBottle=Hydrogen Bottle PhysicalGunObject/AutomaticRifleItem=MR-20 Rifle PhysicalGunObject/UltimateAutomaticRifleItem=MR-30E Rifle PhysicalGunObject/RapidFireAutomaticRifleItem=MR-50A Rifle PhysicalGunObject/PreciseAutomaticRifleItem=MR-8P Rifle OxygenContainerObject/OxygenBottle=Oxygen Bottle PhysicalGunObject/AdvancedHandHeldLauncherItem=PRO-1 Rocket Launcher PhysicalGunObject/AngleGrinder3Item=Proficient Grinder PhysicalGunObject/HandDrill3Item=Proficient Hand Drill PhysicalGunObject/Welder3Item=Proficient Welder PhysicalGunObject/BasicHandHeldLauncherItem=RO-1 Rocket Launcher PhysicalGunObject/SemiAutoPistolItem=S-10 Pistol PhysicalGunObject/ElitePistolItem=S-10E Pistol PhysicalGunObject/FullAutoPistolItem=S-20A Pistol PhysicalGunObject/WelderItem=Welder AmmoMagazine/NATO_5p56x45mm=5.56x45mm NATO magazine AmmoMagazine/LargeCalibreAmmo=Artillery Shell AmmoMagazine/MediumCalibreAmmo=Assault Cannon Shell AmmoMagazine/AutocannonClip=Autocannon Magazine AmmoMagazine/NATO_25x184mm=Gatling Ammo Box AmmoMagazine/LargeRailgunAmmo=Large Railgun Sabot AmmoMagazine/AutomaticRifleGun_Mag_20rd=MR-20 Rifle Magazine AmmoMagazine/UltimateAutomaticRifleGun_Mag_30rd=MR-30E Rifle Magazine AmmoMagazine/RapidFireAutomaticRifleGun_Mag_50rd=MR-50A Rifle Magazine AmmoMagazine/PreciseAutomaticRifleGun_Mag_5rd=MR-8P Rifle Magazine AmmoMagazine/Missile200mm=Rocket AmmoMagazine/SemiAutoPistolMagazine=S-10 Pistol Magazine AmmoMagazine/ElitePistolMagazine=S-10E Pistol Magazine AmmoMagazine/FullAutoPistolMagazine=S-20A Pistol Magazine AmmoMagazine/SmallRailgunAmmo=Small Railgun Sabot
92 kommentarer
Brianetta  [skaper] 10. okt. kl. 9.07 
And you also added the enabling line to the Programmable Block's Custom Data?
BCMortis 8. okt. kl. 20.37 
I did that. Removed the items I don't want a screen to display from the filter types list in the screen's custom data, and they continued to display everything. For example, I'd remove all but 'Ore' from the list, and the screen would continue to display components and ammo
Brianetta  [skaper] 8. okt. kl. 16.03 
BCMortis, that option simply enables the filtering feature. You still have to add your filter= line to each screen, telling the script what you'd like to see on that screen.
BCMortis 6. okt. kl. 2.31 
Can't seem to get screens to filter what they display. Adding "enablefilter=true" to the Custom Data of the programming block doesn't seem to do anything.
Brianetta  [skaper] 15. feb. kl. 10.58 
Hi erik,

I'm afraid not. One of the goals of this script is to show you what's in your inventory, without harming performance. That's why it makes no inventory changes, and only displays what it finds on the screens.

There's no way to move inventory around without harming performance. If you want something to move your inventory around for you, there are inventory management scripts that will do what you want (although they're not as pretty).

Sorry about that. It's just not what this script is designed for.
erik 15. feb. kl. 2.22 
hello I have a request to make to you would it be possible to make a script for the management of ice stock which can be transferred from a Landa container to an ice container with support on LCD because I cannot find a script
Brianetta  [skaper] 12. feb. kl. 10.21 
Huge thanks to ArthurGamerHD for the 1.4.0 update!
YouTube.com/StoneLegion 11. jan. kl. 11.59 
Thanks, I ended up copy/pasting someone else's config a few pages back in the comments and it worked fine. Not sure if I derped up or not haha. Works well. Thanks!
Brianetta  [skaper] 11. jan. kl. 11.14 
Filtering is global (you put it in the programmable block's custom data). Font size is per-screen.
YouTube.com/StoneLegion 9. jan. kl. 20.37 
Hmm, No matter what I do Filtering will not enabled. I just copied / pasted the example above threw it into a programmer block custom data, screen custom data, etc. I can display items. It lists how many screens, etc. But I can't get any filtering, font size, etc to change via the above copy/paste into custom data's. Not sure if I'm doing anything wrong or not.

Thanks.