No AI difficulty settings after latest update

No AI difficulty settings after latest update

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
kerristallax
Posts: 2
Joined: 27 Jun 2007, 17:20

No AI difficulty settings after latest update

Post by kerristallax »

I am running Spring + XTA in Ubuntu 9.04, and after I let the Update Manager install the updates for Spring recently, I am not able to select an difficulty level for KAI, RAI, or AAI anymore. I was looking through the files, and noticed that the AIOptions.lua files for those AIs are basically empty. I tried installing the latest version of spring for Windows on a separate PC, and noticed the same thing.

Prior to that, I was using KAI and setting it to 5, which it played just about how I wanted it to. On setting "3," which appears to be the default setting -- and the one that it is using now? -- it doesn't play very well. Currently, the AI does one decent rush, and then gets a construction vehicle stuck in the vehicle plant, after which it does nothing.

I don't know how the AIOptions.lua files were before the update dated 10/23, I never looked. Currently, they are pretty much blank. Example:

--
-- Custom Options Definition Table format
--
-- A detailed example of how this format works can be found
-- in the spring source under:
-- AI/Skirmish/NullAI/data/AIOptions.lua
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

local options = {
}

return options


What do I need to do to get the AI difficulty setting back?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: No AI difficulty settings after latest update

Post by hoijui »

:D :D
that was fun! :D

i am sorry to disappoint you, but the difficulty setting was never considered by any of the AIs, and still is not. so it did not matter what you set it to. i just added it to all the AIs, so we could get/test lobby support for AI Options (that was way back in the beginning of the year somewhen). As they are now visible, i removed them from all but NullAI (where it.. of course, does not have an effect either).

in other words, you had to wait for an AI to implement such a setting, and then the AI dev would add it to the AIOptions.lua file, and then it would actually do something (if he did it right).
kerristallax
Posts: 2
Joined: 27 Jun 2007, 17:20

Re: No AI difficulty settings after latest update

Post by kerristallax »

Really! Well, that explains it, at least. Thank you for answering.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: No AI difficulty settings after latest update

Post by zwzsg »

I'm so gonna use that as soon as I figure out the syntax to add custom options to LuaAI. Does TASClient support it yet?
Post Reply

Return to “Help & Bugs”