Can't save or load game after deployment

● ARCHIVED · READ-ONLY
Started by Tinkerer 4 posts View original ↗
  1. Hi,

    After deploying my game for OSX or webbrowser the game refuses to save. Nor will it notice any of save files I copy into the 'save' folder.
    Before deployment (during game testing) I can save and load games without any problems.

    If I deploy for Windows I can likewise save and load games to my heart's content. However once I package it into an .exe container using Enigma Virtual box, I once again can't save or load games. I did discover a trick to circumvent the problem in this case by creating a 'www' folder containing a 'save' subfolder, next to my .exe file (the container created by Enigma).

    Sadly creating a 'www' folder and 'save' subfolder for the OSX and browser version did not fix the save issue. Is there any way of checking the path used for savegames in a deployed version of the game?

    Has anyone experienced a similar problem?
  2. I ran into this but only needed it to run on Windows so the www folder did the trick. Not sure how to get the web and Mac deployments to work.
  3. Browser games store the save files in localStorage. So if you're using incognito/private as SeaPhoenix said, or a different browser, the save files won't transfer.

    How are you deploying the browser version, to your own website?

    Some website hosting services may deploy the game into an iFrame that doesn't have access to the local storage.