Menu

#3219 Sometimes AI assigns European units to worst producing tile

Fixed_0.12.0
closed-fixed
nobody
None
5
2022-05-01
2021-01-23
No

Hi

It looks like the AI assigns European units to the least producing tile.

See save game file (attached).

Look at the English tobe Colony at 33, 85 (I play Dutch - so use --debug MENUS)
At the next turn AI will assign one colonist to produce ore on the grain resource (34,86) and one unit producing grain at boreal forest (33, 83).

I think the bug is caused by a wrongly sorted workplan in ColonyPlan.java.

A patch is attached as well.

I have played a couple of games with the patch applied and it works ok for me. I have not noted any side-effects with the patch applied.

I am at master 75e1cf3.

/////Björne

1 Attachments

Discussion

  • Björn Gustafsson

    And the save game

     
  • Calebrw

    Calebrw - 2021-01-28
     
  • Calebrw

    Calebrw - 2021-01-28

    fixed via github pull request. testing looks good.

     
  • Calebrw

    Calebrw - 2021-01-28
    • status: open --> pending-fixed
     
  • Mike Pope

    Mike Pope - 2021-04-20
    • Group: Current --> Fixed_trunk
     
  • Mike Pope

    Mike Pope - 2022-05-01
    • Group: Fixed_trunk --> Fixed_0.12.0
     
  • Mike Pope

    Mike Pope - 2022-05-01
    • Status: pending-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB