The integration of Local Storage and Steam Cloud is not functioning correctly?

Not favoritedFavorited Favorited 0 favourites
  • 5 posts
From the Asset Store
"Easy Local Notifications" enhances games with customizable local notifications.
  • Hi again,

    I use a dictionary & local storage for saving game progress. I am not sure if everything works as they are intended to work.

    Scenario A: My main PC

    I delete the contents of the leveldb folder to test the Steam Cloud. When I relaunch my game from Steam, Steam Cloud syncs, and the contents are back. As they are supposed to be. Marshals are unlocked with stage progression at 107.

    Scenario B: My old PC

    I switch to my old PC. I start Steam and launch my game. Cloud syncs, but the game progression is different. Most Marshals are locked, with stage progression at 02. I only completed one stage on this computer.

    So my question is, isn't Steam Cloud supposed to be global? Like, when I switch to my old PC, the newer save file from the main PC should override the old save file?

    Or is this normal? If it's not normal, how can I fix this?

    PS: I export my game as WebView2.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi. This is not relevant to the case but may simplify development. Why are you storing each individual line of the dictionary in its own local storage cell, maybe it would be easier to store the entire dictionary at once?

    Using other platforms for synchronization saved such as cloud or own servers, I came to the conclusion that it is better to use one json in which the dictionary or array is stored.

  • Thank you, igortyhon.

    The simple answer to your question is I don't know how to use JSON. That's why every dictionary key is saved separately to local storage. It works, but it is not elegant or optimized.

    I would prefer a simpler and better approach, as you advised. I tried this, but it's not working. Obviously I am doing something wrong here.

  • There is actually no work with JSON, we just use it as an intermediate data format.

    Everything looks good, the only thing you should pay attention to is that some actions take time, I marked them in green. And always check in the inspector what is written to the storage.

  • I fixed this. THANK YOU!

    Time was not the problem here, I think. Since game load happens in the 1st layout, and it stays on screen more than 3 seconds.

    This was the problem, it seems:

    This works:

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)