Having trouble loading text from nwjs.readfile.

Just started using Construct 2? Post your questions here

Post » Sat Apr 16, 2016 2:04 am

Message: fuzzgoddess can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
I'm using NWJS write and NWJS.readfile to save the wallclocktime to be displayed alongside each save slot.

This works fine if I don't specify a directory, unfortunately when I exit the program and come back, when I use NWJS.readfile it comes up blank.

- - -

So just to see if it had anything to do with not setting a directory, I decided to give it a try again with saving to the nwjs.userfolder, but that seems to not save or load anything at all.

At the end of the day I just want to be able to write the wallclocktime variable showed in the capx below to an external file that I can overwrite and load, and that will hang around after the user exits the program.

- - -

I started messing around with localstorage but was getting a little confused and ultimately I just want to understand why this NWJS setup is / isn't working.

Thanks in advance.

- - -

Image

capx : https://www.mediafire.com/?75w5acpp6o3385e
B
5
S
1
Posts: 1
Reputation: 327

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest