Incidencia #46499

Savegame: Stop saving zero counters lists

Abrir Fecha: 2023-01-10 05:50 Última actualización: 2023-03-16 14:58

Informador:
Propietario:
Tipo:
Estado:
Cerrado
Componente:
Hito:
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Fixed
Fichero:
1

Details

With current rulesets, with no counters defined, savegames still contain:

--

[counters]
c0=128
c1=127
c2=125
c3=131
c4=130
c5=126
c6=132
c7=129

--

Maybe we should omit saving those "lists" of counter values, when there's zero counters to save? That first element (present even with zero-lenght lists) is the city id, for which the list applies to.

Ticket History (3/6 Histories)

2023-01-10 05:50 Updated by: cazfi
  • New Ticket "Savegame: Stop saving zero counters lists" created
2023-02-20 11:19 Updated by: cazfi
Comentario

Verbose logging also gives an error related to this: "4: Warning: calloc with size 0 at line 2662 of ../../../src/server/savegame/savegame3.c"

2023-02-27 02:43 Updated by: lachu
Comentario

Reply To cazfi

Verbose logging also gives an error related to this: "4: Warning: calloc with size 0 at line 2662 of ../../../src/server/savegame/savegame3.c"

2023-02-27 02:43 Updated by: lachu

File 0001-OSDN-TICKET-46499-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 11730) is attached

I think it was done.

2023-03-11 19:38 Updated by: cazfi
  • Propietario Update from (Ninguno) to cazfi
  • Resolución Update from Ninguno to Accepted
2023-03-16 14:58 Updated by: cazfi
  • Estado Update from Open to Cerrado
  • Resolución Update from Accepted to Fixed

Attachment File List

Editar

Please login to add comment to this ticket » Entrar