I use NWjs to save the status of my game, but it didn't work

0 favourites
  • 7 posts
From the Asset Store
High quality sound effect pack, in the following categories: Garden work, tools
  • Hello everyone, I use NWjs to save the status of my game. But it doesn't work on the process of loading data. Can someone help me? I tried to fix it myself for a very long time but it was unsuccessful.

    This is a small project that I used to test.

    Thank you for your help.

    	<html>
    		<body>
    			<a href="https://drive.google.com/file/d/1ekVwYmbDq7u5TQLLuPlsYmJhQGiuE8WD/view?usp=sharing">NWjsSaveLoad.c3p</a>
    		</body>
    	</html>
    
  • You can't just load the game from disk path. You need to request the file with AJAX, then load from AJAX.LastData

    Also, you are not using loaded layout, change your event #8 to "On start of layout".

  • You can't just load the game from disk path. You need to request the file with AJAX, then load from AJAX.LastData

    Also, you are not using loaded layout, change your event #8 to "On start of layout".

    I follow your instruction but it still not work TOT

  • It works for me.

    Try without the "test" folder. Check if the slot.save file is actually created (in Windows).

  • It works for me.

    Try without the "test" folder. Check if the slot.save file is actually created (in Windows).

    it doesn't work too, not any file created. I try to change the path to "C:\" it still not work.

  • Are you using Desktop version of the C3? NWJS will not work in the browser! Also, try exporting the project for NWJS.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Are you using Desktop version of the C3? NWJS will not work in the browser! Also, try exporting the project for NWJS.

    Now, it can work. If I don't get your advice I can't do it. Thank you so much

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