Jump to content

Recommended Posts

Posted

I m new to scripting and have learned that you need to load up moose.lau, mist.lua, ctld.lua, and other files that can be used to have their objects available for use in your scripting. Back in tho old days when we need to do several things prior to actually calling the app you needed so that the preparation files were loaded in the correct order with the correct attributes we used autoexec.bat file which was the command line coding to properly execute the smaller prepretory files. Much like the first several lines. In a trigger actions for a mission trigger script.by creating a lua file with the script container names and attributes you could do one do script file instead of several you use now.

 

Is this possible? Let’s call the autoexec.lua file the container file name so inside it you would have several do script file calling each wrapper that was previously used individually so fo the one I’m proposing it would look similar to this

 

Autoexec.lua

Do script file [/path/moose.lua]

Do script file [/path/mist.lua]

Do script file [/path/ctld.lua]

Do script file [/path/ATME.lua]

 

The in me you select a once. Trigger<then either on startup or time more than<do script file /path/autoexec.lua

 

This makes life easy since you donot for get what I refer to as a wrapper filebecause once it works it should always work until something changes. You don’t have to remember the source for a class and make sure it is loaded since they are all loaded with minimum overhead until called,

BlackeyCole 20years usaf

XP-11. Dcs 2.5OB

Acer predator laptop/ i7 7720, 2.4ghz, 32 gb ddr4 ram, 500gb ssd,1tb hdd,nvidia 1080 8gb vram

 

 

New FlightSim Blog at https://blackeysblog.wordpress.com. Go visit it and leave me feedback and or comments so I can make it better. A new post every Friday.

Posted

What do you mean by dynamic loading?

BlackeyCole 20years usaf

XP-11. Dcs 2.5OB

Acer predator laptop/ i7 7720, 2.4ghz, 32 gb ddr4 ram, 500gb ssd,1tb hdd,nvidia 1080 8gb vram

 

 

New FlightSim Blog at https://blackeysblog.wordpress.com. Go visit it and leave me feedback and or comments so I can make it better. A new post every Friday.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...