Space Engineers

Space Engineers

62 个评价
All My Stuff
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
365.734 KB
2022 年 5 月 15 日 上午 5:03
6 月 14 日 上午 3:02
13 项改动说明 ( 查看 )

订阅以下载
All My Stuff

描述
All My Stuff (version 1.6.1)
------------
A script to keep track of your inventory. If you are using the Colorful Icons mod,
you might want to consider using Arthur's modified version of this script.

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] AmmoMagazine/AutocannonClip=Autocannon Magazine AmmoMagazine/AutomaticRifleGun_Mag_20rd=MR-20 Rifle Magazine AmmoMagazine/ElitePistolMagazine=S-10E Pistol Magazine AmmoMagazine/FireworksBoxBlue=Fireworks Blue AmmoMagazine/FireworksBoxGreen=Fireworks Green AmmoMagazine/FireworksBoxPink=Fireworks Pink AmmoMagazine/FireworksBoxRainbow=Fireworks Rainbow AmmoMagazine/FireworksBoxRed=Fireworks Red AmmoMagazine/FireworksBoxYellow=Fireworks Yellow AmmoMagazine/FlareClip=Flare Gun Clip AmmoMagazine/FullAutoPistolMagazine=S-20A Pistol Magazine AmmoMagazine/LargeCalibreAmmo=Artillery Shell AmmoMagazine/LargeRailgunAmmo=Large Railgun Sabot AmmoMagazine/MediumCalibreAmmo=Assault Cannon Shell AmmoMagazine/Missile200mm=Rocket AmmoMagazine/NATO_25x184mm=Gatling Ammo Box AmmoMagazine/NATO_5p56x45mm=5.56x45mm NATO magazine AmmoMagazine/PreciseAutomaticRifleGun_Mag_5rd=MR-8P Rifle Magazine AmmoMagazine/RapidFireAutomaticRifleGun_Mag_50rd=MR-50A Rifle Magazine AmmoMagazine/SemiAutoPistolMagazine=S-10 Pistol Magazine AmmoMagazine/SmallRailgunAmmo=Small Railgun Sabot AmmoMagazine/UltimateAutomaticRifleGun_Mag_30rd=MR-30E Rifle Magazine Component/BulletproofGlass=Bulletproof Glass Component/Canvas=Canvas Component/Computer=Computer Component/Construction=Construction Comp. Component/Detector=Detector Comp. Component/Display=Display Component/EngineerPlushie=Engineer Plushie Component/Explosives=Explosives Component/Girder=Girder Component/GravityGenerator=Gravity Comp. Component/InteriorPlate=Interior Plate Component/LargeTube=Large Steel Tube Component/Medical=Medical Comp. Component/MetalGrid=Metal Grid Component/Motor=Motor Component/PowerCell=Power Cell Component/PrototechCapacitor=Prototech Capacitor Component/PrototechCircuitry=Prototech Circuitry Component/PrototechCoolingUnit=Prototech Cooling Unit Component/PrototechFrame=Prototech Frame Component/PrototechMachinery=Prototech Machinery Component/PrototechPanel=Prototech Panel Component/PrototechPropulsionUnit=Prototech Propulsion Unit 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/Superconductor=Superconductor Component/Thrust=Thruster Comp. ConsumableItem/ClangCola=Clang Kola ConsumableItem/CosmicCoffee=Cosmic Coffee GasContainerObject/HydrogenBottle=Hydrogen Bottle Ingot/Cobalt=Cobalt Ingot Ingot/Gold=Gold Ingot Ingot/Iron=Iron Ingot Ingot/Magnesium=Magnesium Powder Ingot/Nickel=Nickel Ingot Ingot/Platinum=Platinum Ingot Ingot/PrototechScrap=Prototech Scrap Ingot/Scrap=Old Scrap Metal Ingot/Silicon=Silicon Wafer Ingot/Silver=Silver Ingot Ingot/Stone=Gravel Ingot/Uranium=Uranium Ingot Ore/Cobalt=Cobalt Ore Ore/Gold=Gold Ore Ore/Ice=Ice Ore/Iron=Iron Ore Ore/Magnesium=Magnesium Ore Ore/Nickel=Nickel Ore Ore/Organic=Organic Ore/Platinum=Platinum Ore Ore/Scrap=Scrap Metal Ore/Silicon=Silicon Ore Ore/Silver=Silver Ore Ore/Stone=Stone Ore/Uranium=Uranium Ore OxygenContainerObject/OxygenBottle=Oxygen Bottle PhysicalGunObject/AdvancedHandHeldLauncherItem=PRO-1 Rocket Launcher PhysicalGunObject/AngleGrinder2Item=Enhanced Grinder PhysicalGunObject/AngleGrinder3Item=Proficient Grinder PhysicalGunObject/AngleGrinder4Item=Elite Grinder PhysicalGunObject/AngleGrinderItem=Grinder PhysicalGunObject/AutomaticRifleItem=MR-20 Rifle PhysicalGunObject/BasicHandHeldLauncherItem=RO-1 Rocket Launcher PhysicalGunObject/CubePlacerItem= PhysicalGunObject/ElitePistolItem=S-10E Pistol PhysicalGunObject/FlareGunItem=Flare Gun PhysicalGunObject/FullAutoPistolItem=S-20A Pistol PhysicalGunObject/HandDrill2Item=Enhanced Hand Drill PhysicalGunObject/HandDrill3Item=Proficient Hand Drill PhysicalGunObject/HandDrill4Item=Elite Hand Drill PhysicalGunObject/HandDrillItem=Hand Drill PhysicalGunObject/PreciseAutomaticRifleItem=MR-8P Rifle PhysicalGunObject/RapidFireAutomaticRifleItem=MR-50A Rifle PhysicalGunObject/SemiAutoPistolItem=S-10 Pistol PhysicalGunObject/UltimateAutomaticRifleItem=MR-30E Rifle PhysicalGunObject/Welder2Item=Enhanced Welder PhysicalGunObject/Welder3Item=Proficient Welder PhysicalGunObject/Welder4Item=Elite Welder PhysicalGunObject/WelderItem=Welder
109 条留言
Brianetta  [作者] 19 小时以前 
It can handle a station. Use the scale option to reduce the font size. If you need it to go onto additional screens, use more screens, and use the skip option to skip the lines already being shown on the first screen.
TK_Over50 19 小时以前 
The display is displaying, But not everything and I may need it to either scroll or be small enough to see what I am looking for. Is this just for a mining ship, or can it handle a station?
TK_Over50 22 小时以前 
I appreciate that.
Brianetta  [作者] 10 月 25 日 上午 5:25 
Don't guess. I wrote it all down, so guessing isn't required.
TK_Over50 10 月 24 日 下午 3:15 
That would would have been my very last guess. Thank you so much!!!
Brianetta  [作者] 10 月 24 日 上午 11:08 
Go to your screen, and in its Custom Data, type in [inventory]. Install the script on a programmable block on the same ship.
TK_Over50 10 月 24 日 上午 12:02 
I'm just trying to get this script to display on a single LCD on my mining ship. I'm LOST!!!
Arthur 7 月 26 日 下午 12:48 
@V This script is very minimalist and doesn't store any information about the item except the name and total amount, because of that, track where the Item is, is impossible with the current architecture and would require a completely rewrite of the script (and in the process, losing the goal of being lightweight)

one thing that could be implemented, is a global white/black list, so you can setup in a way that the script only shows items in containers with an specific tag in the name/custom data or from an specific group, so you can set up the script to only display this group
(and probably need to have some configuration to set the Display tag, so multiples instances can run same ship)
𝐣𝐚𝐝𝐞⁽²¹⁰¹⁾ 6 月 5 日 上午 10:13 
It would be nice if there was a way to have a display show the inventory of a specific container or group of containers.
Arthur 5 月 10 日 下午 8:26 
Think is fixed @Awsomedude2479 :meephappy: