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 To Automatically Load Overlays

 
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 To Automatically Load Overlays Page: [1]
Login
Message << Older Topic   Newer Topic >>
LUA To Automatically Load Overlays - 11/1/2017 12:49:55 PM   
butch4343

 

Posts: 327
Joined: 3/26/2015
Status: offline
Folks,

Just a quick question, is it possible to have overlays automatically load when a scenario starts?

If so is that what the LUA script Get Attachment does?

How would you code that, and where would you store the overlay?

As always Im grateful for any advice.

Regards

Butch
Post #: 1
RE: LUA To Automatically Load Overlays - 11/2/2017 7:33:37 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
I think this should show you want you want to do.


Attachment (1)

_____________________________

Michael

(in reply to butch4343)
Post #: 2
RE: LUA To Automatically Load Overlays - 11/2/2017 3:51:44 PM   
TitaniumTrout


Posts: 374
Joined: 10/20/2014
From: Michigan
Status: offline
I just did a tutorial on this, in my example it was a campaign scenario but everything is the same.

http://thestrategygamer.com/2017/10/29/command-modern-air-naval-operations-custom-overlays-campaign-overlays/

_____________________________


(in reply to butch4343)
Post #: 3
RE: LUA To Automatically Load Overlays - 11/2/2017 9:40:19 PM   
butch4343

 

Posts: 327
Joined: 3/26/2015
Status: offline
Guys

Thanks , thank you so much for this.

I know im going to sound really really thick here, but ...

... If I put post this scenario, do I need to include that repo file and then instruct the recipient to copy that repo folder into their command? Or will command handle all of that for me?

Regards

(in reply to TitaniumTrout)
Post #: 4
RE: LUA To Automatically Load Overlays - 11/3/2017 7:32:35 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
When package up the scenario for distribution, it should include the attachments.
When the scenario is installed, the attachments are installed in the same folder as the SCEN file, but when the scenario is first loaded, it will move them to the 'repo' folder.

_____________________________

Michael

(in reply to butch4343)
Post #: 5
RE: LUA To Automatically Load Overlays - 11/3/2017 9:31:30 AM   
butch4343

 

Posts: 327
Joined: 3/26/2015
Status: offline
Michael,

Thanks for your explanation, I am both grateful and in your debt.

Regards

Butch

(in reply to butch4343)
Post #: 6
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> LUA To Automatically Load Overlays 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

1.078