Incidencia #44419

AI still researches Future Tech even when it loses tech

Abrir Fecha: 2022-04-18 23:50 Última actualización: 2022-06-12 14:32

Informador:
(Anónimo)
Propietario:
(Ninguno)
Tipo:
Estado:
Open
Componente:
Hito:
(Ninguno)
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Ninguno
Fichero:
1

Details

Not sure if this is a bug or unintended programming, but once the AI completes the tech tree once and starts getting into future tech, if it loses tech due to an insufficient research point balance (which classic and most rulesets have), the AI won't switch the tech to unlock whatever tech was lost and the game allows.

In the game I played for over 500 turns, the AI in question (set to hard difficulty, using the civ23 ruleset, it completed the full tech tree around turn 480 and never switched tech despite losing over a dozen techs (it went as far back as losing communism and the AI was still researching future tech each and every turn until the game ended around turn 550). The game was configured to teams, this AI was part of the player's team and despite not having the tech, the AI didn't ask for tech via diplomacy as it occasionally does when configured to be in teams. The game settings had a tech penalty for changing tech, but only 50% instead of the default percentage when changing tech mid research.

The recommendation is unless the ruleset has perks for future tech (to my knowledge, classic and most rulesets don't use future tech for anything), if the AI is researching future tech, check the tech tree to see if there are any missing tech and change to that. Otherwise, this exploit could be used to cripple an advanced AI civilization into easy submission because it suddenly loses all the keystone technologies to make it a viable challenger to the other players

Ticket History (3/11 Histories)

2022-04-18 23:50 Updated by: None
  • New Ticket "AI still researches Future Tech even when it loses tech" created
2022-04-18 23:55 Updated by: cazfi
Comentario

The fact that one can even research Future Techs when there's unknown techs in the actual tree is most likely a bug in itself. You can't start researching Future Techs before you know the entire tree, why should you be able to continue doing it (even starting new Future Techs) if you've lost techs?

2022-04-19 00:10 Updated by: cazfi
Comentario

Savegame from the game where this is happening would probably help, if you can attach one.

2022-04-23 17:46 Updated by: None
Comentario

Reply To cazfi

Savegame from the game where this is happening would probably help, if you can attach one.

I uploaded a save file (I don't recall the exact turn it started, but at this point in the game the AI is losing tech due to a negative balance) in google doc (anyone with link can download the save file) https://drive.google.com/file/d/1drOk6zvMGELtqe67dnJu3FKfa0WP5_RY/view?usp=sharing

To be clear, future tech is unlocked only once you complete the tech tree once, however, both I as a player and the AI can both continue researching future tech even when we lose a tech (only the AI never switches off the tech tree)

2022-04-23 18:16 Updated by: cazfi
Comentario

I downloaded the savegame, and attached it to this ticket, so we have a copy even if you remove it from google drive.

Seems to have been saved by freeciv version 2.6.5, with civ2civ3 ruleset in use.

2022-05-14 21:38 Updated by: cazfi
Comentario

Reply To cazfi

I downloaded the savegame, and attached it to this ticket, so we have a copy even if you remove it from google drive. Seems to have been saved by freeciv version 2.6.5, with civ2civ3 ruleset in use.

Also:
last_turn_change_time=228256

So reproducing things with this savegame might not be something to run while you grab a coffee. OTOH it makes this an interesting savegame, e.g., for testing performance differences between freeciv branches.

2022-05-14 21:51 Updated by: cazfi
Comentario

Reply To cazfi

The fact that one can even research Future Techs when there's unknown techs in the actual tree is most likely a bug in itself.

I hoped that resolving that part would sort also everything else, as losing ability to select future techs would cause all of the behavior to revert to normal regular tech research one. Unfortunately it's not that simple. So now I've split that one part to a new ticket -> #44592.

2022-05-14 22:14 Updated by: cazfi
Comentario

Split also #44594, not necessarily a cause for any of this, but confusing debugging attempts.

2022-05-17 12:29 Updated by: None
Comentario

Not sure if this is related to the core of the problem or not, and unfortunately, I no longer have a save game since the game saving format overrides older games with newer games, but it may be worth looking at Ticket #43847 if that wasn't already reviewed

2022-06-12 14:32 Updated by: cazfi
Comentario

More problems detected with the savegame split to a new ticket. "unused entry" -warnings -> #44809

Attachment File List

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Entrar