Space Engineers

Space Engineers

Terminal Block Manager
99 条留言
Lyr4nx 2023 年 11 月 5 日 下午 12:51 
A big thank you for this script!
Handagotes  [作者] 2023 年 10 月 2 日 下午 5:52 
My bad. Now it's fixed.
john72934 2023 年 10 月 1 日 下午 6:08 
Still getting the same error as Rust Droid
(IMyTextPannel not contain "ShowText")
Handagotes  [作者] 2023 年 9 月 25 日 上午 10:12 
Sorry for delay, the Issue should be fixed now.
Rusted Droid 2023 年 9 月 15 日 上午 8:12 
Just heads up for Recent SE change that make script to error with
(IMyTextPannel not contain "ShowText")
Delphin_1 2022 年 10 月 8 日 下午 4:29 
this is awsome!
Rusted Droid 2022 年 9 月 17 日 上午 2:38 
Do this update make handling arguments to programing block more easy?
Zaƒlow 2022 年 9 月 16 日 下午 9:27 
This is a great idea!
Tronix 2022 年 2 月 19 日 上午 6:59 
I love u man!!! :D :D :D Working fine! BIG TY!
Handagotes  [作者] 2022 年 2 月 19 日 上午 3:06 
@Tronix I made fixes for argument handling in the last update. Now you need to enclose argument with ` symbol, like this: FOR Computer_[3D_Map] DO RUN `NEXT_PLANET 3`
Tronix 2022 年 2 月 18 日 上午 2:14 
First: I realy thanks u r so helpfull! ;)

This is the script:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1401180554

With this, can use one sound block for mutliple sound. U must use the sound name as argument.
Handagotes  [作者] 2022 年 2 月 18 日 上午 2:09 
@Tronix I see, argument handling needs several fixes, I will work on it as soon as I can. Please write down script names that you're using arguments for.
Tronix 2022 年 2 月 18 日 上午 1:40 
@Handagotes

This is my script! I tried with 2 PB, as u see. Not worked for me :(

The color switch working, but run effects not...

[TBM SCRIPT]

WHEN ENABLED [A]_Shield_Emitter_-_Orion DO ONCE
FOR Offset_Lights_/_Bridge DO SET color TO 255 255 255
FOR Offset_Lights_/_Bridge DO SET blinkintervalseconds TO 0
FOR Computer_/_Sound DO RUN ShieldsOn
FOR Computer_[3D_Map] DO RUN NEXT_PLANET 3

WHEN DISABLED [A]_Shield_Emitter_-_Orion DO ONCE
FOR Offset_Lights_/_Bridge DO SET color TO 255 0 0
FOR Offset_Lights_/_Bridge DO SET blinkintervalseconds TO 2
FOR Computer_/_Sound DO RUN ShieldsOff
FOR Computer_[3D_Map] DO RUN NEXT_PLANET 3

* Error log:
* No errors found.
Handagotes  [作者] 2022 年 2 月 17 日 上午 11:37 
@Tronix yes, exactly as you wrote.
Tronix 2022 年 2 月 16 日 上午 4:24 
Can i run PB wit hargument, like something this?

FOR Program_Block DO run argument
Bram 2021 年 3 月 17 日 下午 12:13 
Great mod and script! If you do end up feeling like making the TBM2 it would be awesome if there was support for iterations and list comprehensions!
Rusted Droid 2021 年 2 月 14 日 上午 11:27 
Your script is handy that i do not need to have 8 timer blocks that are mostly only for ON/OFF usage.

1. I made battery manager with your script and emergency
logic if power fails turn on Hydrogen Engine. That cannot be done just by Timer blocks.
2. Simple Autoclose doors based on their "state" = Open

Mostly anything that require to "ask vaule from block" this script is great for.

Half-Life 1 Door
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1767882718

Half-Life 1 Tram (PowerUp Chapter)
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1789050065
Handagotes  [作者] 2021 年 2 月 13 日 下午 10:01 
Sorry, but I don't have plans on adding new features, because I'm not very proud of this script. Since I made it I learned much and would rather make TBM2 that will be much faster and will have all these cool features such as string handling and math, but I ran out of enthusiasm for this.
Rusted Droid 2021 年 2 月 13 日 下午 4:13 
Any plan adding feature to rename grids?
Merge block generate new name after un-merge
(merge block better for like cargo storage or ship that can be modded by modules)

I must use this extra script for making grid name as old
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1756783160
Celestite 2021 年 2 月 8 日 下午 12:36 
i will be using easy automation instead
Handagotes  [作者] 2021 年 2 月 8 日 下午 12:31 
The only way I can think of is to create a really long script:
WHEN intensity = 0.1 DO ONCE
WAIT 10
SET intensity TO 0.2
WHEN intensity = 0.2 DO ONCE
WAIT 10
SET intensity TO 0.3
...
But this solution is not reasonable because it creates too much overhead.
Celestite 2021 年 2 月 8 日 下午 12:10 
Is there the possibility to make loop systems say: intensity of light=1+1, wait 10 seconds, intensity of light 2+1, ad infinitum
Handagotes  [作者] 2020 年 10 月 24 日 上午 3:26 
Thanks!
Rusted Droid 2020 年 10 月 24 日 上午 3:20 
Just here to say This is "must have" script for easy automation.
Celestite 2020 年 9 月 27 日 下午 1:20 
Thanks
Handagotes  [作者] 2020 年 9 月 27 日 上午 1:47 
WHEN DISABLED button_panel DO ONCE
<put terminal actions here>
ENABLE button_panel
This script can do the trick. Set the button's action to disable itself.
Celestite 2020 年 9 月 26 日 下午 7:45 
A little questions is there a way for a button press to trigger the script?
Handagotes  [作者] 2020 年 9 月 10 日 下午 6:15 
@Burning82
I haven't tested for it. But it should work if modded block supports api of terminal actions and properties.
Shadow1180 2020 年 9 月 10 日 下午 4:19 
Curious question, does this work with any modded blocks from the workshop? Or purely vanilla?
Celestite 2020 年 7 月 27 日 上午 8:08 
actually i got it to work
Handagotes  [作者] 2020 年 7 月 27 日 上午 8:05 
@Celestite
Hi. This script is functional. Please write here your tbm script and the group name.
Celestite 2020 年 7 月 27 日 上午 7:54 
Is this script still functional?
I cant get it to detect my Arti mass group.
Handagotes  [作者] 2019 年 11 月 19 日 下午 9:03 
@Tronix
Since 1.192 update I can't suppress these warnings, sorry. But these are just warnings. Script should work fine despite of them. Just press 'Ok' in the editor, and if script works, you will see 'Terminal Block Manager >>>' message at the right bottom corner of terminal window.
Tronix 2019 年 11 月 19 日 下午 3:29 
Hello! ;) Here is my problem, i can't compile...
Can u help?

https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1916571718
Handagotes  [作者] 2019 年 11 月 15 日 下午 11:57 
Hi @Tronix
Sure I will fix it if you answer what's wrong.
Tronix 2019 年 11 月 15 日 上午 10:21 
Please fix it! ;)
Handagotes  [作者] 2019 年 8 月 23 日 上午 7:41 
@Rusted Droid Issue has been fixed.
Also please answer me in "Bug reports" discussion.
Rusted Droid 2019 年 8 月 23 日 上午 1:57 
Hello. After Today SE Economic Update, script has error:
(The language element "#pragma warning" is prohibited.)
I guess KSH make some alterations to API again...
Handagotes  [作者] 2019 年 7 月 30 日 上午 4:22 
Additional property 'ShipSpeed' for cockpit/cryochamber/remote control blocks has been added in the recent update. Thanks for the request.
Rusted Droid 2019 年 7 月 29 日 下午 1:18 
Hello again any plan of adding additional property for cockpit/remote "currentspeed". As Vanilla SE do not have wheel steering correction by speed. I was trying to do this by your script so steer angle will be reduced if jeep is going more than 20m/s to 3° (default is 20°). Thank you even for consideration.
Rusted Droid 2019 年 6 月 20 日 上午 7:51 
This is another nice example of utilizing > < = comparison symbols. Thank you!
Handagotes  [作者] 2019 年 6 月 20 日 上午 6:43 
Since tbm does not support maths, you have to precalculate velocities for rotor and piston. For example, if rotor rotates from angle 0 to 360 with velocity 10 rpm, piston will need approximately 1.675 m/s to extend from 0 to 10 meters.
With this script for piston both blocks will stop almost at the same time.
when velocity of rotor > 0 do once
set velocity to 1.675

when velocity of rotor < 0 do once
set velocity to -1.675

when velocity of rotor = 0 do once
set velocity to 0
Rusted Droid 2019 年 6 月 20 日 上午 1:07 
Hi again, any example how program rotor angle (rotation) to piston linear (position) conversion? Example Piston with rotor block on top with platform. If platform spins to pre-set angle rage the piston will follow and will change position based on rotor angle. Like it wil act a screw elevator.
Rusted Droid 2019 年 6 月 11 日 上午 6:04 
Thank you! Now when wheel expodes for none reason durring flight script is able to add the dummy wheel and can land safely.
Handagotes  [作者] 2019 年 6 月 10 日 下午 10:25 
@Rusted Droid
Bug has been fixed in the recent update. Thanks for the report.
Usage: add_top_part
Rusted Droid 2019 年 6 月 10 日 上午 11:01 
Hi, I found that Suspension has action "Add Top Part" with spaces. The script is unable to find that action. AddTopPart, Add_Top_Part, Add&Top&Part or Add+Top+Part did not work. The actions is Listed in this list under mymotorsuspension https://github.com/malware-dev/MDK-SE/wiki/List-Of-Terminal-Properties-and-Actions#imymotorsuspension

And can be requested by Block Properties & Actions API Helper script
Rusted Droid 2019 年 6 月 10 日 上午 5:22 
Your script was part of my builds since i find it. Really easy to use, configurable update rate to not hog server and good to use with other scripts like this one:
(https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1756783160) or automatic lcd 2

Hope the TBM2 will be created.
Handagotes  [作者] 2019 年 6 月 10 日 上午 3:22 
@Rusted Droid
I'm sorry, but TBM does not support string values. I have some ideas about updating the script (or just create TBM2), but I don't know when I will be able to do this.
Rusted Droid 2019 年 6 月 10 日 上午 2:45 
Hi, will be able to rename grid, based on set custom data name or block name reference if merge block is disconnected? Example i have battery pack with merge block that is attached to hauler as cargo. Battery pack and hauler has own ProgB with different script hearder (BP-Script / Hauler-script) Your script is able to check "isconnected" from merge block. but i do not know how to tell script to rename grid default generated name after dissconected.

One thing got in mind like this.
WHEN isconnected OF BPMerge = False DO ONCE
SET thisgridname TO BatteryPack555
Rusted Droid 2018 年 11 月 18 日 下午 12:09 
@Handagotes Thank you. I find Your script really helpfull even for complex logic.