Page 1 of 1

[1.1.70][Switch] Desync copying blueprint book

Posted: Sat Nov 12, 2022 4:10 pm
by Mod_Than_Yon
Players connected: just me from both my PC and Switch
Activity at the time: Copying BP Book
Server is a privately hosted setup version is 1.1.70

Desync Reports
https://drive.google.com/file/d/1-DdyQm ... share_link

https://drive.google.com/file/d/1-Lqpus ... share_link

The only thing on the server is the BP book, we have it just for sharing the book with switch players in the community.

My PC will reconnect to the server after the issue just fine, however something happens where the switch version connects and downloads the map fine but gives "Cannot load downloaded map: std::bad_alloc"

I can fix the problem by reverting to an older version of the save file, no issues connecting then. Copying the BP book seems to be the trigger but I can't figure out how or why.

Re: [1.1.70] Desync copying blueprint book

Posted: Sat Nov 12, 2022 4:36 pm
by Loewchen
So all you need to do to cause the desync is to connect to the server and copy this blueprint book from the Game blueprints into My blueprints?
What is the name of the blueprint book that causes this?

Re: [1.1.70] Desync copying blueprint book

Posted: Sat Nov 12, 2022 4:41 pm
by Mod_Than_Yon
KoS Factorio Framework

I think it might be the size of the book, she included everything to make a 1000SPM base in there.

But if it can kill servers for switch players something might need to be done.

Re: [1.1.70] Desync copying blueprint book

Posted: Sat Nov 12, 2022 4:47 pm
by Loewchen
Again, is the only thing I need to do to cause the desync copy this blueprint book from the Game blueprints into My blueprints?

Re: [1.1.70] Desync copying blueprint book

Posted: Sat Nov 12, 2022 5:12 pm
by Mod_Than_Yon
Sorry, I missed answering that one. I was copying it the other way from my blueprints into the game blueprints so it could be shared.

Re: [1.1.70] Desync copying blueprint book

Posted: Sat Nov 12, 2022 5:39 pm
by Loewchen
Ok. The switch is simply running out of memory, not much you can do but reduce map size by deleting empty chunks via editor.

Re: [1.1.70] Desync copying blueprint book

Posted: Sat Nov 12, 2022 6:13 pm
by Mod_Than_Yon
We can cut the book into smaller parts I guess, the map is as small as I can make it.

Re: [1.1.70][Switch] Desync copying blueprint book

Posted: Fri Dec 02, 2022 3:21 pm
by Twinsen
The desync does not look to be related to Nintendo Switch. If I understand correctly, you desynced when connecting from a PC to the game hosted on PC, so it's unrelated to Nintendo Switch.

As for the std::bad_alloc, it's because each copy of the blueprint book is ~190MB in memory. Since every player connecting makes their own copy and stores it in their blueprint library and possibly their inventory, that's an extra 380MB per player. The save currently uses 1775MB, making it unloadable on Nintendo Switch. To solve this issue and shrink the save, you can delete disconnected players from the map using /admin.
But I don't advise Nintendo Switch players to add such a massive blueprint to their library as it's using up a significant portion of the available RAM.