How can I connect to other process through Lua scripts?

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

Post Reply
Rinstein
Posts: 4
Joined: Fri Aug 21, 2020 4:35 am

How can I connect to other process through Lua scripts?

Post 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.
Rory Noonan
Posts: 2419
Joined: Thu Dec 18, 2014 1:53 am
Location: Brooklyn, NY

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

Post by Rory Noonan »

Command: Professional Edition supports file I/O as well as TCP/IP socket input and output; CMO does not.
Image
Rinstein
Posts: 4
Joined: Fri Aug 21, 2020 4:35 am

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

Post by Rinstein »

Okay,do you know how can I get CPE,I did not find where I can download or buy it?
KnightHawk75
Posts: 1557
Joined: Thu Nov 15, 2018 7:24 pm

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

Post by KnightHawk75 »

Think you need to contact directly. pro@matrixgames.com
Post Reply

Return to “Lua Legion”