Latest CMO Lua documentation. (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion



Message


tjhkkr -> Latest CMO Lua documentation. (1/8/2020 1:36:29 AM)

Hey there:
Where can I find the latest LUA CMO documentation?
Thank you.




michaelm75au -> RE: Latest CMO Lua documentation. (1/8/2020 5:12:18 AM)

Still under http://commandlua.github.io/index.htm

I intend to review and update when I get the chance as some errors have been reported with the commands.




tiag -> RE: Latest CMO Lua documentation. (1/9/2020 7:59:37 PM)

Can you maybe give a look what is going on with the QueryDB function?!

It is not working at all.




erwinuri -> RE: Latest CMO Lua documentation. (1/10/2020 9:06:33 AM)

quote:

ORIGINAL: michaelm75au

Still under http://commandlua.github.io/index.htm

I intend to review and update when I get the chance as some errors have been reported with the commands.


Page Not Found Error 404...Am I the only one seeing this when pressing the link?




stilesw -> RE: Latest CMO Lua documentation. (1/10/2020 1:10:58 PM)

This link works for me:

http://commandlua.github.io/

-WS




michaelm75au -> RE: Latest CMO Lua documentation. (1/10/2020 10:17:27 PM)


quote:

ORIGINAL: erwinuri

quote:

ORIGINAL: michaelm75au

Still under http://commandlua.github.io/index.htm

I intend to review and update when I get the chance as some errors have been reported with the commands.


Page Not Found Error 404...Am I the only one seeing this when pressing the link?

Looks like I cut-off the URL - missing a 'l' on the file name
http://commandlua.github.io/index.html




kevinkins -> RE: Latest CMO Lua documentation. (1/17/2020 3:05:51 PM)

I recently read about something over at warfare sims in lua for CMO I would like to experiment with:

"Additionally, this ability can allow simulating “dormant” states for units (e.g. units begin a scenario in a “comatose” state, but later because of XYZ they become activated)."

Is this is the latest documentation? I have looked at all the functions and maybe I missed the key ones. Thanks.

Kevin





michaelm75au -> RE: Latest CMO Lua documentation. (1/17/2020 8:25:46 PM)

I'm not sure what that refers to. A 'unit' is always 'active' or 'destroyed' in the scenario.
Maybe they are referring to something like adding a unit (ScenEdit_addUnit) when certain conditions are met, or putting them on a dummy side before switching to active side (ScenEdit_SetUnitSide)???




kevinkins -> RE: Latest CMO Lua documentation. (1/18/2020 2:18:54 PM)

If you don't know Michael, we are all at a loss. The full section is below and mentions new "hooks". Maybe this was never implemented. It sounds interesting and worthy of some trials if or when available.

"Lua loco

The Lua API continues its expansion in CMO and offers additional hooks into the simulation engine as well as various methods for pulling the strings of the running scenario. One of the new hooks ties directly into the AI model: You can individually instruct units to, quite literally, not think for themselves (You in the back, quipping “you mean they do this now?” – SIT DOWN!). More specifically, you can set individual units to skip their AI routines for evaluating valid targets and picking out the primary one among them. This has two direct benefits:

It makes it easier to implement custom targeting AI routines in Lua, since an author not longer has to “compete” with the build-in AI for this.
As these routines are among the most CPU-expensive pieces of the simulation pipeline, disabling them can have a drastic effect on the speed & scalability of a large scenario. For example, if you disable the AI cycles of all static/inactive buildings, then only “active” units will use the CPU for this work (internally Command already does a lot of such optimizations, but since it cannot “intrinsically” know which units are static & inactive, it has to check them, which itself is not free). Additionally, this ability can allow simulating “dormant” states for units (e.g. units begin a scenario in a “comatose” state, but later because of XYZ they become activated)."




KnightHawk75 -> RE: Latest CMO Lua documentation. (1/21/2020 3:28:18 PM)

@kevinkins

Is this what you're looking for? (post5) I asked awhile back and got the answer.
https://www.matrixgames.com/forums/tm.asp?m=4720573#




kevinkins -> RE: Latest CMO Lua documentation. (1/21/2020 4:00:08 PM)

Thanks alot. That looks like it is what I need to get started.

Kevin




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.578125