BUG: Download as JSON on NW.js

Bugs will be moved here once resolved.

Post » Wed Jan 20, 2016 2:24 pm

Problem Description
When executing "Download as JSON" on an exported game, the save location dialog box does not launch

Attach a Capx
This is the capx file https://www.dropbox.com/s/k3y6cly2wk0u90q/download%20test.capx?dl=0
and this is NW export for windows 64 bits https://www.dropbox.com/s/86p3t8qvil36dl7/win64.rar?dl=0

Description of Capx
Only one event: On Sprite.Click > Download Dictionary as JSON

Steps to Reproduce Bug
Click the sprite on the win64 export

Observed Result
When clicking the sprite on Preview - works fine, the save destination dialog box shows
When doing the same on the exported nw - a white window with a "download link" opens up. you can save the file by clicking the link, but it is a major disturbance in the flow

Expected Result
I expect the save location dialog box to open without the intermediate "download link" window

Affected Browsers
NW export
[/list]

Operating System and Service Pack
win7 sp1

Construct 2 Version ID
r221 + NW.js v13 beta 4

Two additional questions regarding NW:
1. why is the "single instance" option removed?
2. will it be possible to add an option that will allow selecting specific type of export (win/mac/linux etc) - this may save tons of time on exporting big projects that are not targeted to all platforms.
B
12
S
3
Posts: 104
Reputation: 1,655

Post » Thu Jan 28, 2016 7:57 am

bump
B
12
S
3
Posts: 104
Reputation: 1,655

Post » Thu Jan 28, 2016 10:09 am

I can confirm that your NW export has this weird dialog box, if I export the capx myself to NWjs, it works like it should.
What you could try is:
Uninstall NWjsForC2 and reinstall it. Look if the folder is deleted after uninstall and before reinstall.
Delete the folder with the name of the exe (here downloadtest) in %USERPROFILE%\AppData\Local\.
After that, try export it again.
B
23
S
3
G
1
Posts: 411
Reputation: 2,060

Post » Thu Jan 28, 2016 11:10 am

Thanks @Asmodean. That's encouraging :) I will tests this later.

I guess the issue is closed since the problem does not reproduce on another system.
B
12
S
3
Posts: 104
Reputation: 1,655

Post » Tue Feb 09, 2016 4:11 pm

Closing as can't reproduce in NW.js 0.13.0-beta5 - works the same as in preview as after export. Besides, the "Download" action normally invokes the browser download UI, and NW.js has no browser UI, so I wouldn't expect this to work in NW.js! You can always just use the NW.js object to write straight to disk.
Scirra Founder
B
378
S
220
G
84
Posts: 23,863
Reputation: 188,019


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests