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.
  • Hello, I thank you in advance for trying to help me, my problem is the following: The game is saving normally, when executed in construct, however if I export the game to Windows format, when executing the game it does not save the information in the matriz, for example: There is a dialogue in the game that should only happen once, I am saving in a matriz the information that the dialogue has already been executed, and when it goes through the same situation the game checks if the information is in the matriz, if it is not it executes the dialogue, if it is it does not execute. It happens that when testing the game in construct it works perfectly, however when exporting to Windows format and executing independently it does not work, can someone help me?

  • What is a "matriz"? Do you save to Local Storage? Please post a screenshot of the events where you save/load data.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When this local storage option is active, it starts to work correctly when exporting to Windows. Can anyone explain?

  • You probably using it wrong. Please post a screenshot of your events.

    "In-memory only" option doesn't save your data when the game is closed!

  • I don't know if this is what you needed, thanks for trying to help, in the game tests it worked perfectly, but after exporting it doesn't work

  • I don't know if this is what you needed, thanks for trying to help, in the game tests it worked perfectly, but after exporting it doesn't work

    This almost certainly means that you are not using Local Storage correctly. LocalStorage operations are asynchronous, so when you are testing locally on a fast PC they may work, but after exporting the delay is slightly longer and everything breaks.

    Please show the code where you load the data from local storage.

  • Running some tests here, I realized that the matrix used to save whether the dialogs have already been executed or not, cannot be linked to LocalStorage, from what I understood it must be saved in a separate matrix and then moved to the matrix linked to LocalStorage, doing this way when exporting to Windows format it worked

  • Please can someone help me with this? I've been trying since yesterday and I'm not making any progress.

  • In the program test it works perfectly, but when exporting it fails when executing the save

  • It's not possible to help you when you are posting only small screenshots of the code. I need to see the entire picture. Can you share your project file? Or email it to me: doperst2006(at)gmail.com

  • I discovered the error, it was in the way of exporting the executable, I had to export it in NW.JS

  • It doesn't make sense. Local Storage should work with all export options. Also, NWjs export is deprecated, it will be removed soon.

    I suggest you test the game on different hardware, especially on some old and slow laptop, to make sure that it still works.

  • 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. If it were a code problem, it would cause problems even in the tests.

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