Menu

#171 Natives can't build settlements even if specified

Current
open
nobody
AI (2)
3
2015-08-14
2009-01-05
abartels
No

Following from https://sourceforge.net/forum/forum.php?thread_id=2303529&forum_id=719661, where Michael Burschik stated:

"Not at this time. Apparently, it is hard-coded somewhere that the natives don't establish new settlements. This is a bug."

in reply to a modding question about settlement-building natives.

I'm opening it here, because Michael considers it a bug - the request itself sounds more like a feature request at the moment, though.

What would need to be changed:
1. adding "model.ability.foundColony" to both a native player and at least one native unit type will probably make that AIPlayer consider building colonies.

2. AIPlayer:hasFewColonies() will currently fail, because player.getColonies() will throw an exception if the settlements the player has aren't colonies. This method, which is tagged as "temporary" anyway, would need to work for settlements as well.

3. Should the above check work, building will probably still fail, because BuildColonyMission will try to specifically build a Colony, not a settlement. Building a native settlement would need to be made a special case here.

Generally, and unless someone desperately wants to give it a hand right now, this sounds like something to be done during the big "AI development" phase in the future.

Discussion

  • Michael Vehrs

    Michael Vehrs - 2009-09-14

    I have been contacted by students who wish to tackle the issue.

     
  • Michael Vehrs

    Michael Vehrs - 2009-09-14
    • assigned_to: nobody --> burschik
     
  • Michael Vehrs

    Michael Vehrs - 2010-04-24

    Okay, nobody did any work on this. Does the problem persist?

     
  • Michael Vehrs

    Michael Vehrs - 2010-04-24
    • assigned_to: burschik --> nobody
     
  • Mike Pope

    Mike Pope - 2011-06-28
    • priority: 1 --> 3
     
  • Mike Pope

    Mike Pope - 2013-01-12
    • milestone: --> Current
     
  • Mike Pope

    Mike Pope - 2013-01-23
    • status: open --> open-WWC1D
     
  • Mike Pope

    Mike Pope - 2013-01-23

    WWC1D?: So did Col1 natives build new settlements?

     
  • Mike Pope

    Mike Pope - 2013-07-01

    Misiulo confirms that Col1 natives did not build settlements. It is no surprise that they do not build settlements in FreeCol even with the foundColony ability because the native AI does not create any such missions.

    IMHO this report is more of a feature request, or even FC2 material. Reclassifying as such.

     
  • Mike Pope

    Mike Pope - 2013-07-01

    Ticket moved from /p/freecol/bugs/1268/

     
  • Mike Pope

    Mike Pope - 2015-08-01
    • labels: Computer players (AI) --> AI
    • status: open-WWC1D --> open
    • Group: Current --> Accepted
     

Log in to post a comment.