Page 1 of 1

Command Lua functions not working

Posted: Thu Apr 04, 2024 11:21 am
by gesch80550
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

Re: Command Lua functions not working

Posted: Thu Apr 04, 2024 2:55 pm
by Kushan04
Works fine for me. If I had to take a guess, it's not supported in the version of the game you're using.

Re: Command Lua functions not working

Posted: Sat Apr 06, 2024 12:44 am
by gesch80550
Thanks. That was it - I applied the latest version for this forum (Build 18) and it seems to be working.