Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2002:
[Freeciv-Dev] new generalized calendars
Home

[Freeciv-Dev] new generalized calendars

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv-Dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] new generalized calendars
From: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 25 Aug 2002 14:43:32 -0500

as promised, here is the new patch along with a couple of alternate
game.rulesets so it can strut its stuff.

Problems:
o endyear as an option is ignored
o saving and loading dates from games is iffy. there's a year only hack
  there now.
o spaceship display is broken. should be converted to turns.
o all sorts of references to years are still left everywhere. Raimar's
  patch has a bunch of cleanup of these. I hope that he'll fold those
  changes into this patch.
o we probably need a "short_date" function, but that'll need alternate
  formats. :(

Good news:

to operate: best way to do this is:

% cd freeciv; mkdir rdir; cp game.ruleset-foo rdir/game.ruleset;
% ser
> rulesetdir ../rdir

Just to annoy Raimar, who used this example, game.ruleset-foo starts the
game with the date:

"45 years after the death of King Foo in the Third Age"

so we can be quite flexible.

in data/default/game.ruleset is the documentation for the calendar.
Please try and break it. I'm sure there are bugs.

Unfortunately there is a cheat. Certain freeciv rules (like the
spaceship parts) are hardcoded. It ain't _that_ flexible. You can read
all about that in the "builtins" section. Note that this is still a far
cry from Raimar's lets hardcode everything approach, so I don't feel too
bad.

-mike

Attachment: game.ruleset-season
Description: Text document

Attachment: game.ruleset-foo
Description: Text document

Attachment: game.ruleset-gregorian
Description: Text document

Attachment: newcal1.diff.gz
Description: application/gunzip


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