[1.1.87] Freeze at specific time

This subforum contains all the issues which we already resolved.
daisukehanako
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Jul 19, 2023 5:14 am
Contact:

[1.1.87] Freeze at specific time

Post by daisukehanako »

Always freeze at the same timing.
171799-20:28

Deleting the mod makes no difference.
Attachments
Factorio save data.zip
save data
(57.92 MiB) Downloaded 147 times
factorio-current.log
log file
(8.51 KiB) Downloaded 118 times
mod
mod
Factorio - mod version.jpg (97.98 KiB) Viewed 46922 times
situation
situation
Factorio - situation.jpg (709.09 KiB) Viewed 46922 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3054
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Always freeze at the same timing.

Post by boskid »

Congratulations, you have reached a max tick value of a given save file. We never assumed a single save file would be played long enough to overflow a uint32_t tick counter and your save file is basically at that tick.

The primary reason for this freeze is a transport belts remerge logic which schedules belts remerges to some future tick but due to the overflow the value lands on a tick that is way smaller than current tick causing such line to be remerged again, new tick again is way smaller than current tick and the cycle repeats without moving forward. I was experimenting with fixing this specific bit of logic but then i saw chunks fog of war started behaving incorrectly, output console was also working incorrectly and at some point all biters on the map started pathfinding. Given this issue happens due to unusual use case (in all cases i saw tick overflow it was due to dedicated server running a save file without pause when no players are present, or due to game speed set way higher than normal) that is only affecting a few people i am considering this to be a minor issue.

In order to fix this once and for all i would have to increase a MapTick to become uint64_t which would be affecting literally everyone by increasing save file sizes slightly and by increasing memory usage. I never did any measurements how many MapTicks are saved in a single save file so i do not want doing that. There is also modding backward compatibility i would have to take into consideration, because in some cases a MAX_TICK value may be leaking to a lua and by changing MapTick to become uint64_t, such MAX_TICK value would change and its not possible in lua to represent all tick values because lua uses double's which are able to represent integers up to 2^53.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14356
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.87] Freeze at specific time

Post by Rseding91 »

The next question is: did you actually play for 828.5 real world days or did you enable "don't auto-pause" and leave it running on a server while ignoring it?
If you want to get ahold of me I'm almost always on Discord.
daisukehanako
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Jul 19, 2023 5:14 am
Contact:

Re: [1.1.87] Freeze at specific time

Post by daisukehanako »

Both.
I want to do infinite research, but I can't stay at home all the time.
My computer was running all the time except when I was sleeping.
However, the electricity bill did not rise as much as I was worried about.

It would be helpful if you could let me know if you have a solution.
If there is no personal solution, I will start over.
So please don't worry.

By the way, this is google translation.
from japan.

thx
Rseding91
Factorio Staff
Factorio Staff
Posts: 14356
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.87] Freeze at specific time

Post by Rseding91 »

One possible option is to make a new map; switch to the map editor (/editor), and in the "surface editor" import the existing save file as a new surface. Then you can play that surface in the new save.
If you want to get ahold of me I'm almost always on Discord.
daisukehanako
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Jul 19, 2023 5:14 am
Contact:

Re: [1.1.87] Freeze at specific time

Post by daisukehanako »

Research is back to the beginning, but the factory is in a state where rockets can be launched.
There is another me.
There are some strange points, but let's try playing in this environment.

thx:->
Brambor
Fast Inserter
Fast Inserter
Posts: 189
Joined: Thu May 07, 2015 1:52 pm
Contact:

Re: [1.1.87] Freeze at specific time

Post by Brambor »

According to last FFF https://factorio.com/blog/post/fff-388, this will be solved for 2.0 coming out with the expansion in about a year or so.
Gemma
Inserter
Inserter
Posts: 30
Joined: Sat Aug 10, 2019 5:11 am
Contact:

Re: [1.1.87] Freeze at specific time

Post by Gemma »

daisukehanako wrote: Thu Jul 20, 2023 5:41 am Research is back to the beginning, but the factory is in a state where rockets can be launched.
There is another me.
There are some strange points, but let's try playing in this environment.
I just want to say this post is like poetry.
Also it takes me back to outer wilds.
User avatar
spiral_power
Fast Inserter
Fast Inserter
Posts: 180
Joined: Wed Oct 30, 2019 5:17 am
Contact:

Re: [1.1.87] Freeze at specific time

Post by spiral_power »

I am one of those who tried to overcome this issue.
My save continues to operate mostly normally in a post-overflow world, although there are still radar issues.
viewtopic.php?f=7&t=104329
Disel0k
Manual Inserter
Manual Inserter
Posts: 1
Joined: Tue Dec 12, 2023 9:18 pm
Contact:

Re: [1.1.87] Freeze at specific time

Post by Disel0k »

The maximum integer value that a double can represent with full accuracy is 2^52, or 2.37 million years' worth of ticks.
Can you imagine the disappointment that would befall the first player whose game froze 2.37 million years later? This is not fast two years Factorio speedrun...


P.S. Sorry for my google-english
User avatar
Twisted_Code
Long Handed Inserter
Long Handed Inserter
Posts: 91
Joined: Sat Jun 06, 2015 1:15 am
Contact:

Re: [1.1.87] Freeze at specific time

Post by Twisted_Code »

Disel0k wrote: Tue Dec 12, 2023 9:31 pm
The maximum integer value that a double can represent with full accuracy is 2^52, or 2.37 million years' worth of ticks.
Can you imagine the disappointment that would befall the first player whose game froze 2.37 million years later? This is not fast two years Factorio speedrun...


P.S. Sorry for my google-english
I'll be quite impressed if someone manages to do that while I'm still alive. I'm not sure how that would happen though. Perhaps it could happen by overclocking the game by a factor of 100,000, or accidentally breaking it with a mod that messes with time? Or maybe we will discover immortality.

PS: Regarding your English, the first sentence is fine. For your second sentence, I'm unsure what you meant. Can you try wording it differently before translation?
How to report bugs effectively (archived version)because everyone should know this.
The game's tech tree, a visual reference guide.
Speedy
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Jan 16, 2024 4:16 pm
Contact:

Re: [1.1.87] Freeze at specific time

Post by Speedy »

I just realized that I'm going to hit this limit pretty soon... Rather than try to build a 10k SPM base that runs at 60 UPS, I've built up a 1.35k SPM base (half a lane of a blue belt of each science pack) that runs at the highest UPS I can manage. I've gotten it stable at roughly 600 UPS.

I leave it running 24/7, so I can crank out more than 10k science per real-time minute. Recently completed artillery range 15, for a cost of 64 million science. Mining productivity is up around level 400.

I find this easier than building a monster hyper-optimized megabase, and the high speed is kind of satisfying in itself. New construction orders are carried out so quickly!

But I've been running this factory for a couple of months now. If the maximum tick limit is 2.2 years, and I'm running my factory at 10x speed, that means I'm going to run into a wall after only 2.64 months! Noooooo! I have plans to implement some better optimizations, and maybe try expanding to 2.7k science per 60 ticks, and see if I can get that to stay above 300 UPS.

Any chance this issue will be patched in a release prior to the full expansion?
User avatar
spiral_power
Fast Inserter
Fast Inserter
Posts: 180
Joined: Wed Oct 30, 2019 5:17 am
Contact:

Re: [1.1.87] Freeze at specific time

Post by spiral_power »

As I wrote above, with ingenuity, it is possible to play beyond the limits of the current version.
The difficulty will increase if numerous mods are used. I have successfully pushed the limits with bob, but may not do it with SE.
Post Reply

Return to “Resolved Problems and Bugs”