dcs_code_injector icon indicating copy to clipboard operation
dcs_code_injector copied to clipboard

Reload MOOSE in the tool

Open nielsvaes opened this issue 2 years ago • 3 comments

          By the way, how do You reload whole Moose with the tool? I tried to copy-paste the Moose in the separate tab to drag it down to the buttons, but the tool have hung in paste action...

Originally posted by @Amarok73 in https://github.com/nielsvaes/dcs_code_injector/issues/8#issuecomment-1844960334

nielsvaes avatar Dec 07 '23 11:12 nielsvaes

This depends on how you load MOOSE in your mission. I do it like I show in this video here: https://www.youtube.com/watch?v=bIeg87Gfs1Y

So when I want to reload MOOSE, I just run dofile(MOOSE_DYNAMIC_LOADER) again.

nielsvaes avatar Dec 07 '23 12:12 nielsvaes

If I'll use the "assert loadfile" method to reload the moose.lua file, the effect will be as expected, or this way there may be some issues?

Amarok73 avatar Dec 07 '23 20:12 Amarok73

No, that should be exactly the same.

nielsvaes avatar Dec 07 '23 21:12 nielsvaes