Lua script as attachment not working with ScenEdit_UseAttachment() (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support



Message


NimrodX -> Lua script as attachment not working with ScenEdit_UseAttachment() (6/3/2018 1:53:20 PM)

I must be missing something that's not provided in the documentation because this isn't working.

ScenEdit_UseAttachment() doesn't seem to be running my lua script at all. Not in an Action script, not in the Lua console.

I've attached a scenario that demonstrates what is not working.




michaelm75au -> RE: Lua script as attachment not working with ScenEdit_UseAttachment() (6/11/2018 8:05:04 AM)

This command is used to load files from the Attachment repository. You will need to create the file as an attachment, and use the attachment id as its name.
Use ScenEdit_RunScript() to run a Lua script from [Command base directory]/Lua




NimrodX -> RE: Lua script as attachment not working with ScenEdit_UseAttachment() (6/12/2018 6:12:02 AM)

There seems to be no real benefit to Lua attachements at all. So far I haven't encountered anything that can't be better managed by creating a Lua Script Action and triggering it on scenario load, etc. This is much less trouble than trying to deal with all of the attachment bundling issues, unless maybe the Lua script is so large that it exceeds some hard limit for the text blob size of an Action. And in that case it seems likely that multiple lua script Actions could be executed.

Am I missing anything here?




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.96875