PDA

View Full Version : AI Heuristics



HecticTanker
07-11-2011, 06:59 PM
I am looking into modding AI for both informative and personal reasons(Personal reason being for my Mod RA3 Undecided).

Anyways, I'm specifically looking into AI Heuristics atm and was wondering if anyone had any knowledge of the fields/properties of them.
File Location - Data/SkirmishAI/AITargetHeuristicsLibrary.xml

It appears they are used for targetting for strategic & building States
Located here: Data/SkirmishAI/States/

I'm looking into this so that I can try and make the Japanese AI (specifically Kenji) do a Base Defense Rush with the newly designed Base Defenses from my Mod. Though atm I'm just trying it with Basic Defenses and will implement in the actual mod later on.

Anyways,



<AITargetingHeuristic
id="VerySafeLandExpansionHeuristic"
HeuristicType="Expansion"
Location="Land"
MinDistanceFromEnemy="900.0">
<BaseSelection
PreferredBaseTypes="MAIN_BASE"
PreferredNotBaseTypes="CAPTURED"
SortOrder="PREFER_OLDEST" />
</AITargetingHeuristic>


Fields/Properties
id - This one is pretty self-explanatory
HeuristicType - ?
Location - Seems mostly in relation to Expansion finding. Known Values: Land & Water
SearchRange - Seems mostly in relation to Expansion finding, though I don't see why it couldnt' possibly be used elsewhere. Value: Integer value Ex. "5000"
MinDistanceFromEnemy - Seems self-explanatory enough. Value: Integer
SortType - ??
VitalKindOf - Important KindOf, as it states in name lol. Values: Anyone happen to have a list?
ForbiddenKindOf - Same as above just Forbidden.
RequireUniqueTarget - ??
IgnoreMinDistanceFromConyardEntranceForTime - ??
Relationship - Targeting in relation to self/allied/enemy status
UnderAttack - ??
ForbiddenObjectStatus - Name pretty much states what it is. Values: Object Status
HighestPriorityEnemyPlayersOnly - ?
MaxDistanceToShore - Seems Self-explanatory enough. Values: Integer
Beacon - ??

? - Not Sure enough to say.
?? - No Idea


If anyone is able to add to this I'm sure it would be helpful to the community as well as myself. :P

Lauren
07-11-2011, 09:22 PM
Schemas/xsd/SkirmishAI/AssetTypeTargetHeuristics.xsd

HecticTanker
07-11-2011, 10:26 PM
oh right...forgot about those hehehe...
thanks.

Lauren
07-11-2011, 10:49 PM
:O how could you? The schemas folder is one of the most important things ^^ I have it open all the time.

HecticTanker
07-12-2011, 12:53 AM
well to be honest I started modding on RA2 and I just figured stuff out on my own then, and still do. Not used to having a folder of files telling me my options hahahaha xD

Lauren
07-12-2011, 11:06 AM
Started with Generals and had to figure stuff out through looking through the game.dat too, but this makes it way easier :D