On 02.11.2012 12:28, Michael T. Pope wrote:
> On Thu, 1 Nov 2012 08:39:19 PM Michael Vehrs wrote:
>    
>> Well, we could easily avoid changing the savegame format. That would
>> require encoding the river style on every map load, however.
>>      
> Good to have that option at least, as long as it is not too slow.  With regard
> to save game breaking, if we do decide it needs to change, then the next
> release should not be 0.10.6, but either 0.11.0 or 1.0.  I am way behind where
> I hoped to be on 1.0 feature development (the AI hackery is at last
> stabilizing, but it took way too long:-P), so the latter is now IMHO doubtful.
>
> I have now looked at the disappearing-settlement problem again, and that is
> not 0.10.x material as I think it it is incompatible with some of our 0.9.x
> backwards compatibility code.  My plan is to cache a copy of the settlement in
> the PlayerExploredTile, but that is likely to be really destabilizing as there
> are a whole new class of interesting cases available once that happens
> (references to dead players is an amusing example).  So, if we want to get a
> release out soon, fixing disappearing settlements can wait.
>
> Cheers,
> Mike Pope
>    

I'm not sure how slow it would be, but since it only affects river 
tiles, it should not be too bad. Since we use the river style for two 
distinct purposes, namely to determine river connectivity and to select 
an appropriate river image, I propose upgrading the river style (more 
precisely the tile improvement style) to a full class. It should cache 
the string used to look up the river image as a human-readable string 
(e.g. 0201, meaning NE: no river, SE: major river, SW: no river, NW: 
minor river), and should also cache connectivity. The string could be 
written to the save game, and could be distinguished from the old style 
easily. However, the connectivity information should also be cached as a 
human-readable string (e.g. 0101 for the above example), in order to 
select the appropriate forest tile.

What do you think?


Regards

Michael



------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Freecol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freecol-developers

Reply via email to