How do I support saved data in my game in a way that will work on webview 2 and linux exports?

Not favoritedFavorited Favorited 0 favourites
  • 5 posts
From the Asset Store
Controller Support ,TouchScreen Support , Keyboard Support , Action Platformer, Lots of Animations
  • My Webview 2 export of our game DaemonClaw fails to recognize gamepad and button input on Steamdeck, and no sound plays, so I experimented with making a separate export specifically for Linus, and that solves the sound and gamepad input issues, however all of the code and functionality around game data saving, including allowing the player to save custom input settings for keyboard and gamepad no longer work, so it's failing to load the save data on Linux.

    Currently the game is using the dictionary and local storage extensions for the save data.

    Any idea what I need to do or use to make this work on Linux?

    Thanks.

  • Local Storage should still work the same in a Linux CEF export. It won't however share data with an export of a different type like Windows WebView2 - although last I checked, Windows WebView2 didn't work on Steam Deck - does it work now? Perhaps they've improved the emulation.

    You might also want to consider using File System. Files saved to the system will naturally also be shared between any export option.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for getting back to me Ashley.

    - When you turn on photon hotfix or experimental in the Steam settings for the game, then it runs, BUT currently with no sound and with no recognition of the gampad, analogue sticks, or any of the billion buttons on the steam deck.

    - I do not need to share data saved from the webview2 version and the Linux version, I just need the Linux version to successfully load and save the game data, which it currently does not, when exported specifically for Linux.

    here's what I'm doing at the beginning of the first layout of the game. Which works on every platform I've tried except Linux.

    I also use Ajax and Dictionary.

  • ASHLEY. Does anything in these screenshots stand out as the issue why my game settings data is failing to load when exported for Linux? I won't be able to properly support Steam Deck customers until I manage to resolve this issue and I'm stumped.

    Thanks.

  • In general I can't easily tell from just screenshots - it's best to share a sample project. In this case if the same logic works OK on other platforms, then it would be best to file an issue following the guidelines. In the mean time you may be able to work around it if it is a bug by using File System instead of Local Storage.

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