AI option values?
Posted: 30 Sep 2009, 10:20
I am developing an AI for Spring, and would now like to allow it to read some settings from a configuration files. I would believe that AIOptions.lua is meant to be used for this?
I am using the new C++ interface, and can very well read from the AIInfo.lua file using the following command:
My best guess for reading from AIOptions.lua, which is what i would like to do, is using the following command:
But this doesn't seem to know anything about the options i have entered in AIOptions.lua - GetSize() returns 0.
So my question is: Is the AI supposed to be allowed to access AIOptions.lua, and if, how should this be done using the new C++ interface?
I am using the new C++ interface, and can very well read from the AIInfo.lua file using the following command:
Code: Select all
Info::GetInstance(ai->callback)->...;
Code: Select all
OptionValues::GetInstance(ai->callback)->...;
So my question is: Is the AI supposed to be allowed to access AIOptions.lua, and if, how should this be done using the new C++ interface?