Space Engineers

Space Engineers

423 arvostelua
Isy's Block Renaming Script
5
2
2
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Tunnisteet: other_script
Tiedostokoko
Julkaistu
Päivitetty
374.519 KB
25.4.2017 klo 15.32
28.8.2023 klo 13.30
18 muutosilmoitusta ( näytä )

Tilaa ladataksesi
Isy's Block Renaming Script

1 kokoelmassa, tekijä Isy
Isy's Main Scripts
5 luomusta
Kuvaus
This script renames blocks in your terminal based on a given old name and new name. Optionally it can create new continuous numbers for all the blocks, even with leading zeros or autosort your whole grid. Special functions like adding a string to the start or end of your block names are also integrated.

Current Version:
Version: 1.6.4
Date: 2023-08-28

Main features:
  • rename blocks based on a search filter
  • replace strings in blocknames with other one
  • remove strings in blocknames
  • restore default blocknames
  • create new continuous numbers for the blocks
  • autosort the whole grid
  • add specific strings to the front or back of your blocknames
  • rename grids based on a block search filter
  • copy and delete custom data
  • filter blocks by name, group or type

Basic Setup:
  • set up a programmable block with the script (no timer required)
  • run the script with one of the following parameters as an argument (parameters are always seperated with a comma ","):
  • Note: Game has to be in experimental mode and ingame scripts have to enabled in world options!

Full Guide:
Click the image or the link below to view the full guide:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2066808115

Tutorial Videos:
How to enable ingame scripts: https://youtu.be/NkhZ7BbYgvc
Script video guide (very outdated!): https://youtu.be/xGSWc57VwMA

Note:
- Be sure to always check your ownership! All used blocks should be owned by you (Owner: Me)!

Known Bugs / Planned Features:
- nothing for now

Join my discord:

You need additional help, want to make suggestions or just want be up to date about my scripts? Join my discord server:
https://discord.gg/gY9aUUy

Wanna buy me a beer?

If you like my work, you can buy me a beer via PayPal:
http://paypal.me/derisy/1

Thanks to all my donators so far!
185 kommenttia
azfalt 13.10.2024 klo 14.57 
Would have been nice with a warning before using this, like: "don't use this script if your grid and subgrids exedes ex amount of blocks in use."

Making this script useless imo.
BooseOG 28.9.2024 klo 11.02 
I don;t know if its possible as a feature but would it ne possible to add a command that added a prefix that you can set to all block in the grid?

So if I build a ship it can easily be identified when docking.
Isy  [tekijä] 24.7.2024 klo 22.20 
To conclude: it's complicated ;)
Isy  [tekijä] 24.7.2024 klo 22.20 
Sort by location isn't a trivial thing. The way, my script sorts blocks is by using the game's block getter, that spits out lists of blocks. The way, these are ordered doesn't have anything to do with the order, the objects were built. When building in SE, everything gets assigned a random number blockID and on script level, I get lists sorted by this blockID. Here an oversimplified example:

Refinery 1 gets blockID: 28
Refinery 2 gets 76
Refinery 3 gets 17

My script will now get the list of refineries in the order:
Refinery 3, Refinery 1, Refinery 2

And will rename them like that:
Refinery 3 -> Refinery 1
Refinery 1 -> Refinery 2
Refinery 2 -> Refinery 3

The only thing I could do to avoid that, would be a world position distance calculation, which would be very slow and ressource heavy and would also probably spit out wrong results because the distance would be calculated in a circle around a starting block - for example the programmable block running the script.
sportplusmode 22.7.2024 klo 21.19 
Hey Isy, another lover of your (multiple) SE scripts here. Question here.

Like user @Merii inquired on 09-27-23: The ability to autosort number by block location on the grid (like top-to-bottom, left-to-right), which could be very helpful to speed repairs by location, I know you have not implemented this feature.

However. As a good-enough workaround, I'm trying to see if there's an option in the script to autosort number by *existing* block number. In other words, an option for the script that would sort blocks 3, 7, and 20 as 1, 2, and 3, specifically in that same ascending order (but now also contiguous).

This solution would solve the bigger problem of numbering "by location" because users could just re-add blocks in Creative in the right order, existing numbering regardless. Then run the script with this option enabled. That make sense? If so, do you know if there's an option in the existing script to handle such a flag? I'm still trying to tell from the documentation.
Katarina [WolfCraft Industries] 13.7.2024 klo 7.04 
there is a way to reset all names to their default name. for that read the guide, section > default name
TK_Over50 13.7.2024 klo 6.42 
This is cool, but I need something to translate+rename the blocks from Russian to English. Is this capable of that, or do you know of something that is?
kinngrimm 6.2.2024 klo 17.35 
the nomenclature of the syntax in the pictures on top seems not the same as what is described in the guide and used in the script, maybe from an older version
Isy  [tekijä] 19.11.2023 klo 18.34 
You're welcome :P
bobblehead 19.11.2023 klo 16.32 
@Isy Thank you, that is much clearer for me to understand. I really appreciate your taking the time to dumb this down for me. As I've said before, this script is awesome. Now that I have a better idea how to use it, it will indeed save me a huge amount of headaches. Thank you again.