bitburner-official / bitburner-src

Bitburner source code.
Other
843 stars 273 forks source link

Infinite loading when date is too far in the past #1629

Closed kibogdan closed 2 months ago

kibogdan commented 3 months ago

bitburnerSave_777811909_BN1x1.json.gz

I changed the date on the pc to 1994, trying to get an achievement, and got an infinite loading this save file causes the same problem in the web version

Bitburner v2.6.2 (216bf616)

image

catloversg commented 3 months ago

When you set your machine's current date back too far, the offline time is too long. When we load a save file, we will calculate the offline time and generate coding contracts based on it. In this case, the game is trying to generate ~390e3 contracts. That's why it freezes. I'll change how we calculate the number of "bonus" contracts to fix this problem.

In the meantime, you should load your backup. If you don't have any backup, I can edit your save file to "rollback" your change of time.

d0sboots commented 3 months ago

Thanks for the analysis, I knew it had to be some offline-time calculation but most things just add bonus time. I guess we might need bonus time for contracts too...

kibogdan commented 3 months ago

I don't have any backup( @catloversg, could you help me? (thank you in advance)

catloversg commented 3 months ago

Here you are. bitburnerSave_1724667347_BN1x1.json.gz

kibogdan commented 3 months ago

I've tried to load from file and it doesn't help me. I have a screen recording that shows this https://drive.google.com/file/d/1b1cQ-RIezeAm4ILyjrMwT121sIs98UNf/view?usp=drive_link

catloversg commented 3 months ago

Your link is protected. You can upload it here (GitHub).

kibogdan commented 3 months ago

I can't uploaad it here 'cause it's too big(224mb 2:50) I've opened the link

catloversg commented 3 months ago

Your screen recording shows that Steam cannot launch the game. It has nothing to do with the save.

kibogdan commented 3 months ago

I've tried your safe file in web version, and it isn't working (same problem)

catloversg commented 3 months ago

I just loaded it, and it worked. I need more information than "it isn't working".

kibogdan commented 3 months ago

I'm sorry. I've upload it to web version which had the same problem (in another browser it worked)

catloversg commented 3 months ago

In that case, you can try to clear the data of the browser that you imported the problematic save file. You can search "'browser name' clear data for one site". For the Steam version of Bitburner, you can try my steps.

kibogdan commented 3 months ago

It worked!!!!!!!! Thank you so much)

d0sboots commented 2 months ago

Reopening this as it's still a generally relevant issue, and this is the bug with the most info