Calendar Mod

User avatar
YWFMS2351
Posts: 174
Joined: Sun May 17, 2020 9:45 am

Calendar Mod

Post by YWFMS2351 »

I know seasons lists the day of the season. Is there a way to have it list the year (ie: year 1, 2, 3, etc)?
PC
User avatar
theSeb
Posts: 1517
Joined: Tue Mar 07, 2017 8:16 pm

Re: Calendar Mod

Post by theSeb »

Not without adding some lines of lua code into the mod. Initially in the 17 versions we did show the year in the gui, but in the end decided to remove it before the mod was released, because we could not agree how to show it and it looked weird in the HUD. The code for working it out is still within the bowels of the mod, so you could change the GUI to add the year in SeasonsUI.lua.

This code is very rudimentary though, since it's not used anywhere in the mod. If you change the days in season back and forth you could move back and forth in years. The reason for that is the game itself stores the concept of "current day". We use that to work out what season and what period it is based on the player's setting for days in season. If we really wanted to show the year I suppose the best thing to do would be not rely on current day and days in season, but instead increment the variable by one every time the player went from period 12 --> 1. That way, even if they are mucking about with the days in season, the year would stay true and make sense.
Post Reply