Space Engineers

Space Engineers

Easy Play
33 Comments
GAD 9 Sep, 2024 @ 1:36am 
спасибо все получилось
GAD 9 Sep, 2024 @ 12:52am 
записал в "свои данные" в пб следующее
@info {
Write to LС = "Угол = {Angle of hin}"
}
не сработало:steamsad:
Survival Ready  [author] 9 Sep, 2024 @ 12:23am 
Сам сцераий выглядит так

@info {
Write to Имя_LCD = "Угол = {Angle of Имя_Шарнира_или _ротора}"
}

Информация автоматически не обновляется. Если нужно такое обновление, то установите таймер и на его цифровую панель поместите выполнение ПБ EasyPlay с параметром info
GAD 9 Sep, 2024 @ 12:09am 
Помогите знающие люди, как вывести информацию о угле шарнира или ротора на экран LCD ? И будет ли информация обновляться в реальном времени или придется заходить каждый раз в панель управления для обновления информации ?
kinngrimm 5 May, 2024 @ 7:59am 
thank you i will have a look at this
Survival Ready  [author] 5 May, 2024 @ 6:59am 
The scripts are approximately the same size. In the workshop, the publication size is indicated along with the thumbnail size. I have added a description of the differences for you https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2670971581 in the Introduction section
kinngrimm 5 May, 2024 @ 6:05am 
Why would i use this script and not the original? Could you add a section which describes what is different about this one besides not having an english guide or being 151.000 kb smaller?
serjevski 27 Jan, 2024 @ 1:44am 
Спасибо. Буду смотреть.
Survival Ready  [author] 26 Jan, 2024 @ 1:32pm 
Посмотрите раздел руководства "Автоматизация по таймеру". Суть - в CustomData содержится только процедура мониторинга и вывода информации на экран (если надо), а автоматический запуск и перезапуск скрипта осуществляется таймером, который не требует ручного запуска.
serjevski 26 Jan, 2024 @ 11:10am 
Извиняюсь за глупый, вероятно, вопрос. Содержимое CustomData запускается при вызове Программного блока? Суть вопроса, как создать скрипт который будет постоянно мониторить состояние чего-то? Ну, заряда батарей например? Понятно что можно сделать цикл с задержкой как написано в доке, но для этого нужно раз запустить его ручками?
Dead_Pixels 19 Jan, 2024 @ 11:37am 
Figured as much, thanks for confirming.
Survival Ready  [author] 13 Jan, 2024 @ 4:19am 
No, you cannot recompile a program block from a script, you can only turn it on or off.
Dead_Pixels 13 Jan, 2024 @ 4:12am 
Thanks for the reply. That's a shame, I'll have to use a workaround then. Another question, is there a way to recompile a programmable block with a command by any chance?
Survival Ready  [author] 7 Jan, 2024 @ 6:00am 
I apologize for the long response. There were problems accessing the game. To run scripts from another program block, you need to call it with its full exact name. In your case it will be like this:

Run TrXX01 PB Easy Play Trailer(LiftAxle, 1)
Dead_Pixels 8 Dec, 2023 @ 11:27am 
Something I forgot to mention that may be useful: All buttons on hotbar 9 run an action in "TrXX01 PB Easy Play Trailer" that runs an (at)block in "LDRT01 PB Trailer", but without passing an extra argument, and they all work flawlessly.
Dead_Pixels 8 Dec, 2023 @ 4:45am 
The truck and trailer are connected with a rotor.

Just published a work in progress so you can look at it here
I've added the action on hotbar 9, button 8, this runs the action (at)TrailerLiftAxle in "TrXX01 PB Easy Play Trailer" which should run (at)LiftAxle in "LDRT01 PB Trailer" and pass the argument "1".

I also tried "Run LDRT01 PB Trailer(LiftAxle, 1)", using the exact PB name, but this returns the same error as below.

Using debug I get:
TrXX01 PB Easy Play Trailer:
Recompile[1246] 23.0 ms
(at)TrailerLiftAxle : Run (1)

LDRT01 PB Traile
Recompile[28671] 11.0 ms
E405 > Compile
The code (at)block "LiftAxle, 1" not found
Survival Ready  [author] 7 Dec, 2023 @ 3:56pm 
The first command syntax is correct. How is the trailer connected to the truck? Judging by the diagnostics, the script cannot find a program block named "PB Trailer" on the grid. The trailer must be connected via a connector, hinge, or rotor in order for its programming block to be accessible. Try turning on debug mode for the calling block of EasyPlay to see in detail the process of command execution.

P.S. if your craft is published in the workshop, you can provide a link to it so that I can look at it in detail.
Dead_Pixels 7 Dec, 2023 @ 9:54am 
I have a question about the Run command. I'm trying to use one Easy Play PB (on a truck) to run a command on another Easy Play PB (on a trailer) and this works wonderfully if I run a simple block, but I want to pass an argument to the second Easy Play PB block.

I want to lift/lower 1 of 8 axles on the trailer and specify which axle as an argument (to avoid having a separate block for each axle). I also want it to work with any of a range of trailers I connect to the truck, that's why I'm not just adding the trailer's Easy Play PB to the truck's hotbar.


Like in the guide, I tried:
Run PB Trailer(LiftAxle, 1)
this returns "E405 > Compile
The code block "LiftAxle, 1" not found"

I've tried as I would enter an argument on the hotbar:
Run PB Trailer(LiftAxle(1))
this returns "E410 > Compile
Arguments must be in (round brackets)"

and also:
Run PB Trailer = LiftAxle(1)
this returns "script too complex"

Am I doing this wrong? Or is passing an argument beside the block name not possible?
DasKrusty 13 Oct, 2023 @ 12:55pm 
Got an interesting issue, I'm using Easy Play for automation and Automatic LCD's2,
Fancy Status Displays v2 for visual and SDS Operational Script for menu. Recently I am finding in my Easy Play Programmable Block, in the Custom Data where the code is, somehow something is placing "---" as first part of code. I can delete it then my Easy Play codes work, but if I exit and go back in, it's back!
Survival Ready  [author] 23 Jul, 2023 @ 12:19am 
Thank you for your comment. All I can suggest for now is to use parentheses last, as in the second example. This error is related to the interpreter's attempt to evaluate the expression in one pass.
Dead_Pixels 22 Jul, 2023 @ 7:57pm 
Something is off with the math statement.
When i calculate:
RotorV = math(1 + ((2/3)*4))
The script returns 6.6667

However, when i calculate:
RotorV = math(1 + (4*(2/3)))
The script returns 3.6667 as it should.

Somehow the brackets are ignored in the first example.
coolfarmer 16 Jun, 2023 @ 12:59pm 
Hey, is it possible to have the BBCode of your guide? I would love to translate it into English :)
Survival Ready  [author] 30 Nov, 2022 @ 10:42am 
Yes. Use the nested IF or COND operator. See the examples in the manual - https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2670971581
D3RV 30 Nov, 2022 @ 5:22am 
Is it possible to start turn a block on if two variables are met for example turn on composter if muchrooms > 400 and organic < 1
bigi666 8 Sep, 2022 @ 6:28am 
I know this script, however (for me) it is more complicated. I was considering Easy Command but I didn't check if it supports vectors / math, although it probably has trigonometry built in. Thanks for the hint about the script :)
Survival Ready  [author] 8 Sep, 2022 @ 4:17am 
This is no Easy Play :) This script allows you to automate basic operations and a little more. This script is more suitable for you https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1606159425
bigi666 7 Sep, 2022 @ 11:54pm 
can you add math operations function on gps coordinates? or breaking the gps triad into X Y Z or into vectors? in the current version of the script it is impossible to perform mathematical operations on gps and I would like to calculate locations based on other locations, unless the script allows it and I am stupid :D
Survival Ready  [author] 10 Jan, 2022 @ 2:33am 
Come again :) Now I am trying to solve the problem of controlling the ship by closing the script to a timer. This will require some tweaking. There will be another demo ship where it will be described.
Geronimo 9 Jan, 2022 @ 4:43pm 
I almost skipped this, glad I didn't
Survival Ready  [author] 25 Dec, 2021 @ 1:44pm 
If you want to change the output language, then in the script code you need to set the variable string language = "en"
Lord Megatron 25 Dec, 2021 @ 11:44am 
how do I get it to switch from displaying russian text to english?
Survival Ready  [author] 21 Dec, 2021 @ 11:54pm 
Thanks, I hope the community will help me improve it.
Palpatine 21 Dec, 2021 @ 11:37pm 
This is a well made project, thank you for your addition to the community.