Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Bug #855339

AI doesn't do anything to actually win (civ2civ3)

Added by Anton Körbchen over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
AI
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Attached is a saved game played by two AIs on a tiny map with civ2civ3 ruleset. One AI eventually prevailed, captured nearly all the cities of the other, researched everything. However, it doesn't want to win. It doesn't try to capture the two remaining cities of the virtually defeated AI. It doesn't build the spaceship to win peacefully (maybe because it is at war).

It is already year 2790 (turn 1215), I didn't watch to notice when exactly the situation became hopeless for the other AI, but certainly hundreds of turns ago.

This map is tiny, but this also happens on larger maps. This doesn't happen always, sometimes AI actually goes and finishes his rival.

Version 2.6.1+ (917c73a).


Related issues

Blocks Freeciv - Feature #694778: AI regressions when switching from classic to civ2civ3 rulesetNew

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by Marko Lindqvist over 1 year ago

Attached patch is not even meant to fix the issue once and for all, but just to improve the situation a bit.

#2 Updated by Jacob Nevins over 1 year ago

  • Blocks Feature #694778: AI regressions when switching from classic to civ2civ3 ruleset added

#3 Updated by Jacob Nevins about 1 year ago

cazfi, are you planning to commit the attached patch for 2.6.2? Or do you want more testing to occur first?

#4 Updated by Marko Lindqvist about 1 year ago

  • Sprint/Milestone changed from 2.6.2 to 2.6.3

#5 Updated by Stefan Slapeta about 1 year ago

Marko - should this read as follows (otherwise you divide int/int)? (I am taking the assumption you deliberately declared finishing_factor as float?)


finishing_factor = 2 - (float)owner_size / FINISH_HIM_CITY_COUNT;

#6 Updated by Marko Lindqvist about 1 year ago

  • Status changed from Resolved to In Progress

Yes, thanks for catching.

#8 Updated by Marko Lindqvist about 1 year ago

Handling of this patch was not finished on my old computer, and I had not taken it to my queue on new computer until now. I'm running some autogames with the patch, and if they look good, will push it.

#9 Updated by Marko Lindqvist about 1 year ago

  • Status changed from Resolved to Closed
  • Assignee set to Marko Lindqvist

Marko Lindqvist wrote:

Attached patch is not even meant to fix the issue once and for all, but just to improve the situation a bit.

Still, closing this ticket as the patch has been pushed. Further development should happen in a new ticket.

Also available in: Atom PDF