Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2002:
[Freeciv-Dev] Re: [FreeCiv-Cvs] per: Adding generalised calendar. Calend
Home

[Freeciv-Dev] Re: [FreeCiv-Cvs] per: Adding generalised calendar. Calend

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv-dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [FreeCiv-Cvs] per: Adding generalised calendar. Calendars can now ... (PR#1964)
From: Christian Knoke <chrisk@xxxxxxxx>
Date: Fri, 23 Aug 2002 21:39:21 +0200

On Fri, Aug 23, 2002 at 08:12:20PM +0100, Ben Webb wrote:
> On Fri, Aug 23, 2002 at 08:59:29PM +0200, Christian Knoke wrote:
> > It looks silly for me. What about the following calendar instead
> > (not tested):
> > 
> > [calendar_ancient_age]
> > name                   = _("Ancient Age")
> > first_year             = -1000
> > turn_years             = 25
> > req_tech               = "None"
> > early_tech             = "None"
> > ; 1000BC - 1AD = 40 turns, 100 cumulative
> > 
> > [calendar_new_era]
> > name                   = _("Turn of the Era")
> > first_year             = 1
> > turn_years             = 19
> > req_tech               = "None"
> > early_tech             = "None"
> > ; 1AD - 20AD = 1 turn, 101 cumulative
> 
>       Yeah, that should work. You may be able to guess that I was one
> of those people that spent all of the year 2000 yelling at people that
> it wasn't the new millennium yet. ;)

:-)

> 
> > > > When I continue an old game, it shows rubbish.
> > > What kind of rubbish?
> > (0 yr/turn)
> 
>       Well, that's a bug, in that case. If you can provide a savegame,
> I'll take a look at it.

The bug is in the code ;) :

mapview.c:382
  my_snprintf(buffer, sizeof(buffer),
              _("Population: %s\nYear: %s\n%s (%d yr/turn)\n"
                "Gold %d\nTax: %d Lux: %d Sci: %d"),
              population_to_text(civ_population(game.player_ptr)),
              textyear(game.year), cal->name, cal->turn_years,
              game.player_ptr->economic.gold,
              game.player_ptr->economic.tax,
              game.player_ptr->economic.luxury,
              game.player_ptr->economic.science);

But I'll send you a savegame PM anyway.

> > Also, maybe you can use plural i18n to allow proper localization?
> 
>       That shouldn't be too tricky to do (it'd be a waste of time if
> it's not displayed anywhere, though!)

Oh, it should be displayed, but I think the popup that you get
when you click on the turns display is the right place for the details.
If you're eager to have it in front, just put the calendar_name below
(or next to, will that fit? ) the year info.

Christian

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


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