Setting dates

That would work, thanks. It's odd to have it be off like that, though. :confused:

I'm guessing they just came up with a convenient equation to convert between dates and turns and just went with that, not thinking anyone would care enough about exactly what month was shown. I wrote a 'calendar' module in Lua a while back, and found that dates in year 0 are weird. Most of the months are repeated twice, and in one case December goes right to February. (I addressed this by simply not allowing conversions from year 0 into turns.) My code doesn't have a very simple conversion, but that is probably because I specified January as the 1st month of a year, rather than the 0th month of the year.

Code:
        -- The game seems to use this system of months
        --
        -- month_num    month   year
        --
        --
        --  13  Jan 1
        --  12  Dec 0
        --  11  Nov 0
        --  10 Oct 0
        --  9
        --  8
        --  7
        --  6
        --  5
        --  4
        --  3   Mar 0
        --  2   Feb 0           Note that January is skipped
        --  1   Dec 0
        --  0   Nov 0           Note: can't set this as starting year
        --  -1  Oct 0
        --  -2  Sep 0   
        --  -3
        --  -4
        --  -5
        --  -6
        --  -7
        --  -8
        --  -9  Feb 0
        --  -10 Jan 0
        --  -11 Dec 1
        --  -12 Nov 1
        --
        --  Convert the query month to the above system,
        --  base month is just the startingYear

Did TNO make a utility program sometime, or is it just my imagination?

Lua can be used to access the starting year and year increment (one of these can be changed, the other only checked), but doesn't offer anything that isn't in the cheat menu as far as I am aware. I never paid much attention to Civitas, so maybe there is something there that you are thinking of.
 
Top Bottom