Complete.Org:
Mailing Lists:
Archives:
freeciv-dev:
August 2002: [Freeciv-Dev] new generalized calendars |
[Freeciv-Dev] new generalized calendars[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
game.ruleset-season
game.ruleset-foo
game.ruleset-gregorian
newcal1.diff.gz
|