kegsmr/sc4mp-client

Allow client to automatically download new saves

Opened this issue · 1 comments

I found it cumbersome to constantly navigate to 'Refresh Region' whenever I needed to synchronize my local region copy with the server, especially when hosting a LAN game with frequent changes.

It would be beneficial to introduce an automatic sync feature, where the server can push new saves to the client or notify the client when a new save is available for automatic retrieval. Users should be able to enable or disable this feature in the settings menu.

Hi, thanks for the suggestion.

When I was designing the region refreshing system, I initially did want it to be done automatically. Unfortunately, new savegames cannot be added to a region in SC4 while said region is open. That is because the region is loaded into memory. The region view will only show the copy of the region that has been loaded into memory.

And to make things worse, if you add a new savegame to a region while it's open, when you reload the region, SC4 will automatically delete any savegames that don't match the checksum of the previous savegames in the same coordinates.

All this makes it so that the current system seems to be the only one that works. I would love to have regions that automatically refresh though, so if there's any way someone can figure this out, that would be amazing. So I'll leave your ticket up, and hopefully one day we can have regions that automatically refresh...