LoneGazebo / Community-Patch-DLL

Community Patch for Civilization V - Brave New World
Other
285 stars 158 forks source link

AI Settler Woes #2315

Closed LoneGazebo closed 8 years ago

LoneGazebo commented 8 years ago

@ilteroi,

Seeing a bug in the AI's settler operation logic. Here's the pattern:

`


> Line 1: 031, The Maya, AI_OPERATION_FOUND_CITY, 0, setting new target (65:16)
>   Line 2: 031, The Maya, AI_OPERATION_FOUND_CITY, 0, Initial stage is recruiting
>   Line 3: 031, The Maya, AI_OPERATION_FOUND_CITY, 0, Found 5 potential units to recruit for operation 0 at x=70 y=16, target of x=65 y=16
>   Line 4: 031, The Maya, AI_OPERATION_FOUND_CITY, 0, Recruiting - slot 0 is already full! Unit is: Settler 1366
>   Line 5: 031, The Maya, AI_OPERATION_FOUND_CITY, 0, Transition to gathering stage
>   Line 6: 031, The Maya, AI_OPERATION_FOUND_CITY, 0, Transition to movement stage
>   Line 7: 031, The Maya, AI_OPERATION_FOUND_CITY, 0, Started, Army: 1370, Units Recruited: 2, Max Formation Size: 2, Moving To Target
>   Line 8: 031, The Maya, AI_OPERATION_FOUND_CITY, 0, PRE Moving To Target, Army: 1370, At (70:16), To (65:16), Settler 1366 at (70:16), Warrior 1219 at (69:15), 
>   Line 9: 031, The Maya, AI_OPERATION_FOUND_CITY, 0, Removing unit 1219 from army 1370 because no path to checkpoint
>   Line 10: 031, The Maya, AI_OPERATION_FOUND_CITY, 0, Ended: No target
>   Line 11: 032, The Maya, AI_OPERATION_FOUND_CITY, 1, setting new target (65:16)
>   Line 12: 032, The Maya, AI_OPERATION_FOUND_CITY, 1, Initial stage is recruiting
>   Line 13: 032, The Maya, AI_OPERATION_FOUND_CITY, 1, Found 5 potential units to recruit for operation 1 at x=70 y=16, target of x=65 y=16
>   Line 14: 032, The Maya, AI_OPERATION_FOUND_CITY, 1, Recruiting - slot 0 is already full! Unit is: Settler 1366
>   Line 15: 032, The Maya, AI_OPERATION_FOUND_CITY, 1, Transition to gathering stage
>   Line 16: 032, The Maya, AI_OPERATION_FOUND_CITY, 1, Transition to movement stage
>   Line 17: 032, The Maya, AI_OPERATION_FOUND_CITY, 1, Started, Army: 1375, Units Recruited: 2, Max Formation Size: 2, Moving To Target
>   Line 18: 032, The Maya, AI_OPERATION_FOUND_CITY, 1, PRE Moving To Target, Army: 1375, At (70:16), To (65:16), Settler 1366 at (70:16), Warrior 1219 at (69:15), 
>   Line 19: 032, The Maya, AI_OPERATION_FOUND_CITY, 1, Removing unit 1219 from army 1375 because no path to checkpoint
>   Line 20: 032, The Maya, AI_OPERATION_FOUND_CITY, 1, Ended: No target
>   Line 30: 033, The Maya, AI_OPERATION_FOUND_CITY, 2, setting new target (65:16)
>   Line 31: 033, The Maya, AI_OPERATION_FOUND_CITY, 2, Initial stage is recruiting
>   Line 32: 033, The Maya, AI_OPERATION_FOUND_CITY, 2, Found 5 potential units to recruit for operation 2 at x=70 y=16, target of x=65 y=16
>   Line 33: 033, The Maya, AI_OPERATION_FOUND_CITY, 2, Recruiting - slot 0 is already full! Unit is: Settler 1366
>   Line 34: 033, The Maya, AI_OPERATION_FOUND_CITY, 2, Transition to gathering stage
>   Line 35: 033, The Maya, AI_OPERATION_FOUND_CITY, 2, Transition to movement stage
>   Line 36: 033, The Maya, AI_OPERATION_FOUND_CITY, 2, Started, Army: 1383, Units Recruited: 2, Max Formation Size: 2, Moving To Target
>   Line 37: 033, The Maya, AI_OPERATION_FOUND_CITY, 2, PRE Moving To Target, Army: 1383, At (70:16), To (65:16), Settler 1366 at (70:16), Warrior 1219 at (69:15), 
>   Line 38: 033, The Maya, AI_OPERATION_FOUND_CITY, 2, Removing unit 1219 from army 1383 because no path to checkpoint
>   Line 39: 033, The Maya, AI_OPERATION_FOUND_CITY, 2, Ended: No target
>   Line 43: 034, The Maya, AI_OPERATION_FOUND_CITY, 3, setting new target (65:16)
>   Line 44: 034, The Maya, AI_OPERATION_FOUND_CITY, 3, Initial stage is recruiting
>   Line 45: 034, The Maya, AI_OPERATION_FOUND_CITY, 3, Found 5 potential units to recruit for operation 3 at x=70 y=16, target of x=65 y=16
>   Line 46: 034, The Maya, AI_OPERATION_FOUND_CITY, 3, Recruiting - slot 0 is already full! Unit is: Settler 1366
>   Line 47: 034, The Maya, AI_OPERATION_FOUND_CITY, 3, Transition to gathering stage
>   Line 48: 034, The Maya, AI_OPERATION_FOUND_CITY, 3, Transition to movement stage
>   Line 49: 034, The Maya, AI_OPERATION_FOUND_CITY, 3, Started, Army: 1390, Units Recruited: 2, Max Formation Size: 2, Moving To Target
>   Line 50: 034, The Maya, AI_OPERATION_FOUND_CITY, 3, PRE Moving To Target, Army: 1390, At (70:16), To (65:16), Settler 1366 at (70:16), Warrior 1219 at (69:15), 
>   Line 51: 034, The Maya, AI_OPERATION_FOUND_CITY, 3, Removing unit 1219 from army 1390 because no path to checkpoint
>   Line 52: 034, The Maya, AI_OPERATION_FOUND_CITY, 3, Ended: No target
>   Line 56: 035, The Maya, AI_OPERATION_FOUND_CITY, 4, setting new target (65:16)
>   Line 57: 035, The Maya, AI_OPERATION_FOUND_CITY, 4, Initial stage is recruiting
>   Line 58: 035, The Maya, AI_OPERATION_FOUND_CITY, 4, Found 5 potential units to recruit for operation 4 at x=70 y=16, target of x=65 y=16
>   Line 59: 035, The Maya, AI_OPERATION_FOUND_CITY, 4, Recruiting - slot 0 is already full! Unit is: Settler 1366
>   Line 60: 035, The Maya, AI_OPERATION_FOUND_CITY, 4, Transition to gathering stage
>   Line 61: 035, The Maya, AI_OPERATION_FOUND_CITY, 4, Transition to movement stage
>   Line 62: 035, The Maya, AI_OPERATION_FOUND_CITY, 4, Started, Army: 1395, Units Recruited: 2, Max Formation Size: 2, Moving To Target
>   Line 63: 035, The Maya, AI_OPERATION_FOUND_CITY, 4, PRE Moving To Target, Army: 1395, At (70:16), To (65:16), Settler 1366 at (70:16), Warrior 1219 at (69:15), 
>   Line 64: 035, The Maya, AI_OPERATION_FOUND_CITY, 4, Removing unit 1219 from army 1395 because no path to checkpoint
>   Line 65: 035, The Maya, AI_OPERATION_FOUND_CITY, 4, Ended: No target
>   Line 69: 036, The Maya, AI_OPERATION_FOUND_CITY, 5, setting new target (65:16)
>   Line 70: 036, The Maya, AI_OPERATION_FOUND_CITY, 5, Initial stage is recruiting
>   Line 71: 036, The Maya, AI_OPERATION_FOUND_CITY, 5, Found 5 potential units to recruit for operation 5 at x=70 y=16, target of x=65 y=16
>   Line 72: 036, The Maya, AI_OPERATION_FOUND_CITY, 5, Recruiting - slot 0 is already full! Unit is: Settler 1366
>   Line 73: 036, The Maya, AI_OPERATION_FOUND_CITY, 5, Transition to gathering stage
>   Line 74: 036, The Maya, AI_OPERATION_FOUND_CITY, 5, Transition to movement stage
>   Line 75: 036, The Maya, AI_OPERATION_FOUND_CITY, 5, Started, Army: 1400, Units Recruited: 2, Max Formation Size: 2, Moving To Target
>   Line 76: 036, The Maya, AI_OPERATION_FOUND_CITY, 5, PRE Moving To Target, Army: 1400, At (70:16), To (65:16), Settler 1366 at (70:16), Warrior 1219 at (69:15), 
>   Line 77: 036, The Maya, AI_OPERATION_FOUND_CITY, 5, Removing unit 1219 from army 1400 because no path to checkpoint
>   Line 78: 036, The Maya, AI_OPERATION_FOUND_CITY, 5, Ended: No target
>   Line 90: 037, The Maya, AI_OPERATION_FOUND_CITY, 6, setting new target (65:16)
>   Line 91: 037, The Maya, AI_OPERATION_FOUND_CITY, 6, Initial stage is recruiting
>   Line 92: 037, The Maya, AI_OPERATION_FOUND_CITY, 6, Found 5 potential units to recruit for operation 6 at x=70 y=16, target of x=65 y=16
>   Line 93: 037, The Maya, AI_OPERATION_FOUND_CITY, 6, Recruiting - slot 0 is already full! Unit is: Settler 1366
>   Line 94: 037, The Maya, AI_OPERATION_FOUND_CITY, 6, Transition to gathering stage
>   Line 95: 037, The Maya, AI_OPERATION_FOUND_CITY, 6, Transition to movement stage
>   Line 96: 037, The Maya, AI_OPERATION_FOUND_CITY, 6, Started, Army: 1404, Units Recruited: 2, Max Formation Size: 2, Moving To Target
>   Line 97: 037, The Maya, AI_OPERATION_FOUND_CITY, 6, PRE Moving To Target, Army: 1404, At (70:16), To (65:16), Settler 1366 at (70:16), Warrior 1219 at (69:15), 
>   Line 98: 037, The Maya, AI_OPERATION_FOUND_CITY, 6, Removing unit 1219 from army 1404 because no path to checkpoint
>   Line 99: 037, The Maya, AI_OPERATION_FOUND_CITY, 6, Ended: No target
>   Line 106: 038, The Maya, AI_OPERATION_FOUND_CITY, 7, setting new target (65:16)
>   Line 107: 038, The Maya, AI_OPERATION_FOUND_CITY, 7, Initial stage is recruiting
>   Line 108: 038, The Maya, AI_OPERATION_FOUND_CITY, 7, Found 5 potential units to recruit for operation 7 at x=70 y=16, target of x=65 y=16
>   Line 109: 038, The Maya, AI_OPERATION_FOUND_CITY, 7, Recruiting - slot 0 is already full! Unit is: Settler 1366
>   Line 110: 038, The Maya, AI_OPERATION_FOUND_CITY, 7, Transition to gathering stage
>   Line 111: 038, The Maya, AI_OPERATION_FOUND_CITY, 7, Transition to movement stage
>   Line 112: 038, The Maya, AI_OPERATION_FOUND_CITY, 7, Started, Army: 1407, Units Recruited: 2, Max Formation Size: 2, Moving To Target
>   Line 113: 038, The Maya, AI_OPERATION_FOUND_CITY, 7, PRE Moving To Target, Army: 1407, At (70:16), To (65:16), Settler 1366 at (70:16), Warrior 1219 at (69:15), 
>   Line 114: 038, The Maya, AI_OPERATION_FOUND_CITY, 7, Removing unit 1219 from army 1407 because no path to checkpoint
>   Line 115: 038, The Maya, AI_OPERATION_FOUND_CITY, 7, Ended: No target
>   Line 121: 039, The Maya, AI_OPERATION_FOUND_CITY, 8, setting new target (65:16)
>   Line 122: 039, The Maya, AI_OPERATION_FOUND_CITY, 8, Initial stage is recruiting
>   Line 123: 039, The Maya, AI_OPERATION_FOUND_CITY, 8, Found 5 potential units to recruit for operation 8 at x=70 y=16, target of x=65 y=16
>   Line 124: 039, The Maya, AI_OPERATION_FOUND_CITY, 8, Recruiting - slot 0 is already full! Unit is: Settler 1366
>   Line 125: 039, The Maya, AI_OPERATION_FOUND_CITY, 8, Transition to gathering stage
>   Line 126: 039, The Maya, AI_OPERATION_FOUND_CITY, 8, Transition to movement stage
>   Line 127: 039, The Maya, AI_OPERATION_FOUND_CITY, 8, Started, Army: 1412, Units Recruited: 2, Max Formation Size: 2, Moving To Target
>   Line 128: 039, The Maya, AI_OPERATION_FOUND_CITY, 8, PRE Moving To Target, Army: 1412, At (70:16), To (65:16), Settler 1366 at (70:16), Warrior 1219 at (69:15), 
>   Line 129: 039, The Maya, AI_OPERATION_FOUND_CITY, 8, Removing unit 1219 from army 1412 because no path to checkpoint
>   Line 130: 039, The Maya, AI_OPERATION_FOUND_CITY, 8, Ended: No target
>   Line 145: 040, The Maya, AI_OPERATION_FOUND_CITY, 9, setting new target (65:16)
>   Line 146: 040, The Maya, AI_OPERATION_FOUND_CITY, 9, Initial stage is recruiting
>   Line 147: 040, The Maya, AI_OPERATION_FOUND_CITY, 9, Found 5 potential units to recruit for operation 9 at x=70 y=16, target of x=65 y=16
>   Line 148: 040, The Maya, AI_OPERATION_FOUND_CITY, 9, Recruiting - slot 0 is already full! Unit is: Settler 1366
>   Line 149: 040, The Maya, AI_OPERATION_FOUND_CITY, 9, Transition to gathering stage
>   Line 150: 040, The Maya, AI_OPERATION_FOUND_CITY, 9, Transition to movement stage
>   Line 151: 040, The Maya, AI_OPERATION_FOUND_CITY, 9, Started, Army: 1416, Units Recruited: 2, Max Formation Size: 2, Moving To Target
>   Line 152: 040, The Maya, AI_OPERATION_FOUND_CITY, 9, PRE Moving To Target, Army: 1416, At (70:16), To (65:16), Settler 1366 at (70:16), Warrior 1219 at (69:15), 
>   Line 153: 040, The Maya, AI_OPERATION_FOUND_CITY, 9, Removing unit 1219 from army 1416 because no path to checkpoint
>   Line 154: 040, The Maya, AI_OPERATION_FOUND_CITY, 9, Ended: No target
>   Line 160: 041, The Maya, AI_OPERATION_FOUND_CITY, 10, setting new target (65:16)
>   Line 161: 041, The Maya, AI_OPERATION_FOUND_CITY, 10, Initial stage is recruiting
>   Line 162: 041, The Maya, AI_OPERATION_FOUND_CITY, 10, Found 5 potential units to recruit for operation 10 at x=70 y=16, target of x=65 y=16
>   Line 163: 041, The Maya, AI_OPERATION_FOUND_CITY, 10, Recruiting - slot 0 is already full! Unit is: Settler 1366
>   Line 164: 041, The Maya, AI_OPERATION_FOUND_CITY, 10, Transition to gathering stage
>   Line 165: 041, The Maya, AI_OPERATION_FOUND_CITY, 10, Transition to movement stage
>   Line 166: 041, The Maya, AI_OPERATION_FOUND_CITY, 10, Started, Army: 1421, Units Recruited: 2, Max Formation Size: 2, Moving To Target
>   Line 167: 041, The Maya, AI_OPERATION_FOUND_CITY, 10, PRE Moving To Target, Army: 1421, At (70:16), To (65:16), Settler 1366 at (70:16), Warrior 1219 at (69:15), 
>   Line 168: 041, The Maya, AI_OPERATION_FOUND_CITY, 10, Removing unit 1219 from army 1421 because no path to checkpoint
>   Line 169: 041, The Maya, AI_OPERATION_FOUND_CITY, 10, Ended: No target
>   Line 185: 042, The Maya, AI_OPERATION_FOUND_CITY, 11, setting new target (65:16)
>   Line 186: 042, The Maya, AI_OPERATION_FOUND_CITY, 11, Initial stage is recruiting
>   Line 187: 042, The Maya, AI_OPERATION_FOUND_CITY, 11, Found 5 potential units to recruit for operation 11 at x=70 y=16, target of x=65 y=16
>   Line 188: 042, The Maya, AI_OPERATION_FOUND_CITY, 11, Recruiting - slot 0 is already full! Unit is: Settler 1366
>   Line 189: 042, The Maya, AI_OPERATION_FOUND_CITY, 11, Transition to gathering stage
>   Line 190: 042, The Maya, AI_OPERATION_FOUND_CITY, 11, Transition to movement stage
>   Line 191: 042, The Maya, AI_OPERATION_FOUND_CITY, 11, Started, Army: 1428, Units Recruited: 2, Max Formation Size: 2, Moving To Target
>   Line 192: 042, The Maya, AI_OPERATION_FOUND_CITY, 11, PRE Moving To Target, Army: 1428, At (70:16), To (65:16), Settler 1366 at (70:16), Warrior 1219 at (69:15), 
>   Line 193: 042, The Maya, AI_OPERATION_FOUND_CITY, 11, Removing unit 1219 from army 1428 because no path to checkpoint
>   Line 194: 042, The Maya, AI_OPERATION_FOUND_CITY, 11, Ended: No target
>   Line 210: 043, The Maya, AI_OPERATION_FOUND_CITY, 12, setting new target (65:16)
>   Line 211: 043, The Maya, AI_OPERATION_FOUND_CITY, 12, Initial stage is recruiting
>   Line 212: 043, The Maya, AI_OPERATION_FOUND_CITY, 12, Found 5 potential units to recruit for operation 12 at x=70 y=16, target of x=65 y=16
>   Line 213: 043, The Maya, AI_OPERATION_FOUND_CITY, 12, Recruiting - slot 0 is already full! Unit is: Settler 1366
>   Line 214: 043, The Maya, AI_OPERATION_FOUND_CITY, 12, Transition to gathering stage
>   Line 215: 043, The Maya, AI_OPERATION_FOUND_CITY, 12, Transition to movement stage
>   Line 216: 043, The Maya, AI_OPERATION_FOUND_CITY, 12, Started, Army: 1431, Units Recruited: 2, Max Formation Size: 2, Moving To Target
>   Line 217: 043, The Maya, AI_OPERATION_FOUND_CITY, 12, PRE Moving To Target, Army: 1431, At (70:16), To (65:16), Settler 1366 at (70:16), Warrior 1219 at (69:15), 
>   Line 218: 043, The Maya, AI_OPERATION_FOUND_CITY, 12, Removing unit 1219 from army 1431 because no path to checkpoint
>   Line 219: 043, The Maya, AI_OPERATION_FOUND_CITY, 12, Ended: No target
>   Line 226: 044, The Maya, AI_OPERATION_FOUND_CITY, 13, setting new target (65:16)
>   Line 227: 044, The Maya, AI_OPERATION_FOUND_CITY, 13, Initial stage is recruiting
>   Line 228: 044, The Maya, AI_OPERATION_FOUND_CITY, 13, Found 5 potential units to recruit for operation 13 at x=70 y=16, target of x=65 y=16
>   Line 229: 044, The Maya, AI_OPERATION_FOUND_CITY, 13, Recruiting - slot 0 is already full! Unit is: Settler 1366
>   Line 230: 044, The Maya, AI_OPERATION_FOUND_CITY, 13, Transition to gathering stage
>   Line 231: 044, The Maya, AI_OPERATION_FOUND_CITY, 13, Transition to movement stage
>   Line 232: 044, The Maya, AI_OPERATION_FOUND_CITY, 13, Started, Army: 1434, Units Recruited: 2, Max Formation Size: 2, Moving To Target
>   Line 233: 044, The Maya, AI_OPERATION_FOUND_CITY, 13, PRE Moving To Target, Army: 1434, At (70:16), To (65:16), Settler 1366 at (70:16), Warrior 1219 at (69:15), 
>   Line 234: 044, The Maya, AI_OPERATION_FOUND_CITY, 13, Removing unit 1219 from army 1434 because no path to checkpoint
>   Line 235: 044, The Maya, AI_OPERATION_FOUND_CITY, 13, Ended: No target

`

And so on. The settler is in a city, and the city is surrounded by military units (hedgehog style), all of which blocking the escort and settler from meeting up and/or leaving the city.

LoneGazebo commented 8 years ago

AI eventually breaks out of this loop via a _QUICK operation.

LoneGazebo commented 8 years ago

Partially a consequence of homeland AI patrols clogging up areas around cities. I've added some changes to that which might alleviate this. We shall see.

ilteroi commented 8 years ago

the chosen escort is already adjacent to the settler so they should be able to meet up fine.

also "no target" is not consistent with the escort being kicked out from the operation. strange.

LoneGazebo commented 8 years ago

Yeah, I was curious about that. I did fix a bug in aioperation in IsSuitableForUnitRecruitment:

Formation check should be:

`

//Check formation entry here.
    if(thisFormation)
    {
        bool bGood = false;
        // Request moves for all units
        for(int iI = 0; iI < thisFormation->getNumFormationSlotEntries(); iI++)
        {
            const CvFormationSlotEntry& thisSlotEntry = thisFormation->getFormationSlotEntry(iI);
            if (unitInfo->GetUnitAIType(thisSlotEntry.m_primaryUnitType) || unitInfo->GetUnitAIType(thisSlotEntry.m_secondaryUnitType))
            {
                bGood = true;
                break;
            }
        }
        if(!bGood)
        {
            return false;
        }
    }

`

LoneGazebo commented 8 years ago

Also, here's an odd thing I've noticed in this version. When scouting about, it seems that you can 'meet' civs, find barb encampments, find natural wonders/ancient ruins that are actually still in the fog of war. Seems that unit sight isn't matching up with unit sight on the map (as if unit sight isn't accounting for hills/features blocking LoS). Sorry I can't explain more, but try moving a scout around at the start of the game and see if you can reproduce.

ilteroi commented 8 years ago

couldn't reproduce ...

image

this was suspicious but the camp's on a hill, so i guess it's ok

image

LoneGazebo commented 8 years ago

I was getting notifications/meetings without things appearing beneath the FoW. May have been a fluke and/or an oversight on my part. :sake:

LoneGazebo commented 8 years ago

Didn't mean to close. @ilteroi I'm still seeing settler woes regarding settler missions trying to move through occupied slots, etc. I'm uploading my latest DLL, when you have a chance, take a look at settler operations.

ilteroi commented 8 years ago

probably not related, but i see a lot of settlers in standby on the latest version:

image

that's just two of 5 (spread over 3 players). did you do that on purpose?

LoneGazebo commented 8 years ago

Not exactly - the AI will usually keep one or two sitting around in the event that a site opens up, but not always. Watch the first 100 turns or so for the errors I'm seeing - the AI is having a hard time (in semi-rare cases) getting operations moving if the area around the muster site is clogged up.

LoneGazebo commented 8 years ago
Line 461: 075, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 3, setting new target (57:11)
    Line 462: 075, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 3, Initial stage is recruiting
    Line 463: 075, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 3, Transition to gathering stage
    Line 464: 075, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 3, Started, Army: 1690, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 465: 075, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 3, Ended: No target
    Line 503: 076, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 4, setting new target (57:11)
    Line 504: 076, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 4, Initial stage is recruiting
    Line 505: 076, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 4, Transition to gathering stage
    Line 506: 076, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 4, Started, Army: 1700, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 507: 076, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 4, Ended: No target
    Line 547: 077, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 5, setting new target (57:11)
    Line 548: 077, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 5, Initial stage is recruiting
    Line 549: 077, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 5, Transition to gathering stage
    Line 550: 077, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 5, Started, Army: 1711, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 551: 077, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 5, Ended: No target
    Line 592: 078, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 6, setting new target (57:11)
    Line 593: 078, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 6, Initial stage is recruiting
    Line 594: 078, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 6, Transition to gathering stage
    Line 595: 078, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 6, Started, Army: 1717, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 596: 078, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 6, Ended: No target
    Line 647: 079, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 7, setting new target (57:11)
    Line 648: 079, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 7, Initial stage is recruiting
    Line 649: 079, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 7, Transition to gathering stage
    Line 650: 079, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 7, Started, Army: 1726, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 651: 079, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 7, Ended: No target
    Line 685: 080, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 8, setting new target (57:11)
    Line 686: 080, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 8, Initial stage is recruiting
    Line 687: 080, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 8, Transition to gathering stage
    Line 688: 080, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 8, Started, Army: 1733, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 689: 080, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 8, Ended: No target
    Line 751: 081, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 9, setting new target (57:11)
    Line 752: 081, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 9, Initial stage is recruiting
    Line 753: 081, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 9, Transition to gathering stage
    Line 754: 081, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 9, Started, Army: 1743, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 755: 081, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 9, Ended: No target
    Line 801: 082, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 10, setting new target (57:11)
    Line 802: 082, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 10, Initial stage is recruiting
    Line 803: 082, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 10, Transition to gathering stage
    Line 804: 082, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 10, Started, Army: 1751, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 805: 082, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 10, Ended: No target
    Line 845: 083, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 11, setting new target (57:11)
    Line 846: 083, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 11, Initial stage is recruiting
    Line 847: 083, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 11, Transition to gathering stage
    Line 848: 083, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 11, Started, Army: 1762, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 849: 083, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 11, Ended: No target
    Line 875: 084, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 12, setting new target (57:11)
    Line 876: 084, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 12, Initial stage is recruiting
    Line 877: 084, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 12, Transition to gathering stage
    Line 878: 084, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 12, Started, Army: 1763, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 879: 084, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 12, Ended: No target
    Line 902: 085, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 13, setting new target (57:11)
    Line 903: 085, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 13, Initial stage is recruiting
    Line 904: 085, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 13, Transition to gathering stage
    Line 905: 085, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 13, Started, Army: 1768, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 906: 085, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 13, Ended: No target
    Line 930: 086, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 14, setting new target (57:11)
    Line 931: 086, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 14, Initial stage is recruiting
    Line 932: 086, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 14, Transition to gathering stage
    Line 933: 086, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 14, Started, Army: 1773, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 934: 086, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 14, Ended: No target
    Line 962: 087, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 15, setting new target (57:11)
    Line 963: 087, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 15, Initial stage is recruiting
    Line 964: 087, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 15, Transition to gathering stage
    Line 965: 087, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 15, Started, Army: 1779, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 966: 087, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 15, Ended: No target
    Line 987: 088, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 16, setting new target (57:11)
    Line 988: 088, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 16, Initial stage is recruiting
    Line 989: 088, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 16, Transition to gathering stage
    Line 990: 088, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 16, Started, Army: 1783, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 991: 088, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 16, Ended: No target
    Line 1021: 089, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 17, setting new target (57:11)
    Line 1022: 089, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 17, Initial stage is recruiting
    Line 1023: 089, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 17, Transition to gathering stage
    Line 1024: 089, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 17, Started, Army: 1790, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1025: 089, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 17, Ended: No target
    Line 1040: 090, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 18, setting new target (57:11)
    Line 1041: 090, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 18, Initial stage is recruiting
    Line 1042: 090, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 18, Transition to gathering stage
    Line 1043: 090, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 18, Started, Army: 1796, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1044: 090, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 18, Ended: No target
    Line 1058: 091, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 19, setting new target (57:11)
    Line 1059: 091, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 19, Initial stage is recruiting
    Line 1060: 091, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 19, Transition to gathering stage
    Line 1061: 091, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 19, Started, Army: 1799, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1062: 091, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 19, Ended: No target
    Line 1077: 092, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 20, setting new target (57:11)
    Line 1078: 092, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 20, Initial stage is recruiting
    Line 1079: 092, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 20, Transition to gathering stage
    Line 1080: 092, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 20, Started, Army: 1801, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1081: 092, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 20, Ended: No target
    Line 1097: 093, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 21, setting new target (57:11)
    Line 1098: 093, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 21, Initial stage is recruiting
    Line 1099: 093, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 21, Transition to gathering stage
    Line 1100: 093, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 21, Started, Army: 1808, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1101: 093, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 21, Ended: No target
    Line 1112: 094, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 22, setting new target (57:11)
    Line 1113: 094, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 22, Initial stage is recruiting
    Line 1114: 094, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 22, Transition to gathering stage
    Line 1115: 094, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 22, Started, Army: 1813, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1116: 094, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 22, Ended: No target
    Line 1141: 095, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 23, setting new target (57:11)
    Line 1142: 095, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 23, Initial stage is recruiting
    Line 1143: 095, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 23, Transition to gathering stage
    Line 1144: 095, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 23, Started, Army: 1820, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1145: 095, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 23, Ended: No target
    Line 1170: 096, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 24, setting new target (57:11)
    Line 1171: 096, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 24, Initial stage is recruiting
    Line 1172: 096, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 24, Transition to gathering stage
    Line 1173: 096, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 24, Started, Army: 1826, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1174: 096, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 24, Ended: No target
    Line 1187: 097, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 25, setting new target (57:11)
    Line 1188: 097, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 25, Initial stage is recruiting
    Line 1189: 097, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 25, Transition to gathering stage
    Line 1190: 097, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 25, Started, Army: 1834, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1191: 097, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 25, Ended: No target
    Line 1213: 098, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 26, setting new target (57:11)
    Line 1214: 098, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 26, Initial stage is recruiting
    Line 1215: 098, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 26, Transition to gathering stage
    Line 1216: 098, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 26, Started, Army: 1845, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1217: 098, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 26, Ended: No target
    Line 1254: 099, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 27, setting new target (57:11)
    Line 1255: 099, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 27, Initial stage is recruiting
    Line 1256: 099, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 27, Transition to gathering stage
    Line 1257: 099, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 27, Started, Army: 1854, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1258: 099, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 27, Ended: No target
    Line 1283: 100, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 28, setting new target (57:11)
    Line 1284: 100, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 28, Initial stage is recruiting
    Line 1285: 100, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 28, Transition to gathering stage
    Line 1286: 100, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 28, Started, Army: 1862, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1287: 100, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 28, Ended: No target
    Line 1302: 101, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 29, setting new target (57:11)
    Line 1303: 101, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 29, Initial stage is recruiting
    Line 1304: 101, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 29, Transition to gathering stage
    Line 1305: 101, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 29, Started, Army: 1870, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1306: 101, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 29, Ended: No target
    Line 1337: 102, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 30, setting new target (57:11)
    Line 1338: 102, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 30, Initial stage is recruiting
    Line 1339: 102, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 30, Transition to gathering stage
    Line 1340: 102, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 30, Started, Army: 1883, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1344: 102, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 30, Ended: No target
    Line 1371: 103, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 31, setting new target (57:11)
    Line 1372: 103, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 31, Initial stage is recruiting
    Line 1373: 103, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 31, Transition to gathering stage
    Line 1374: 103, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 31, Started, Army: 1889, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1375: 103, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 31, Ended: No target
    Line 1395: 104, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 32, setting new target (57:11)
    Line 1396: 104, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 32, Initial stage is recruiting
    Line 1397: 104, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 32, Transition to gathering stage
    Line 1398: 104, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 32, Started, Army: 1898, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1399: 104, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 32, Ended: No target
    Line 1430: 105, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 33, setting new target (57:11)
    Line 1431: 105, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 33, Initial stage is recruiting
    Line 1432: 105, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 33, Transition to gathering stage
    Line 1433: 105, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 33, Started, Army: 1906, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1434: 105, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 33, Ended: No target
    Line 1464: 106, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 34, setting new target (57:11)
    Line 1465: 106, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 34, Initial stage is recruiting
    Line 1466: 106, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 34, Transition to gathering stage
    Line 1467: 106, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 34, Started, Army: 1913, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1468: 106, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 34, Ended: No target
    Line 1496: 107, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 35, setting new target (57:11)
    Line 1497: 107, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 35, Initial stage is recruiting
    Line 1498: 107, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 35, Transition to gathering stage
    Line 1499: 107, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 35, Started, Army: 1920, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1500: 107, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 35, Ended: No target
    Line 1514: 108, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 36, setting new target (57:11)
    Line 1515: 108, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 36, Initial stage is recruiting
    Line 1516: 108, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 36, Transition to gathering stage
    Line 1517: 108, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 36, Started, Army: 1926, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1518: 108, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 36, Ended: No target
    Line 1530: 109, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 37, setting new target (57:11)
    Line 1531: 109, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 37, Initial stage is recruiting
    Line 1532: 109, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 37, Transition to gathering stage
    Line 1533: 109, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 37, Started, Army: 1937, Units Recruited: 1, Max Formation Size: 4, Gathering Forces
    Line 1534: 109, Sweden, AI_OPERATION_FOUND_CITY_OVERSEAS, 37, Ended: No target

Still seeing AI settler woes on latest. Not exactly sure what is going on here.

ilteroi commented 8 years ago

i'll step through it if you give me a savegame.

LoneGazebo commented 8 years ago

Next one I get I'll take a look. I've made some bigger changes to military AI that seem to be freeing up units a bit more, generally.