Space Engineers

Space Engineers

(Servono più voti)
Nanite Control Factory - Status on LCD v.1.1a (ENG, RUS)
   
Premio
Aggiungi ai preferiti
Preferito
Rimuovi dai preferiti
Dimensioni del file
Pubblicato in data
Aggiornato in data
4.368 KB
8 mag 2016, ore 3:08
14 ago 2019, ore 11:25
3 note di rilascio ( visualizza )

Sottoscrivi per scaricare
Nanite Control Factory - Status on LCD v.1.1a (ENG, RUS)

Descrizione
A little script for your Progrmmable Block + Timer, to Display Status of Nanite Control Factory on LCD ( http://steamproxy.net/sharedfiles/filedetails/?id=655922051 )

---------------------------------------------------------------------------
To make this script work, yor have to name you
1) Nanite Control Factory block as "Nanite Control Factory X"
2) LCD Panel block as "LCD-NanitePanel_X"
3) Place "X" as ARGUMENT for Programmable block with this script loaded.
You can replace "X" with any symbol (but it has to be only ONE character o number)

To dynamically update this status, bind your Programmable Block to the Timer (Similar to Configurable Automatic LCDs by MMaster: http://steamproxy.net/sharedfiles/filedetails/?id=403921671 )

---------------------------------------------------------------------------
You could also check killer124n's fork to my script:
http://steamproxy.net/sharedfiles/filedetails/?id=888332292
If you have any complains, ask the author of the fork.
---------------------------------------------------------------------------

Чтобы скрипт заработал:
1) Установите блоки "Программируемый бок", "ЖК паель", "Nanite Control Factory" на вашу платформу или корабль.
2) Переименуюйте (поле "Name") "ЖК паель" в "LCD-NanitePanel_X" и "Nanite Control Factory" в "Nanite Control Factory X", где "Х" может быть любым латинским символом, или цифрой.
3) Теперь в поле "Argument" у "программируемого блока", где у вас загружен этот скрипт, впишите ваш символ (в моём случе "X")
4) Теперь можно протестить работу скрипта: нажмите на кнопку "Run". На дисплее должна появится информация от Нанитовой фабрики.

Если на 4м этапе у вас на дисплее появилась нужная информация, можно зациклить считывание информации с помощью таймера:
1) Установите блок "Таймер", и измените его значение "Delay", на частоту с которой вы хотит считывать статус фабрики. (Если каждый игровой тик, то ставьте на 1сек)
2) Теперь открйте панель действий таймера (кнопка "Setup Actions"), и задайте два действия:
2a) Действе "Run" для "Программируемого блока", с "Параметорм" равным вашу символу в имени Нанитовой фабрики и дисплея (у меня "Х")
2b) Действие "Start" для блока "Таймер" (того самого который вы сейчас настраиваете)
3) Запустите таймер, щелчком на кнопку "Trigger Now".
44 commenti
Amaia 30 mar 2022, ore 23:55 
This script is not working.
maverick 12 apr 2020, ore 16:26 
ok let me know and is it posible to do this without an timerblock
scad.luncher  [autore] 12 apr 2020, ore 14:45 
@maverick, sorry didnt't updated this mod recently, while keen swh doing something with their block api. unfortunately i stacked really long away from my only one gaming pc, so i can't promise, i'll have posibillity to fix it soon
@McNasty, timers are not really reloble no, ag\\fter runtime.update method introduced, as far as i know
maverick 12 apr 2020, ore 6:50 
i am getting errors in the code editor program(18,12): Warning 'IMytextpanel.WritePublicText(String,boot)'is obselete: LCD public text is deprecated and this is the sam with 19,12-24,62-27,62-30,62-34,62 and so on long list
Captn_Firebeard 8 apr 2020, ore 8:11 
#scad.luncher, I did end up getting it to work. And currently there Nanite Facility itself is messed up, but the modders said they are working on a fix for it. I have also been trying to add a refresh in the code to in an attempt to do away with having an extra Timer Block, I suck at code so I doubt I will get it to work.
scad.luncher  [autore] 7 apr 2020, ore 1:52 
@McNasty, last time i teststed, it worked on this updated version. let me know, if it's not now...
Captn_Firebeard 5 apr 2020, ore 17:41 
Is there an updated one for the Nanite Facility?
https://steamproxy.net/workshop/filedetails/?id=219757726
scad.luncher  [autore] 9 nov 2019, ore 1:39 
NoT_Exist, метод WritePublicText уже используется в моем скрипте, после пары последних обновлений, а вот как скриптом выставить "содержание" на "текст и изображение", я так и не нашел. Если знаете когото кто может подсказать нужный метод или свойство, IMyTextPanel, спросите пожалуйста, и расскжите мне. Я добавлю как только смогу.
NoT_Exist 8 nov 2019, ore 23:50 
Из за того что дисплеи теперь всегда показывают общий текст то в скрипте нужно заменить в скрипте "WritePublicText" на "WriteText" и в настройках дисплея выставить "содержание" на "текст и изображение" тогда всё будет работать. Автор обнови пожалуйста код что бы не нужно было каждый раз вручную это менять

ENG:
Replace "WritePublicText" on "WriteText" in script and change display setting on "show text and picture" and it must be work
Dots 22 ago 2019, ore 13:08 
@scad.luncher - i added you so i can send you ingame screenshots of the error's i speak of. Maybe its a language barrier