Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Lua console.... editor only?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Lua console.... editor only? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Lua console.... editor only? - 7/7/2020 3:47:45 PM   
parmenio

 

Posts: 266
Joined: 8/6/2009
From: United Kingdom
Status: offline
A quick question from the uninitiated... but I'm guessing the Lua console will only display when editing a scenario and not while playing one?

Someone posted a script for creating a circular prosecution area using a smaller no of points (well it actually creates a circle of reference points around a unit) but the thread was about creating a circle of reference points.

https://www.matrixgames.com/forums/tm.asp?m=4845373

I'm not sure how that functionality would/could be made available to the player?
Post #: 1
RE: Lua console.... editor only? - 7/7/2020 4:19:17 PM   
kevinkins


Posts: 2257
Joined: 3/8/2006
Status: offline
The lua console is just available when using CMO is editor mode. But many people play in that mode. You don't lose fog of war unless you take a peek at the enemy side and their missions. So there is a work around if the player wants to do some coding while playing from one side. I get a sense that many who use CMO Pro do coding while "playing".

_____________________________

“The study of history lies at the foundation of all sound military conclusions and practice.”
― Alfred Thayer Mahan


(in reply to parmenio)
Post #: 2
RE: Lua console.... editor only? - 7/7/2020 5:05:52 PM   
stilesw


Posts: 1497
Joined: 6/26/2014
From: Hansville, WA, USA
Status: offline
quote:

but I'm guessing the Lua console will only display when editing a scenario and not while playing one?

Andy,

You are correct. The Lua example would be used in editor mode using the Lua console. If you are playing strictly in "player" mode there is no way to implement it.

Typically, a scenario designer would use it when creating a new scenario however, you can always switch to (or play in editor mode) to create the zone.

-WS

_____________________________

“There is no limit to what a man can do so long as he does not care a straw who gets the credit for it.”

Charles Edward Montague, English novelist and essayist
~Disenchantment, ch. 15 (1922)

(in reply to parmenio)
Post #: 3
RE: Lua console.... editor only? - 7/7/2020 7:01:44 PM   
jkgarner

 

Posts: 174
Joined: 4/30/2020
Status: offline
quote:

If you are playing strictly in "player" mode there is no way to implement it.


That is not entirely accurate.

One could write the code in edit mode, test it, and then create a special action to trigger the code, copying the code from the console to the special action editor. After doing this, you must save the scenario to a new name.

Having accomplished all this, you could launch the newly saved scenario in regular mode and call the special action to run the code.

That is a lot of work.

(in reply to stilesw)
Post #: 4
RE: Lua console.... editor only? - 7/7/2020 8:10:01 PM   
parmenio

 

Posts: 266
Joined: 8/6/2009
From: United Kingdom
Status: offline
Thanks guys.... I hadn't thought of playing in editor mode.

Maybe a trick is being missed here.... how hard would it be to have the console available in player mode and what would be the problem with that?

Edit: actually - maybe it doesn't matter at all since I can also edit in-progress saves. When I'm a bit more familiar with the game, I may well have a play.

< Message edited by parmenio -- 7/7/2020 8:16:02 PM >

(in reply to jkgarner)
Post #: 5
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Lua console.... editor only? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

2.891