Command Lua functions not working

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
gesch80550
Posts: 8
Joined: Wed Mar 06, 2024 1:20 pm

Command Lua functions not working

Post 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
Kushan04
Posts: 1164
Joined: Tue Jun 28, 2005 9:27 pm
Location: USA
Contact:

Re: Command Lua functions not working

Post 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.
gesch80550
Posts: 8
Joined: Wed Mar 06, 2024 1:20 pm

Re: Command Lua functions not working

Post by gesch80550 »

Thanks. That was it - I applied the latest version for this forum (Build 18) and it seems to be working.
Post Reply

Return to “Lua Legion”