Error saving when exporting game

Not favoritedFavorited Favorited 0 favourites
From the Asset Store
7 Errors
$15 USD
7 Errors is a game where you have to find the 7 mistakes before time runs out. Can you find all 7? Have fun looking.
  • Solutions that gpt chat gave me:

    Tests to Diagnose the Problem

    Export your game as NW.js and enable the Node-Webkit and NW.js File System options.

    Run the exported game and see if the .json or .txt files are being created.

    If that doesn't work, try saving the data in LocalStorage or IndexedDB and see if they are being read correctly.

    Test running the game as Administrator.

  • For me, what doesn't make sense is that the game works perfectly in the tests and when exporting it has this type of problem when saving.

    No, this happens often and I've seen it many times in other people's projects! For example: you save something in Local Storage and immediately switch to another layout. On start of that other layout you read the same data from Local Storage. This may work in preview, but will fail in an exported game or on a slightly slower PC, because LS operations are asynchronous. The write request may not be completed before the read request, and the data in LS may become overwritten with default values.

    That's why I'm asking you to share the complete screenshots of all relevant events, or a project file.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Export your game as NW.js and enable the Node-Webkit and NW.js File System options.

    Beware of using AI. This sentence is nonsense.

  • Event Sheet Screenshots to Save Game

  • Screenshots related to game loading, everything related to Local Storage

  • Where and how often do you call the Salvar function? What is the parent event for the "LocalStorage check item exist" action? How often is it called? What happens when the item doesn't exist?

    It would be a lot easier if you could email me the project file. Debugging by screenshots is very unproductive.

  • Can I give you a file with just the game's save and load event sheets? Because the game is very large, there are many layouts and event sheets

  • the save function is only called at checkpoints strategically positioned in the game, it takes the item, but does not take any action if it does not find it

  • Ok, please email me what you can. I can't promise you I'll find the issue, but it will be a lot more useful than the guessing work with screenshots.

  • OK, thank you very much

  • Hi friend, I sent the email, thanks

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