[Freeciv-tickets] [freeciv] #41117: Savegame handling for counters

Back to archive index
OSDN Ticket System norep****@osdn*****
Mon Nov 29 21:57:06 JST 2021


#41117: Savegame handling for counters

  Open Date: 2021-01-08 06:00
Last Update: 2021-11-29 21:57

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/41117
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=41117

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2021-11-29 21:57 Updated by: lachu

Comment:

Reply To cazfi
You should save counter names to the order vector, not ids. If the counters get reordered, ids that anyway get assigned in order from 0 to MAX would not refer to the same counter as before.
I think we save entire ruleset, so the each-counter-related information too.  Counter should not change order during gamplay, if freeciv save ruleset.

---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: (None)
          Type: Patches
        Status: Open
      Priority: 5 - Medium
     MileStone: 3.2.0
     Component: General
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

Save and load counter information. This require saving the order (counters_order), and the city counter values. It might make sense to save city_counters_order instead of order of global counters list - this is to be decided.
Should also save boolean indicator that the freeciv revision doing the saving has hardcoded_counters. There's no need to read it yet, but it's there in the savegame for the benefit of the future freeciv revisions loading it.

-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/41117
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=41117



More information about the Freeciv-tickets mailing list
Back to archive index