EasyAPI icon indicating copy to clipboard operation
EasyAPI copied to clipboard

Move to using TerminalRunArgument for inter-PB messaging

Open EnochMiningCorporation opened this issue 10 years ago • 2 comments

Update 1.082 has introduced a new field for Programmable Block: https://github.com/KeenSoftwareHouse/SpaceEngineers/search?utf8=%E2%9C%93&q=TerminalRunArgument

This would be the ideal mechanism for exchanging messages between programmable blocks, rather than changing the name of a programmable block as is currently done.

I haven't used the EasyAPI messaging feature so no pull-request from me at this stage. Just flagging this as a neat thing TODO.

EnochMiningCorporation avatar May 15 '15 02:05 EnochMiningCorporation

That's awesome! Thanks for sharing that!

rockyjvec avatar May 15 '15 21:05 rockyjvec

Wow, it's far better than that! They actually fully implemented arguments to programmable blocks! So you can drag a "Run" action to a button panel and it will prompt for what the argument you want it to receive when that button is pressed. The argument gets passed into the programming block via the Main() function.

rockyjvec avatar May 16 '15 01:05 rockyjvec