Results 1 to 4 of 4

Thread: AI IP

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default AI IP

    Im trying to understand the AI and their decisions regarding who to attack. The danes don't border me and in the ai_db I have reduced invade priority for non_neighbors with decent relations. The entry shows an IP of -401 but they still attacked. How is this possible?


    18:42:51.642 [ai.ltgd] [info] <4> military: frontline_balance 1, military_balance 1.06569, military_balance_plus_enemies 1.06569, alliance_military_balance 1.06569, free_strength_balance 0.789734
    18:42:51.642 [ai.ltgd] [info] <4> faction standing: faction_standing -0.0508958, target_faction_standing 0.0356732, global_standing 0.00123756, target_global_standing 0.014572
    18:42:51.642 [ai.ltgd] [info] <4> diplomacy: stance Neutral, num_enemies 0, target_num_enemies 0, has_alliance_against 0, num_turns_allied 0, num_turns_ceasefire -1
    18:42:51.642 [ai.ltgd] [info] <4> trusted_allies: trusted_ally 0, trusted_ally_enemy 0, trusted_ally_protectorate 0
    18:42:51.642 [ai.ltgd] [info] <4> protectorate: is_protectorate 0, is_protectorate_of_catholic 0
    18:42:51.643 [ai.ltgd] [info] <4> papal: excommunicated 0, enemy_excommunicated 0, has_ceasehostilities 0
    18:42:51.643 [ai.ltgd] [info] <4> neighbour: is_neighbour 0, target_weakest_neighbour 0, strongest_neighbour 0, borders_all_our_regions 0
    18:42:51.643 [ai.ltgd] [info] <4> win conditions: is_faction_to_outlive_target 0, is_target_faction_to_outlive 0
    18:42:51.643 [ai.ltgd] [info] <4> misc: production_balance 0.98713, target_religion 0, target_faction poland, num_settlements 5
    18:42:51.643 [ai.ltgd] [info] <4> rand 0.746269, difficulty very_hard, turn_number 5
    18:42:51.643 [ai.ltgd] [info] <4> most_desirable 0, target_human 1, target_is_shadow 0
    18:42:51.643 [ai.ltgd] [info] <4> LTGD: (catholic) invade decision: invade = invade_buildup, invade_priority = -401, want_offer_protect = 0, alliance_against = 0, can_force_invade = 1

  2. #2
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: AI IP

    Quote Originally Posted by soulson View Post
    Im trying to understand the AI and their decisions regarding who to attack. The danes don't border me and in the ai_db I have reduced invade priority for non_neighbors with decent relations. The entry shows an IP of -401 but they still attacked. How is this possible?


    18:42:51.642 [ai.ltgd] [info] <4> military: frontline_balance 1, military_balance 1.06569, military_balance_plus_enemies 1.06569, alliance_military_balance 1.06569, free_strength_balance 0.789734
    18:42:51.642 [ai.ltgd] [info] <4> faction standing: faction_standing -0.0508958, target_faction_standing 0.0356732, global_standing 0.00123756, target_global_standing 0.014572
    18:42:51.642 [ai.ltgd] [info] <4> diplomacy: stance Neutral, num_enemies 0, target_num_enemies 0, has_alliance_against 0, num_turns_allied 0, num_turns_ceasefire -1
    18:42:51.642 [ai.ltgd] [info] <4> trusted_allies: trusted_ally 0, trusted_ally_enemy 0, trusted_ally_protectorate 0
    18:42:51.642 [ai.ltgd] [info] <4> protectorate: is_protectorate 0, is_protectorate_of_catholic 0
    18:42:51.643 [ai.ltgd] [info] <4> papal: excommunicated 0, enemy_excommunicated 0, has_ceasehostilities 0
    18:42:51.643 [ai.ltgd] [info] <4> neighbour: is_neighbour 0, target_weakest_neighbour 0, strongest_neighbour 0, borders_all_our_regions 0
    18:42:51.643 [ai.ltgd] [info] <4> win conditions: is_faction_to_outlive_target 0, is_target_faction_to_outlive 0
    18:42:51.643 [ai.ltgd] [info] <4> misc: production_balance 0.98713, target_religion 0, target_faction poland, num_settlements 5
    18:42:51.643 [ai.ltgd] [info] <4> rand 0.746269, difficulty very_hard, turn_number 5
    18:42:51.643 [ai.ltgd] [info] <4> most_desirable 0, target_human 1, target_is_shadow 0
    18:42:51.643 [ai.ltgd] [info] <4> LTGD: (catholic) invade decision: invade = invade_buildup, invade_priority = -401, want_offer_protect = 0, alliance_against = 0, can_force_invade = 1
    Invade 'buildup' is an invasion type, 'none' is what you want if they're not supposed to be invading. Force invade isn't completely clear to me, but set it to false if you don't want them to invade the target.
    Last edited by Taiji; September 13, 2010 at 08:10 AM.

  3. #3

    Default Re: AI IP

    Ok thanks. Another quick question. If the IP exceeds the max clamp, will the AI still carry out their invasion or will it be ignored?

  4. #4
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: AI IP

    It makes sense to me that those exceeding the max clamp will be treated as equal in terms of priority, and all maximum.
    Last edited by Taiji; September 13, 2010 at 05:48 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •