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
but the bottom line (again i dont know what any of this means or does) i added + " 01" in that last bit and it renames all my blocks without numbers the way i wanted it to.
if (numberBlocks) {shipDictionary.Add(nameToWrite, 1);}
shipList .CustomName = nameToWrite + " 01";
Works fully :)
For example: Light 12, Light 6, Light 16, Light 35, etc would be renamed to: Light, Light 02, Light 03, Light 04, etc. This would save me a few seconds of renaming the first block for each block type.
Thanks!
New way:
01 02 03 04 05 06 07 08 09 10 11 12
Old (current) way:
1 10 11 12 2 3 4 5 6 7 8 9
I have since forgotten everything I learend about C#. I am glad I wrote that code snippet now because I wouldn't be able to compose it now!
still works well btw.
if (restrictedGrid != shipList[i].CubeGrid & restrictToGrid ) {continue;}
Now replace it with the following 2 lines:
string currentShipName = shipList[i].CustomName;
if (restrictedGrid != shipList[i].CubeGrid & restrictToGrid | currentShipName.Contains("!")) {continue;}
There you go, now it will ignore any ship part which has a ! in its name. if you like, you can change what is inside of the quotes to any string. (examples: "[Ignore This]" or "$$$")
This is an intelligent feature I should impliment perminantly into the code. I may do it later, but I can't just this moment. Until then, I hope this helps! I tested it and it worked for me, but let me know if it causes and problems!
I tend to name the blocks as I place them, it would be nice not to have to try and ID and rename blocks again later, I really just want to quickly add/change the Ship Name/ID and sequential number of the component, especially when copy/paste several identical ships.
I tend to only do a mass-renaming once, when I first create a station/ship. Then I go in an edit names (what connector goes to what, etc). It is an imperfect solution, I agree. A placeholder for what I hope will be a proper fix in the future. Like using the Ship Name automatically when you view control panel elements from another grid as part of the game.
The kind of script you are talking about is possible, but situational. You may be able to edit this code (or someone else might) to make it happen, but I am afraid I'm not up for the task.
Welcome to long hours of grinding, renaming and re-welding, and accessing a terminal a few thousand times.
I wonder if it's possible to simply add the ship suffix and a number on the end, without touching the contents of the existing names? Or maybe just changing the numbers on the end if there is already a number. Seems like that sort of logic should be possible. At worst case, a config option to only attach ship names, or only append numbers would be amazing.
So one way to fix it should just be to remove any Namespaces in front of the IMyCubeGrid which probably looks like Sandbox.ModAPI.Ingame.IMyCubeGrid or you change it explicitely to VRage.Game.ModAPI.Ingame.IMyCubeGrid and it should work again unless there are more errors.
I depend in this mod to save me from hours of mindless renaming of all the blocks in my ships to satisfy my irrational need for complete uniformity!!! Must work wuickly! :P
WOOOW i love this