AlexFrancois wrote:Hey people, I've made a quick fix for nw.exe not closing which should work until this is fixed:
1. Download this .bat file or create one yourself by opening notepad and entering the following: taskkill /f /im nw.exe before saving the file as nw_exit.bat
2. Copy the nw_exit.bat to the \NWjsForC2\win64 and win32 folders, which will ensure the files are added to all new exports.
3. In C2, find the event you use to close the game. Above the Browser Close action add a NWjs run file action. In the Path box add: """"&NodeWebkit.AppFolder&"nw_exit.bat"""""
Here I also add a wait 0.1 second action and then the browser close action just in case the file doesn't run.
4. Export the game. Now when you click on your exit button the .bat script should run, closing all nw.exe processes!
I hope this helps you as much as it helped me!
Users browsing this forum: No registered users and 1 guest