Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

[Solved] Example projects

A topic by akabell created Apr 07, 2023 Views: 316 Replies: 9
Viewing posts 1 to 3
(1 edit)

I've downloaded the example projects but when I try to load them it says "unable to parse or not a valid .json file." Is there anything I can do to resolve this? Thanks for any assistance.

Developer (1 edit)

Hello What version are you using? I just tried both in 1.2.2 and loaded fine. Just to confirm are you doing a “restore database from file in new project” in project manager? Be sure to select the json file for the project you want to import

I'm using 1.2.2. Here's what happens when I click "restore database from file" and upload the goddess of fate json.


Developer

well this is strange! can you CTRL + Shift + I and see console output? Long shot: Is the file inaccesible, inside a zip, or permission or something that might be causing the app not properly loading the OS file? what OS are you running? Thanks for the help troubleshooting this!

Happy to. I'm on Linux, and the file was downloaded straight from the website where the documentation is. Here is the console output, or at least I hope this is what you're looking for: 


index.js:29 Init!

store.jsx:1696 Adding drafft_test to dbList

remotedb.js:1326 {canceled: false, filePaths: Array(1)}

remotedb.js:1177 {content: Blob, fileName: '/home/dan/Desktop/The goddess of fate..json', content_type: 'application/json', json: null}

store.jsx:1696 Adding drafft_test to dbList

remotedb.js:126 Create a new Database: drafft_test

remotedb.js:140 Autosave database at interval: 5 seconds

remotedb.js:693 No Project Settings Found. Generating Defaults.

remotedb.js:644 No Dialogue Folder. Generating Default.

remotedb.js:396 Remote Syncing is set to OFF

Developer

Well this is definitely weird! I’m on Linux too, using the AppImage version I get this:

{content: Blob, fileName: '/home/baj/Downloads/The goddess of fate..json', content_type: 'application/json', json: {…}}
content: Blob {size: 860384, type: ''}
content_type: "application/json"
fileName: "/home/baj/Downloads/The goddess of fate..json"
json: {total_rows: 68, offset: 0, rows: Array(68)}

I’m a little lost on what else to test, seems like the app cannot open the file to read its content for some reason, or the file is corrupted. If you create a test project, export it (Backup Database) and import it, do you get the same error? Thanks!

Creating a new project, then exporting it to .json, then adding it back in works fine. It creates the new database successfully.

Developer

can you test if the file that you downloaded is a valid JSON ?

Okay, well, when I went to GitHub and downloaded the raw output as a .json, that worked. Right clicking and saving-as apparently did not save it correctly.

Maybe it was my fault. I really appreciate all your help. Sorry about the hassle.

Developer

No worries! Thanks for the confirmation!