Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Making this script useless imo.
So if I build a ship it can easily be identified when docking.
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.
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.
rename,OLDNAME,NEWNAME[,FILTER][,GRID]
To only affect the group, use:
rename,Warfare Hangar Door,Inner Wall Hangar Door,G:Inner Wall Hangar Doors
(this implies, that you grouped all inner wall hangar doors in the mentioned group: Inner Wall Hangar Doors - maybe just temporary for the rename to go through)
Parameters can also be skipped with the asterisc symbol * to affect all blocks that match the FILTER, in this case the group:
rename,*,Inner Wall Hangar Door,G:Inner Wall Hangar Doors
And to sort them right away, use the !sort modifier directly:
rename,*,Inner Wall Hangar Door,G:Inner Wall Hangar Doors,!sort
addfront,your prefix,Camera,First word of Grid
The "G:" modifier is a group modifier used in the [FILTER] part of addfront:
addfront,STRING[,FILTER][,GRID]
For example if you have a group of cameras:
addfront,your prefix,G:My Camera Group,First word of Grid
where "texttoadd" = my prefix, "partialblockname" = Camera, and "partialgridname" = just the first word in the current Grid Name, doesn't seem to do anything, at all. Not even an error. Just gives me a blank area where the instructions or renamed report would otherwise show up. Also, if I leave off the "!test" and take the risk, it still doesn't seem to do anything. Nothing gets added to any of the block names and nothing at all ever shows up in the PB's text area. If I remove the argument and hit "run" again then your instructions show up again just fine.
I'm sure it's just me, kinda tend to break things I use it seems. This comment was mainly just me thinking out loud while typing. Again, sorry for the bother.
Even so, I was able to work around it and am extremely happy with this script because it does a great job for what it was designed to do so many thanks to Isy for another great script!
rename,Refinery,Raffinerie
rename,Thruster,Schubdüse
...
(english to german)
addfront,|Base|
Or if you want to target a specific grid:
addfront,|Base|,*,Large Grid 12345
See guide topic "Add string" for more informations:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2066808115#3535533
Thank you for your scripts they are very interesting...
For this script which renames the blocks, have you planned to be able to add a prefix for all the blocks of the same grid?
Let me explain: In fact, to distinguish my blocks in the different grids, I like to put an identical prefix in front of the name for each grid. Example: |Base|Rotor, |Base|Connector, |Jet|Connector, etc...
Thank you and good luck for the future ;)
Version 1.6.3:
- Fixed: The deletedata no longer requires 3 parameters. This was an oversight and was pointed out by BoompaBlubbah ( https://steamhost.cn/steamcommunity_com/profiles/76561198168517424 ) - thanks buddy!
Only little thing I wanted to make u aware of is that the delete customdata field function isn't functioning, or isn't functioning in the way all other functions are functioning (ok I actually managed to use ... nevermind). I give: deletedata,G:NAME but it will keep giving back that the command requires an additional parameter :|
Remove a string from your blocknames.
remove,STRING[,FILTER][,GRID]
FILTER is optional and filters the possible blocks! All connected blocks that match STRING are renamed if it's missing!
Learn more about filters in the guide topic Filters
GRID is optional and filters the grid, blocks can be found! Partial gridnames are enabled, e.g.: 'Isy' will find 'Isy's welder ship'. All connected grids are searched if it's missing!
Hint: To skip parameters, use asterisk *
p.s. Nice set of script by the way specially the inventory one :)
Thanks!
Thanks for any help
Also: you write your question in english and your name is "ThePandaNetwork", so you're clearly able to at least read and write in english - should be enough for this script.. Otherwise, you should name yourself DasPandaNetzwerk :P
all scripts are always english
Nice script, now I use it all the time. Previously, you had to do everything with your hands, this is :?"%;?% (non-translatable national pun). Thank you, the script has earned a 100% subscription and like.
(sorry for the translation, google)
Version 1.6.2:
- Added/Changed: The gridfilter was added to all available commands and also the existing syntax was unified. (this was suggested by voidpointer)
- Changed: The addfront and addback commands won't add another string if the string already exists. (this was also suggested by voidpointer)
- Fixed: Autosort, regular sort and remove numbers sometimes replaced the wrong number of the block name. This is now fixed. (thx to Tubular for reporting this issue)
- Removed: The addfrontgrid and addbackgrid commands were removed because they were redundand due to the recent changes.
- The steam workshop guide was updated to the newest changes.