Ticket #46499

Savegame: Stop saving zero counters lists

Eröffnet am: 2023-01-10 05:50 Letztes Update: 2023-03-16 14:58

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
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-Verlauf (3/6 Historien)

2023-01-10 05:50 Aktualisiert von: cazfi
  • New Ticket "Savegame: Stop saving zero counters lists" created
2023-02-20 11:19 Aktualisiert von: cazfi
Kommentar

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 Aktualisiert von: lachu
Kommentar

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 Aktualisiert von: cazfi
  • Verantwortlicher Update from (Keine) to cazfi
  • Lösung Update from Keine to Accepted
2023-03-16 14:58 Aktualisiert von: cazfi
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Dateianhangliste

Bearbeiten

Please login to add comment to this ticket » Anmelden