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 #695971

"Team 0 had invalid technology goal" loading savegame with advanced AI

Added by Jacob Nevins over 4 years ago. Updated almost 4 years ago.

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

0%

Estimated time:

Description

Loading the first attached savegame in S2_6 gives the message

1: Team 0 had invalid technology goal.

In this case (the first one I found in this autogame in a non-exhaustive search), the AI has "Advanced Flight" as a research goal despite having acquired it long ago (currently they are researching Environmentalism). It seems that by the time an AI ends up researching Future Tech, it is always in a state like this (generally with Advanced Flight as goal).

It's not that "Advanced Flight" is the last goal this AI ever set; earlier savegames have more advanced goals; the previous turn, the goal was Environmentalism.

I note that "Advanced Flight" is the first tech defined in data/civ2civ3/techs.ruleset. Perhaps it's meant to be A_UNSET or 0 or something like that?

[research]
r={"number","goal_name","techs","futuretech","bulbs_before","saved_name","bulbs","now_name","got_tech","done" 
0,"Advanced Flight",85,0,277,"",911,"Environmentalism",FALSE,"1111111111111111111111111101111011111111111111111111111111111111111111111101111111111111" 
1,"Advanced Flight",8,0,0,"",0,"Masonry",FALSE,"1010000001000000000000000000000000010010000000000000000000000001000000000000000001000010" 
...
autogame-T1734-Y03309-auto.sav.bz2 (100 KB) autogame-T1734-Y03309-auto.sav.bz2 S2_6 civ2civ3 autogame Jacob Nevins, 2017-09-09 11:40 AM
autogame-T1733-Y03308-auto.sav.bz2 (101 KB) autogame-T1733-Y03308-auto.sav.bz2 The savegame preceding the already-attached one. Jacob Nevins, 2018-02-04 02:00 PM
0026-ai-set-tech-goal-to-A_UNSET-when-there-s-no-possible.patch (1.36 KB) 0026-ai-set-tech-goal-to-A_UNSET-when-there-s-no-possible.patch Marko Lindqvist, 2018-02-04 02:27 PM

Related issues

Blocks Freeciv - Task #700704: S3_0 alpha1Closed2018-03-162018-03-16

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

History

#1 Updated by Marko Lindqvist over 4 years ago

  • Sprint/Milestone changed from 2.6.0 to 2.6.0-beta2

#2 Updated by Marko Lindqvist over 4 years ago

#3 Updated by Jacob Nevins about 4 years ago

  • Sprint/Milestone deleted (2.6.0-beta2)

#4 Updated by Marko Lindqvist almost 4 years ago

  • Category set to AI
  • Sprint/Milestone set to 2.6.0-beta3

Jacob Nevins wrote:

the AI has "Advanced Flight" as a research goal despite having acquired it long ago (currently they are researching Environmentalism).

the previous turn, the goal was Environmentalism.

Did they start researching Environmentalism just this turn? I think AI does not want to set goal to the tech it is researching already, but to next thing it wants to research after finishing current. So my theory is that it changed goal away from Environmentalism because it started to research it.

#5 Updated by Jacob Nevins almost 4 years ago

Did they start researching Environmentalism just this turn?

Don't think so? I've attached the savegame from the previous turn.

[research]
r={"number","goal_name","techs","futuretech","bulbs_before","saved_name","bulbs","now_name","got_tech","done" 
0,"Environmentalism",85,0,277,"",543,"Environmentalism",FALSE,"1111111111111111111111111101111011111111111111111111111111111111111111111101111111111111" 
1,"Advanced Flight",8,0,0,"",0,"Masonry",FALSE,"1010000001000000000000000000000000010010000000000000000000000001000000000000000001000010" 
...

#6 Updated by Marko Lindqvist almost 4 years ago

Attached patch fix at least following cases:
- Select goal A_UNSET when researching future techs
- Select goal A_UNSET when there's no more techs to research before future techs
- Select first still not researched tech, instead of first overall, when all the remaining techs have value 0

#7 Updated by Marko Lindqvist almost 4 years ago

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

Also available in: Atom PDF