Space Engineers

Space Engineers

423 lượt đánh giá
Isy's Block Renaming Script
5
2
2
   
Giải thưởng
Yêu thích
Đã yêu thích
Bỏ thích
Nhãn: other_script
Kích cỡ file
Đã đăng
Đã cập nhật
374.519 KB
25 Thg04, 2017 @ 3:32pm
28 Thg08, 2023 @ 1:30pm
18 ghi chú thay đổi ( xem )

Đăng ký để tải xuống
Isy's Block Renaming Script

Trong 1 bộ sưu tập tạo bởi Isy
Isy's Main Scripts
5 vật phẩm
Mô tả
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 bình luận
azfalt 13 Thg10, 2024 @ 2:57pm 
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 Thg09, 2024 @ 11:02am 
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  [tác giả] 24 Thg07, 2024 @ 10:20pm 
To conclude: it's complicated ;)
Isy  [tác giả] 24 Thg07, 2024 @ 10:20pm 
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 Thg07, 2024 @ 9:19pm 
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 Thg07, 2024 @ 7:04am 
there is a way to reset all names to their default name. for that read the guide, section > default name
TK_Over50 13 Thg07, 2024 @ 6:42am 
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 Thg02, 2024 @ 5:35pm 
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  [tác giả] 19 Thg11, 2023 @ 6:34pm 
You're welcome :P
bobblehead 19 Thg11, 2023 @ 4:32pm 
@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.