Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2003:
[Freeciv-Dev] Re: info in savegames [Was Re: non-existent technologies]
Home

[Freeciv-Dev] Re: info in savegames [Was Re: non-existent technologies]

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: info in savegames [Was Re: non-existent technologies]
From: Christian Knoke <chrisk@xxxxxxxx>
Date: Mon, 3 Feb 2003 11:56:14 +0100

On Sat, Feb 01, 2003 at 12:37:40PM -0500, Jason Dorje Short wrote:
> Mike Kaufman wrote:
> >On Sat, Feb 01, 2003 at 12:21:19PM +0000, Per I. Mathisen wrote:
> >>On Sat, 1 Feb 2003, Christian Knoke wrote:
> >>
> >>>- Use XML for savegames (and probably everything else). You can keep
> >>>the map save format intact with XML.
> 
> How, exactly?

I can't tell you *exactly*, but we need to use a library for the XML
parser. It might look like this:

<game version="11401">
  <options>
    <gold>50</gold>
    <tech>0</tech>
...
  </options>
...
  <map>
    <width>40</width>
...
    <picture>
      <line no="1">atatataaaaaaaaaaaaaaaaattaaaaaaaaaaaaaaa</line>
      <line no="2">         a    a      t              t   </line>
...
    </picture>
...
  </map>
</game>
    
Christian

-- 
Christian Knoke     * * *      http://www.enter.de/~c.knoke/
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.


[Prev in Thread] Current Thread [Next in Thread]