Offline progression not calculating Advanced Automation

Issue #139 resolved
Former user created an issue

I built a calculator for steamworks, and I was quite puzzled that I was receiving half of what I had projected to get every night. I did some verification that I was meeting my production breakpoints to get two cycles/year, then started digging into the code. My theory is that Advanced Automation is accounted for in calendar.OnNewSeason(), which is likely not being called in the redshift calculations.

Comments (6)

  1. transpondster

    I think It's because in offline progression, only half resources are produced by design or bug:

    this.game.rate * daysOffset

    game.rate gives only second, while day is 2 seconds

  2. Arima B. repo owner

    Fix #139

    Given that the log message says “You have regained N days of production” but actually only N/2 days (= N seconds) are regained, I don't think that the halved progression was intended If it is intended, then the log message must be fixed instead

    → <<cset b87fa003ee89>>

  3. Ethaniel Kavelaars

    AAAAAAAHHH!!! I fixed all missing coefficients 2 except the most obvious one in game (but the less obvious one in code), namely resource production. =_= The fix (for the other coefficients) was so obvious that I didn't even bother to test, silly me. ===___=== (Don't worry, all my other commits were tested before being pushed.)

  4. Log in to comment