Space Engineers

Space Engineers

[TMC] Tree Menu Command NET
101 条留言
Empada 5 月 6 日 上午 8:32 
Mac and Cheese, for that you want Automatic LCDs
cheerkin  [作者] 1 月 2 日 下午 2:17 
That sounds like completely out of scope of this script - it just does not make sense here. I mean you don't need a tree structure for that, its better to lay these stats out on a screens and there are scripts that do that already.
Mac and Cheese 1 月 2 日 上午 6:28 
is it possible to have live updating text? like having a % for fuel tanks or such
Ronchi 2024 年 6 月 26 日 上午 12:02 
cool as, ty cheerkin, I'll have to start learning that script
cheerkin  [作者] 2024 年 6 月 25 日 上午 2:29 
Clear/Add waypoints is done through remcon interface rather than actions, so it would need special treatment. Imo it's not worth it, as remote control waypoints is a legacy thing. Just use AutoPillock script instead :)
Ronchi 2024 年 6 月 24 日 下午 10:20 
Hi Cheerkin, is there a way to get the script to clear current waypoints and add a new one to remote controls ? I've messed around and cannot get it to do it. If not can I make a feature request ?
Ronchi 2024 年 6 月 24 日 上午 10:42 
TY Cheerkin
Jack Schitt 2024 年 6 月 23 日 上午 8:03 
Great, thanks!
cheerkin  [作者] 2024 年 6 月 23 日 上午 4:53 
Figured it out, it was on my side. PB flipped text is fixed in 1.0.213, now PB screen can be used properly.
cheerkin  [作者] 2024 年 6 月 22 日 下午 6:42 
It is a known issue, see bug reports discussion
Jack Schitt 2024 年 6 月 22 日 上午 7:48 
oops?
"Local" at the bottom of a small grid PB is upside down: screenshot
cheerkin  [作者] 2024 年 6 月 20 日 下午 1:49 
1.0.212

Click feedback (sound block) - add SB to the group and it would play sound upon successful command (true if at least one action from batch was good);

Up/down actions round robin (down at last element selects first and vice versa);

SetCustomData for all blocks and SetPublicText for text panels. Example:
first:xLCD Panel:CustomData:$sadasda[12312]\nSecond Line
first:xLCD Panel:PublicText:$\ndsfds[12312]

$ prefix, similar to property setters, means append to existing text
\n means new line
cheerkin  [作者] 2024 年 6 月 18 日 下午 3:12 
Nah, I'm good, thanks! Much appreciate your kind words!
Ronchi 2024 年 6 月 18 日 下午 2:54 
Best In game script to toolbar clean up in the history of Space Engineers ....... In my opinion. Amazing work you do cheerkin, love it all, how can I buy you a coffee or beer ?
cheerkin  [作者] 2023 年 12 月 21 日 上午 2:48 
Good suggestion, I'll think about adding such feature.

Guys, please put your suggestions in the discussion so they could be noticed better.
Stollie 2023 年 12 月 19 日 上午 8:01 
Hi, sometimes I cant tell if a command has actually been 'pushed' is there a way to provide more feedback when you select an item? Like a flash or a sound etc.?
cheerkin  [作者] 2023 年 12 月 3 日 下午 3:14 
Maybe, noted.
Badwolff101 2023 年 12 月 2 日 上午 8:02 
Any chance you could get this to work with the new inset button panel?
cheerkin  [作者] 2023 年 4 月 17 日 下午 6:26 
All at once - no. You can do it one by one, using context switching feature. That's if you mean vanilla automaton drones.
𝐣𝐚𝐝𝐞⁽²¹⁰¹⁾ 2023 年 4 月 17 日 下午 5:52 
Is there a way i could use this script on a capital ship to command all drones to return to the ship?
Tuchevery 2023 年 2 月 20 日 上午 11:31 
I love this script. I put a control seat on a rotor and now I can control everything on my base from one seat.
cheerkin  [作者] 2023 年 1 月 15 日 下午 1:10 
Yep, there are two ways of running PB with arg. You're welcome!
royalrollin 2023 年 1 月 14 日 上午 7:36 
Hello cheerkin,
It works also: (like you scripts)
"
PowerControl
menu=1
menu=2
"
and gives DisplayOutput to TMC. Zhis works with PowerControl and H2O2Control(v0.6) by Alfromeo80. Just for info...

I´m very happy with it! Thanks you!:steamthumbsup:
cheerkin  [作者] 2023 年 1 月 13 日 上午 6:08 
Year, but separate parts in a proper way
DisplayName=Select;first:PB PowerControl:Run:{argument}
royalrollin 2023 年 1 月 12 日 下午 2:26 
Can I run an argument for a external programmable block?
Like:
DisplayName=Select;first:PB PowerControl:Run Select+
cheerkin  [作者] 2022 年 12 月 12 日 上午 10:52 
Before answering your question I tested it and used menu without engaging CC mode, and I did not have cursor. If you had, then it is a bug, and you can give more details in Bug Reports discussion, just not here.
Qwuille 2022 年 12 月 12 日 上午 10:36 
For some reason i had the cursor even if i didn't use CC at all :(
cheerkin  [作者] 2022 年 12 月 12 日 上午 6:41 
This allows memorizing command number sequences for quick execution, similar to buy menu in Counter-Strike or command menu in Arma series.
cheerkin  [作者] 2022 年 12 月 12 日 上午 6:40 
1.0.85 is out.
It got some AutoPillock integration and completely new UX feature: Quick Action Numbers!

To use QANs, add commands "1", "2", "3", "4" ... "9" to a toolbar. Then if you run those commands, the script would execute the command that has corresponding number.

To disable drawing menu item numbers, if you don't like the look, change DrawQuickActionNumbers to false at the top of the code.
cheerkin  [作者] 2022 年 12 月 12 日 上午 6:30 
>Is it possible to deactivate the cursor completely?
Not activate it? Just don't run 'cc' and it would be completely deactivated. If you want only up/down/up/esc activation, then use them without running 'cc'.

>Also, the "..." selection is not choosable with up/down ;( "esc" works tho.
"..." is the fake item, like (x) button, intended only for mouse activation. Why iterate over it with up/down when you can escape quicker with esc command?
Qwuille 2022 年 12 月 12 日 上午 5:59 
Also, the "..." selection is not choosable with up/down ;( "esc" works tho.
Qwuille 2022 年 12 月 12 日 上午 5:58 
Is it possible to deactivate the cursor completely?
When i am using the toolbar commands and i get into a menu with alot of choices, the row that the cursor idles on becomes highlighted and then i can only "scroll" up and down once from the highlighted selection.

If i do "cc" and remove the cursor, the menu functions as intended again.
cheerkin  [作者] 2022 年 11 月 28 日 上午 8:15 
"DysplayName=Front lift:" should be "DisplayName=Front lift;" (two misspells)
Pilotsilent 2022 年 11 月 27 日 下午 1:42 
Im trying to get the command to open my gate and lower the lift. in sperate command lines but i cant get it to work what so ever, i got the timer block to work but not the custom data commands. what am i doing wrong here

so far i have Main base > Rover controls> DysplayName=Front lift: [group:front lift:Reverse] but nothing is happening. what do i need to do
Spite 2022 年 11 月 16 日 上午 4:15 
Thanks, will respond in Bug reports
cheerkin  [作者] 2022 年 11 月 16 日 上午 12:20 
So, if I got it right, you made two PBs with the same menus, and if you run one on the second ship directly, it works, but if you use the first one to change context and run second remotely, it does not work?
Please continue this discussion in Bug Reports.
Spite 2022 年 11 月 15 日 上午 7:28 
PS, the other scripts I was testing it with was Djarin's Path Manager, and I can upload a blueprint of the test rig if that would be helpful?
Spite 2022 年 11 月 15 日 上午 7:24 
Hi Cheerkin,

I'd like to start using this script in basically all my ships, but I have an issue getting TMC to send commands to other scripts.

Right now the TMC PB's Custom Data looks like this:

Path
command;up
command:down
Turn PB Path On/Off
first:PB Path:OnOff

With this I have a screen with two menus:
One called "Turn PB on/Off" from which I can successfully turn the block on and off (so I know the TMC script is working, and able to do things to the other PB).

The other is Called "Path" as I am trying to send commands to a programmable block called "PB Path", and this is where I am stuck, as I can't get it to send arguments to the other PB with a script in it (or at least none that the other script will accept, although it is otherwise running and responsive).

Have I just done something silly with the syntax? or does TMC require the other script to be compatible and I misunderstood the description?
cheerkin  [作者] 2022 年 9 月 21 日 上午 10:28 
Who said it should? It is undocumented feature that is not finished. If you wan't it really bad, you can alter the current code to make it work:

find:
cursorPosition = surfOffset.Position + new Vector2(UserCtrlListener.Cumulative.Y, UserCtrlListener.Cumulative.X) + surfOffset.Size / 2;

replace with:
if (sensePlayer)
cursorPosition = projectedCursorPosition;
else
cursorPosition = surfOffset.Position + new Vector2(UserCtrlListener.Cumulative.Y, UserCtrlListener.Cumulative.X) + surfOffset.Size / 2;
Sniperleo 2022 年 9 月 21 日 上午 5:25 
TMC sensor not work.
cheerkin  [作者] 2022 年 8 月 7 日 上午 5:38 
MedvePapus 2022 年 8 月 7 日 上午 5:34 
D you have a video on triggering remote things? Like the GIF you added, flying in a ship, using a button and opening the station's door.
cheerkin  [作者] 2022 年 8 月 6 日 下午 10:10 
@jirikslavicek, custom data can be edited by pressing Custom Data button which is found on most terminal blocks, including PB.

@Higsby, yes you can.
Mr. Higsby 2022 年 8 月 1 日 下午 12:44 
Can this only run on a cockpit lcd or can I put this on an lcd in my elevator to select a floor?
jirikslavicek 2022 年 7 月 31 日 下午 7:35 
where can i find the custom data for the PB? ;-;
cheerkin  [作者] 2022 年 7 月 17 日 下午 2:52 
In the example the topmost menu node is named "min3r", and the code would try to run programmable block that has "min3r" part in its' name. I.e. "SCAM-or-whatever-min3r" PB, "min3r automining system" or just "min3r" - all those PB names would match.
You Degens 2022 年 7 月 15 日 下午 7:39 
I'm not quite understanding something in the documentation. In the sample custom data definition, what exactly is pointing to "SCAM-or-whatever-min3r" as opposed to any other PB? Does the custom data sample point to any PB with it?
cheerkin  [作者] 2022 年 7 月 11 日 上午 12:57 
From this page:

"...or set cockpit internal screen index for the main GUI output (not needed for remote-controlled instances). Cockpit screen index is MenuScreenIndex field found at the top of the code."

Set MenuScreenIndex to something from 0 to [number of cockpit screens - 1]. I.e. for standard cockpit, 0, 1, 2 or 3.
MedvePapus 2022 年 7 月 10 日 上午 7:31 
Could you give us some gif tutorials on how can we use a specific screen in the cockpit please? For some reason it just shows "local" for me in the program blocks screens and thats it.
jglenn1562 2022 年 6 月 22 日 上午 10:56 
@Imperial,
This still functions in an online environment with some limitations. The mouse cursor function is rendered almost useless (cheerkin, correct me if I'm wrong) due to Keen limiting how fast scripts can update in multiplayer unfortunately. The cursor will be very laggy. However, thankfully you can still utilize the keyboard inputs to make your selections in the interface.