Author Topic: Day/night cycles - a constant frustration  (Read 2422 times)

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Day/night cycles - a constant frustration
« on: January 10, 2007, 10:23:54 AM »
This has never worked correctly. Maybe I'm the only one that cares about this feature.
Here's a sim. When you load this it will be at 2840000 cycles. Day/night is set to 10000 cycles, which mean it should turn to day when you load this, but it doesn't. This time it seems it has stopped working completely. It used to be just inaccurate. Also SOMETIMES if you go into the ui and make some changes and click 'Change' it will change from moon to sun if the moon was up, starting it from the 'beginning' so to speak. I have pointed that out many times and this is the last time I say it. Also you can't set day/night cycles to more than 10000, that will screw it up too. Whould love to see this fixed sometime.  
« Last Edit: January 10, 2007, 10:25:15 AM by Testlund »
The internet is corrupt and controlled by criminally minded people.

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Day/night cycles - a constant frustration
« Reply #1 on: January 10, 2007, 12:51:59 PM »
In the sim you posted, you have 3931 cycles left until the sun comes up.  Day/night cycles start on the cycle you change them.  Thus, if you set the day length to 1000 on cycle 313, the sun won't go down until cycle 1313 and won't come up again until cycle 2313 (assuming you arn't using nrg limits).  (Note that the bug mentioned at the bottom of this post may be messing you up and reseting the day cycle counter so that sunrise/sunset occur on cycles other than what you expect.)  

The max length of the day is 32000 cycles, not 10000.  This is a function of the way the day length is stored internally.  I have pointed this out before but this is the first time I have heard a request for allowing longer days.  Doing so is not exceptionally difficult, but would entail changes to several variables (making them longs instead of ints) and require some special code (and testing) to handle backwards compatability for sim files since the old varables would no longer be used.   If you really really want days longer than 64000 cycles total (32000 cycles of daylight followed by 32000 cycles of dark) then please post a request in the suggestions folder so I can track it.  I may not get to it in 2.43, but it will happen eventually.

The issue with opening the options dialog resetting the day cycle counter is a bug.  I will fix that for 2.43.
Many beers....