Tíquete #43161

Savegame bulb loss bug

: 2021-11-04 10:34 Última Atualização: 2021-11-11 01:22

Relator:
Dono:
Tipo:
Estado:
Fechado
Componente:
Marcos:
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
1

Details

When server setting multiresearch is enabled, reloading a save game will make players who just discovered a tech but did not select the next tech, lose their bulbs when they select their next tech.

Blamed: presearch->got_tech_multi is not being saved in savegame.

When I added it by copy pasting the same lines for the very similar bool, presearch->got_tech ... it created save game incompatibility and old save games wouldn't load However, Sveinung helped me use secfile_lookup_bool_default to work around this issue. Specifically,

/* BREAKS SAVE compatibility: */

sg_failure_ret(secfile_lookup_bool(loading->file,

&presearch->got_tech_multi, "research.r%d.got_tech_multi", i),
"%s", secfile_error()); BREAKS SAVECOMPAT */

/* WORKS */

presearch->got_tech_multi = secfile_lookup_bool_default(loading->file, FALSE,
"research.r%d.got_tech_multi", i);

Ticket History (3/4 Histories)

2021-11-04 10:34 Updated by: lexxie9952
  • New Ticket "Savegame bulb loss bug" created
2021-11-05 01:53 Updated by: cazfi
  • Resolução Update from Nenhum to Accepted
  • Marco Update from (Nenhum) to 3.0.0 (fechado)
  • Componente Update from (Nenhum) to Server
2021-11-11 01:22 Updated by: cazfi
  • Estado Update from Aberto to Fechado
  • Dono Update from (Nenhum) to cazfi
  • Resolução Update from Accepted to Fixed

Editar

Please login to add comment to this ticket » Login