Command lua documents

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

Re: Command lua documents

Post by michaelm75au »

Fixed the ReferencePoint link.
Web link file names are case sensitive; another case of using the incorrect case for the HTML file name. :oops:
Works fine when I tested on PC before committing to GitHub; the PC does care about case names.
Michael
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

Re: Command lua documents

Post by michaelm75au »

KnightHawk75 wrote: Tue Feb 14, 2023 9:25 pm Any chance we could get UI_SelectUnitPrompt_FromSides() and _OwnSide, and Tool_UIwindow docs?
I will look these up and create some document files for them. The two UI_Select... commands, I can't recall seeing in my docs list so it may have been added when I wasn't looking. :D
Michael
GJV
Posts: 2
Joined: Sun Dec 04, 2022 12:34 pm

Re: Command lua documents

Post by GJV »

Good afternoon,
Small and not important but is in the mission wrapper the subtype missing in the list?
https://commandlua.github.io/assets/Wra ... er_Mission
best regards GJ
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

Re: Command lua documents

Post by michaelm75au »

Subtype is only applicable to certain missions and that is shown under those missions.
http://commandlua.github.io/assets/Tabl ... ikeMission
Michael
Parel803
Posts: 932
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Re: Command lua documents

Post by Parel803 »

Sorry for time wasted, understood.
best regards GJ
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

Re: Command lua documents

Post by michaelm75au »

That's okay. No matter how many times I review the Docs, I still manage to miss something. :D
Michael
Parel803
Posts: 932
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Re: Command lua documents

Post by Parel803 »

My lua knowledge is limited but like the ever evolving lua pages.
Thanks for all the hard work.
regards GJ
Parel803
Posts: 932
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Re: Command lua documents

Post by Parel803 »

Good evening,

I'm sorry but I do not understand this one:
https://commandlua.github.io/assets/Fun ... oSide.html
The example looks different that the top line.
Does the side has a setting for a colour alert?

And very small at my side (is this country dependend):
https://commandlua.github.io/assets/Fun ... tness.html
The examples has different " " and giving: ERROR: [string "Console"]:1: unexpected symbol near '<\226>'

best regards GJ
Parel803
Posts: 932
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Re: Command lua documents

Post by Parel803 »

Good evening,

Realizing I probably missed it but are the condition/condition_v listed somewhere?
https://commandlua.github.io/assets/Wra ... apper_Unit
If not would it be possible or isn't it of much value?

regards GJ
Parel803
Posts: 932
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Re: Command lua documents

Post by Parel803 »

Good evening,

A question on: https://commandlua.github.io/assets/Fun ... Point.html

In the 2nd example it states: clear=true
Just wondering the function for this.

regards GJ
Parel803
Posts: 932
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Re: Command lua documents

Post by Parel803 »

Good afternoon,

I'm not sure but in the loadout wrapper for weather and Time of Day there might be a diffenrence between the site and the game.
For me it looks like the return for these two when: AllWeather and DayAndNight are 0 instead of 2001.
https://commandlua.github.io/assets/Dat ... tTimeOfDay
https://commandlua.github.io/assets/Dat ... outWeather

Please disregard but question:

local l = ScenEdit_GetLoadout ({name='testLOweather', guid='KO61QJ-0HN9Q2IEBCB5B'})
print (l.roles)
gives: { TOD = 0, role = 2007, weather = 0 }
DB gives: Day Only, Limited All Weather.

How do I get the correct numbers?

regards GJ
Last edited by Parel803 on Tue Jan 21, 2025 3:09 pm, edited 2 times in total.
Parel803
Posts: 932
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Re: Command lua documents

Post by Parel803 »

Good afternoon,

For this: https://commandlua.github.io/assets/Fun ... eryDB.html
It might be missing a link to the wrapper and info it can come up with?
Guess to this: https://commandlua.github.io/assets/Wra ... per_Weapon

Question is the https://commandlua.github.io/assets/Dat ... WeaponType here the subtype in the QueryDB?

Sorry if this is not usefull,
regards GJ
Post Reply

Return to “Lua Legion”