How do I save to created folder?

0 favourites
  • 5 posts
From the Asset Store
Template for a generic save / load system, fully documented in comments and video
  • I have created a game in which a folder is created using


    As to save to the player user folder. I have created a folder in this folder called saves but i'm not sure how to save a file into that folder.

    (this is not asking how to write to a external file just how i save to a subfolder within nwjs.userfolder.


  • If I understand your question properly... you should be able to write any file path into the nwjs save function. The only issue will be if you try to save to any system protected folders (like windows directory) but should be fine anywhere else.


  • How do i determine the sub folder? Just with a "\" ?

    Tried with an "&" but didn't change the path.


  • It should be something like:

    NWjs.UserFolder & "\example\test\filename.txt"

    make sure you put the quotation marks around the path, and begin with backslash. You should also be able to just straight up put a path in there like "C:\myfolder\whatever.file"

    Hopefully this helps


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Cheers Buddy.

    Decided in the end just to save directly to NWJS.Appfolder instead as the game being marketed at schools and stuff and they probably not happy to have stuff saved in different folders.

    Thanks a lot though.

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