Space Engineers

Space Engineers

68 ratings
Terminal Cleaner
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.756 KB
1 Nov, 2017 @ 11:16am
26 Apr, 2018 @ 12:11pm
8 Change Notes ( view )

Subscribe to download
Terminal Cleaner

Description
Prepends the name of every terminal block with {Grid Name}

e.g. "... Timer Block 3 ..." becomes "{Grid Name} ... Timer Block 3 ..."

where Grid Name is the name set in the terminal Info panel

will also detect when the name of a grid is different from the header {...} of its terminal blocks, and adjust the block names accordingly.

11-12-17 - Now hides grouped blocks and selected other blocks.
The following is a list of the blocks that are automatically hidden from the terminal and the toolbar config panel:
Efficiency Upgrade Module
Effectiveness Upgrade Module (Yield)
Productivity Upgrade Module (Speed)
All cargo containers
All artificial mass blocks
Spaceballs
Control panels
Solar panels

02-04-18 - Adding [TC:NoHide] anywhere after the main {} header will prevent auto-hiding on a given block. It must be exactly as typed here, with no spaces.

04-26-18 - Added Arguments parsing to support grid renaming and disabling of auto-hide feature.

Arguments (Command-Line only);
Reset -- Resets the names of all blocks on the grid to default. Use with caution.
DoHiding = bool -- sets an internal flag to disable or enable autohiding. default: true.
GridName = String -- sets the name of the grid running the program.

Note: for the GridName argument to work, the owner of the PB running the script must own the grid.

This script is a work in progress, more features may be added in the future.
21 Comments
MiggyMan 5 May, 2018 @ 9:38am 
Well, that is working marvelously :D

But i've had another idea, how about including a named text panel on each subgrid with the name of that subgrid on it so that when you run the script while docked it renames all subgrids to a set name as well ? :D
MiggyMan 27 Apr, 2018 @ 8:24am 
Nice :D
lblackthorne  [author] 26 Apr, 2018 @ 12:13pm 
Update!

Note: for the GridName argument to work, the owner of the PB running the script must own the grid.
lblackthorne  [author] 26 Apr, 2018 @ 9:13am 
It's not a bad idea. I've been trying to think of a way to handle merge blocks intelligently.
MiggyMan 26 Apr, 2018 @ 6:57am 
Could you add the option to also rename the grid to a given value first, it would make this script insanely handy in situations where your using merge blocks.
lblackthorne  [author] 4 Feb, 2018 @ 8:33pm 
Update!
lblackthorne  [author] 4 Feb, 2018 @ 7:57pm 
Turning off the cargo hiding is simple enough though. Just comment out the following lines in the HideableBlocks list at the top.

"LargeBlockLargeContainer"
"LargeBlockSmallContainer"
"SmallBlockLargeContainer"
"SmallBlockSmallContainer"
"MediumContainer"

so they'll look like this:

// "LargeBlockLargeContainer"
// "LargeBlockSmallContainer"
// "SmallBlockLargeContainer"
// "SmallBlockSmallContainer"
// "MediumContainer"

I'll see about adding a tag that it checks before hiding blocks.
FortressButress 4 Feb, 2018 @ 9:36am 
I would also like to add support for a toggle in hiding blocks. I use Taleden's Inventory Manager, so having cargo blocks be automatically hidden with this mod is quite annoying. In addition I always group my batteries to make buttons from them on my toolbar, but I still frequently check their status/power levels and this is also annoying to have them hidden from view.

I typically only hide blocks that I never really touch - such as thrusters - or have no modification options like assember modules. Would love to see a toggle for auto-hiding blocks in the future :)
lblackthorne  [author] 9 Dec, 2017 @ 1:22pm 
The only blocks it hides are those that are already grouped, and those that are pointless in either the terminal or the toolbar config. The feature vetted well, but I'll consider adding a configuration option when I have time.
aikiwolfie 9 Dec, 2017 @ 12:59pm 
Auto hiding blocks really should be something the user needs to request via an argument. It's actually quite annoying as a default.