Space Engineers

Space Engineers

551 ratings
Whip's Block Renamer
2
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.039 MB
30 Jan, 2018 @ 11:17pm
18 Dec, 2023 @ 6:07pm
9 Change Notes ( view )

Subscribe to download
Whip's Block Renamer

In 1 collection by Whiplash141
Whip's Scripts
22 items
Description
Whip's Group Based Block Renaming Code

Howdy!

This program makes renaming large groups of blocks easy! You can use this script to rename, prefix, or suffix block names. Additionally, there are built in functions to prefix or suffix the grid name to your blocks (Incredibly helpful for multi-grid ships!).

Also, unlike some similar scripts, this script will allow you to rename blocks to their default names with little hassle!


  • Can replace certain phrases with new phrases
  • Can prefix, suffix, and rename blocks
  • Can also rename blocks to their default names
  • Can prefix or suffix blocks based on grid name!
  • Renamed blocks can be numbered automatically
  • Ships with many blocks will have preceeding zeroes attached to the block number to make them show in order in terminal
  • Can configure numbering and behavior in the custom data.


  1. Place this script in a programmable block
  2. Group blocks that you want to rename with the GROUP RENAME TAGS in the section below
  3. (Optional) Configure custom data of the programmable block how you like.
  4. Run the program once. This will rename/prefix/suffix all blocks in recognized rename groups.
  5. You can now delete these groups if you desire
  6. Enjoy!


Group Rename Tag
Description
default
Renames all blocks in group to their default name
default prefix
Prefixes all blocks with their default name
default suffix
Suffixes all blocks with their default name
prefix [desired prefix]
Prefixes all blocks in group with desired prefix
suffix [desired suffix]
Suffixes all blocks in group with the desired suffix
rename [desired name]
Renames all blocks in group to specified name w/ optional numbering
grid prefix
Prefixes all blocks in group with the name of their grid
grid suffix
Suffixes all blocks in group with the name of their grid
replace "[old phrase]" with "[new phrase]"
Replaces the specified old phrase with the new phrase in all blocks contained within the group


This is one of my simpler codes, but also one if my most used ones. I figured this may be helpful for others as I oft get tired of manually renaming large groups of blocks.

If y'all have any questions, feel free to ask!

(Do not reupload without permission, not even to mod.io)
Popular Discussions View All (1)
3
29 Nov, 2020 @ 7:08pm
PINNED: Bug Reports
Whiplash141
200 Comments
Whiplash141  [author] 6 Jan @ 7:12pm 
Read the description above @Duke3D
Duke3D 6 Jan @ 6:10pm 
who work ? pls a example
SioxerNikita 1 Nov, 2024 @ 4:58pm 
As long as it just numbers them appropriately, I wouldn't even mind not having a "direction" parameter, and instead your script just arbitrarily uses a default direction.
Whiplash141  [author] 1 Nov, 2024 @ 4:22pm 
That is non trivial to do because a players conception of direction is entirely arbitrary.
SioxerNikita 31 Oct, 2024 @ 10:16am 
There is actually one feature I noticed missing for arrays of stuff. Walls of welders, grinders, etc.

Could be nice to have where if you have the group, it'll choose one corner as offset (perhaps with a modifier to choose which, like T/BL/RF/B (Top/Bottom, Left/Right, Front/Back ex. TLF for top left front) start that block as 00 (or what ever leading zeroes) and then if all the blocks are in a single plane, it just starts naming them 00 to Whatever based on the offset from the first "origin" block, and if there is 2D plane of them, they'll be named based on offset in 2D (00-00->00-01->01-00->01-01) and in 3D, add one more. If there is multiple blocks in between, it'll just "skip" the numbers, so if I had arranged like
X0X
XXX
X0X (Xs being my renamed blocks)

They'd be named, if I start top left, they'd be named:
0-0, 0-1, 0-2
1-0, , 1-2
2-0, 2-1, 2-2

Orientation could be based on main cockpit.

This one feels like it has genuine use cases outside of preference
Whiplash141  [author] 25 Oct, 2024 @ 6:37pm 
"Would be nice to number blocks"
It does. You can configure that in custom data
Into 25 Oct, 2024 @ 5:22am 
Would be nice to number blocks
StikShift4Life 10 Sep, 2024 @ 1:07am 
Could you add a feature to append a number sequentially in hexadecimal?
Whiplash141  [author] 18 Dec, 2023 @ 6:10pm 
@Brusura:

It's because I was dumb and wasn't reading config when prefixing with a custom prefix and not default or grid name. Fixed in v7.1.2, thanks for the report.
Caspatio 18 Dec, 2023 @ 5:35pm 
Step 2 isn't clear.
"2.Group blocks that you want to rename with the GROUP RENAME TAGS in the section below"
Where exactly? How?
Provide an example of a working model.