Page 1 of 1

How can I connect to other process through Lua scripts?

Posted: Fri Aug 21, 2020 4:50 am
by Rinstein
I want to use Java Process to control Unit In CMO. So need to get relative obsevation to Java Process, then my Java Process get unit action and send it to CMO. Every seconds, reapeat this turn. Now I know how to get observation and send action to unit throught Lua Console, what's more, I want to add Event to send observation data to Java Process,then receive action from Java Process. Now there are two way to do this, through sharing file or socket to connect Java and Lua scripts. But COMMAND Lua even not support file io. Is anyone do this befor? Or any relative advice?Welcome communicate with me.

RE: How can I connect to other process through Lua scripts?

Posted: Fri Aug 21, 2020 5:19 am
by Rory Noonan
Command: Professional Edition supports file I/O as well as TCP/IP socket input and output; CMO does not.

RE: How can I connect to other process through Lua scripts?

Posted: Fri Aug 21, 2020 6:15 am
by Rinstein
Okay,do you know how can I get CPE,I did not find where I can download or buy it?

RE: How can I connect to other process through Lua scripts?

Posted: Fri Aug 21, 2020 7:39 am
by KnightHawk75
Think you need to contact directly. pro@matrixgames.com