Having trouble loading text from nwjs.readfile.

0 favourites
  • 1 posts
From the Asset Store
Progress\Loading Bar. Now Load you game like a Professional.
  • 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.

    • - -

    capx : mediafire.com

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)