Problem with Saving/Loading Array (Help!)

  • Hello! I am having a strange problem. I have a save system where an array with tile states, and when the save is complete the array downloads as a .json file. It functions perfectly when I'm testing it, but once the build is uploaded on NG, instead of opening the save window to choose where it's saved, a new untitled chrome window opens with url about:blank, and nothing happens. I have no idea what's causing this, pls help.

    Code:

    Tagged:

  • Now my save/load system isn't working at all. Even when the file downloads in preview, the array has an equal number of cells to the "bullet" count, but each cell is blank, instead of being filled with the json data. My code is the same is before, I don't know why this isn't working anymore ;-;

  • Now my save/load system isn't working at all. Even when the file downloads in preview, the array has an equal number of cells to the "bullet" count, but each cell is blank, instead of being filled with the json data. My code is the same is before, I don't know why this isn't working anymore ;-;

  • Bump because this is really frustrating. I had it working perfectly, I could save the tile array data file and it would be chock full of json data, but now it only gives me blank cells. Also, my problem with the release version not even downloading the file (instead, it just opens a blank tab in your browser) still remains. My code for this system is above, please help!

    Here is the version uploaded to newgrounds. Click the save button to replicate the tab issue.

    newgrounds.com/portal/view/730937

  • *screeching baby noises*

    haaaaaaaalp ;-; I still haven't found a solution

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • larynachos

    I haven't tried what you are doing, but my guess is that the array download wont work from a website like that. You should try the Browser object, and then "Invoke download of string", and give it the array AsJSON...

  • larynachos

    I haven't tried what you are doing, but my guess is that the array download wont work from a website like that. You should try the Browser object, and then "Invoke download of string", and give it the array AsJSON...

    I will try using that method, but my problem isn't that anymore, it's that my array cells are empty instead of loaded with the JSON data I instructed it (see previous screenshot)

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