Error in ScenEdit_ExportInst function

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

Post Reply
d3n3m3
Posts: 1
Joined: Thu Dec 05, 2024 1:55 pm

Error in ScenEdit_ExportInst function

Post by d3n3m3 »

Hello everyone,

While I'm running ScenEdit_ExportInst function in CMO lua editor I got an error: ScenEdit_ExportInst 0: ,no filename key defined.

I tried various of scripts but I could not run successfully. Other functions can run properly. In official website there is an example script:
ScenEdit_ExportInst('Russia', {'c1a0e312-9ccc-43d1-9e6c-01899c8433d9'}, {filename='ssbn_patrol.inst',name='SSBN on Patrol',comment='Russian SSBN on patrol in Barents'})
I tried this one also but did not work. Error says filename key not defined but I defined it as in example. How can I solve this problem? My CMO version is 1.06 - Build v1328.14 and Lua version is 5.4

I need help to solve this. Thanks in advance
User avatar
blu3s
Posts: 1240
Joined: Fri Jul 08, 2022 9:45 am

Re: Error in ScenEdit_ExportInst function

Post by blu3s »

Please update to the latest version, I have no problems with the function
Post Reply

Return to “Lua Legion”