patchFreeciv - Patches: patch #3458, Bases & roads (&...

 
 
Show feedback again

patch #3458: Bases & roads (& specials?) to same vector in savegames

Submitted by:  Marko Lindqvist <cazfi>
Submitted on:  Sun 29 Jul 2012 04:08:42 PM UTC  
 
Category: generalPriority: 5 - Normal
Status: Wont DoPrivacy: Public
Assigned to: Marko Lindqvist <cazfi>Open/Closed: Closed
Planned Release: 2.5.0

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 11 Jul 2013 09:03:57 PM UTC, comment #2:

Extras implementation is now in patch #3971. As 2.5 savegame format is not yet frozen, we could change it to match that if we want to avoid different format in just 2.5.

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Mon 18 Feb 2013 03:47:53 PM UTC, comment #1:

> If done before current roads saving format gets in to official
> release


Then again, it would mean wasting time on temporary implementation to be soon replaced with real (tile) extras implementation. One option would be to start working on extras implementation before 2.5 just enough to make this saveformat part covered, but I rather let current model to stabilize to 2.5 than open it at this point.

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Sun 29 Jul 2012 04:08:42 PM UTC, original submission:

We currently save separate specials, bases, and specials maps. As each character in savegame represent 4 specials/bases/roads, there can be wasted capacity up to 3*3 = 9 bits (last character of each of specials/bases/roads having just 1 meaningless bit) when number of specials/bases/roads is not divisible by 4. If we saved them all together, there would be only one "last" character, so wasted capacity would be 3 bits at max, meaning smaller savegames.

If done before current roads saving format gets in to official release, and done right (the way they are going to be arranged in the future), we could save future headaches of savegame backward compatibility with one more different format.

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by cazfi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 08 Nov 2013 12:00:21 AM UTCcazfiStatusNone=>Wont Do
      Assigned toNone=>cazfi
      Open/ClosedOpen=>Closed
      Planned Release2.6.0=>2.5.0
    Mon 18 Feb 2013 03:47:53 PM UTCcazfiPlanned Release=>2.6.0
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup