Description
Newly constructed domes have 4x fertility rate for a predictable time
Windows
Steam
What is your game version?
1001586
Do you have Space Race installed?
Yes
Please explain your issue is in as much detail as possible.
Newly constructed domes update fertility every hour instead of every 4 hours. This problem lasts for an amount of time equal to 1/3 of the game time elapsed prior to the dome's construction. It is probably a serious contributor to the late-game birth rate issues that we all deal with--because we are building new domes at a frantic pace.
This issue was discovered while using ChoGGi's "Birth Progress" mod and watching the progress in real time.
I believe the reason is this: In the Dome.lua file, the variable next_birth_check_time is set to 0 when a dome is built. This variable is compared hourly to GameTime(). If GameTime() is larger than next_birth_check_time, then birth progress is added and next_birth_check_time is incremented by 4 hours. It takes some time for next_birth_check_time to catch up to GameTime() (in fact, 1/3 of the game time elapsed when the dome is built). During this catch-up time, the birth progress is added every hour, leading to the 4x fertility rate. Once next_birth_check_time catches up to GameTime(), birth progress is added every 4 hours as intended, and the fertility rate becomes "normal."
This bug may be fixed by setting next_birth_check_time to GameTime() when a dome is built, instead of 0.
Can you replicate the issue?
Yes. It's inherent to the game code. Just watch birth progress using ChoGGi's Birth Progress mod.
The save file attached shows a dome with accelerated fertility on Sol 16. If you watch, its fertility will return to normal sometime on Sol 18.
Attachments
File(s) attached
Newly constructed domes have 4x fertility rate for a predictable time
Windows
Steam
What is your game version?
1001586
Do you have Space Race installed?
Yes
Please explain your issue is in as much detail as possible.
Newly constructed domes update fertility every hour instead of every 4 hours. This problem lasts for an amount of time equal to 1/3 of the game time elapsed prior to the dome's construction. It is probably a serious contributor to the late-game birth rate issues that we all deal with--because we are building new domes at a frantic pace.
This issue was discovered while using ChoGGi's "Birth Progress" mod and watching the progress in real time.
I believe the reason is this: In the Dome.lua file, the variable next_birth_check_time is set to 0 when a dome is built. This variable is compared hourly to GameTime(). If GameTime() is larger than next_birth_check_time, then birth progress is added and next_birth_check_time is incremented by 4 hours. It takes some time for next_birth_check_time to catch up to GameTime() (in fact, 1/3 of the game time elapsed when the dome is built). During this catch-up time, the birth progress is added every hour, leading to the 4x fertility rate. Once next_birth_check_time catches up to GameTime(), birth progress is added every 4 hours as intended, and the fertility rate becomes "normal."
This bug may be fixed by setting next_birth_check_time to GameTime() when a dome is built, instead of 0.
Can you replicate the issue?
Yes. It's inherent to the game code. Just watch birth progress using ChoGGi's Birth Progress mod.
The save file attached shows a dome with accelerated fertility on Sol 16. If you watch, its fertility will return to normal sometime on Sol 18.
Attachments
File(s) attached
Attachments
- 2