Gamemode specific AI code

Bug #895310 reported by DCoder DCoder
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ares
Incomplete
Wishlist
Unassigned

Bug Description

Simply, this will consist of
;gamemode.ini
[General]
AdditionalAICode=aifoobar.ini
and aifoobar.ini will be read in addition to aimd.ini .
Not sure how this will interact with the map's IgnoreGlobalAITriggers though.

Revision history for this message
Beowulf (genkosygin) wrote :

Would it work if you appended the file contents to aimd.ini or is that too much to ask?

err, that is to say append it to the internal array. Not the file itself.

Revision history for this message
DCoder DCoder (dcoder1337) wrote :

Where else would the data go, if not into the internal array? You won't be able to reference this file's content from inside aimd (same way that you cannot reference a gamemode's added buildings/w/e from inside the main rules) though.

Revision history for this message
Blade (nadia-xy) wrote :

I'd prefer it to not get appended to aimd.ini and instead override it entirely or at least have the option to override/append as required. Otherwise you may have trouble when you remove units from some game modes and the AI has to time out deciding it can't complete some of its triggers when it can build some but not all of a required taskforce.

Revision history for this message
DCoder DCoder (dcoder1337) wrote :

Would it help if I made the game read AllowGlobalAITriggers from the gamemode as well as the map, left it to control only the aimd.ini content, and AllowGamemodeAITriggers that would toggle only g/m specific ones, defaulting to same state as the previous flag?

Revision history for this message
MRMIdAS (mrmidas) wrote :

couldn't this be done with the [#include] flag, have your new AI overwrite the old one?

Revision history for this message
Blade (nadia-xy) wrote :

@DCoder Sounds good in principle, how would that interact with the flag in the map itself though?

Changed in ares:
assignee: DCoder DCoder (dcoder1337) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.