Space Engineers

Space Engineers

Not enough ratings
Automatic Subgrid Renaming
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Other
File Size
Posted
Updated
248.098 KB
25 Jun @ 4:46pm
25 Jun @ 5:42pm
2 Change Notes ( view )

Subscribe to download
Automatic Subgrid Renaming

Description
Modifies rotors, hinges, and pistons to automatically rename their attached subgrids.

The subgrids are renamed when the the grid is loaded/spawned or when the grid is attached.

Subgrids will only be renamed if the base grid name does NOT start with "Large Grid" or "Small Grid" and the subgrid DOES start with either of those two.

Subgrids will be renamed with the base grid name plus a space followed by a number. If the base grid's name ends with a space and a number that number will be incremented by one for the subgrid.

If there are multiple subgrids chained together, the name from the root grid may not fully propagate to all the subgrids without reloading a few times. (It depends on what order the attach events fire.)

Example:
Base grid is named "TEST" and you add a piston to the grid. The grid for the piston head will be named "TEST 1". If you add a second piston on top of the first, the end grid will get named "TEST 2".
1 Comments
QBFreak 25 Jun @ 6:04pm 
I'm drafting a letter to the Nobel Commission as we speak.
It just says "This guy, am I right?"
I figure it ought to be good for a medal in physics and the peace prize.