Command Lua functions not working
Posted: Thu Apr 04, 2024 11:21 am
I'm not sure where to post this, so I am hoping someone here can help out.
I have a collection of functions that I am using to build/re-build scenarios through the console. Each time, I make a change and need to re-run to recreate the scenario, I have to use the File menu to 'Create New Blank Scenario' to clear the exiting work and then re-run my script. I found the documentation for the Tool_BuildBlankScenario function, but all I get when running it is an error (seems to indicate that it is not recognizing this as a command) - The error is:
>> print(Tool_BuildBlankScenario())
ERROR: [string "Console"]:1: attempt to call a nil value (global 'Tool_BuildBlankScenario')
Am I doing something wrong? Or should this command be working and this is a bug? (BTW - I am currently using build 1328.14)
Thanks
I have a collection of functions that I am using to build/re-build scenarios through the console. Each time, I make a change and need to re-run to recreate the scenario, I have to use the File menu to 'Create New Blank Scenario' to clear the exiting work and then re-run my script. I found the documentation for the Tool_BuildBlankScenario function, but all I get when running it is an error (seems to indicate that it is not recognizing this as a command) - The error is:
>> print(Tool_BuildBlankScenario())
ERROR: [string "Console"]:1: attempt to call a nil value (global 'Tool_BuildBlankScenario')
Am I doing something wrong? Or should this command be working and this is a bug? (BTW - I am currently using build 1328.14)
Thanks