On load failed does not trigger from loading from JSON

Bugs will be moved here once resolved.

Post » Wed Nov 02, 2016 2:00 pm

Problem Description
On load failed does not trigger from loading a game from a JSON string.

Attach a Capx
http://www.jefawk.com/RandomCrap/Load%20problem.capx

Description of Capx
On Check button click the system tries to load the game from a JSON string that most likely does not exist. The On load failed does not trigger.

Steps to Reproduce Bug
  • start the game using the NWjs preview option
  • press the Check button

Observed Result
The On load failed did not trigger.

Expected Result
The On load failed should have triggered.

Affected Browsers
N/A it's just about NWjs

Operating System and Service Pack
Windows 10

Construct 2 Version ID
Release 239 (64-bit)
Black Bobby The Hole Greenlit with 303 votes.
B
36
S
8
G
1
Posts: 163
Reputation: 3,029

Post » Mon Nov 14, 2016 5:19 pm

Note this doesn't appear to be anything to do with NW.js, the same thing happens if you try to load an empty string (which is probably what reading a non-existent file returns).
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Mon Nov 14, 2016 6:29 pm

Could you add an "if string is empty then trigger the Load fail" please?
Black Bobby The Hole Greenlit with 303 votes.
B
36
S
8
G
1
Posts: 163
Reputation: 3,029

Post » Tue Nov 15, 2016 4:33 pm

OK, should be fixed for the next build.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Tue Nov 15, 2016 5:37 pm

Nice! Thanks!!!
Black Bobby The Hole Greenlit with 303 votes.
B
36
S
8
G
1
Posts: 163
Reputation: 3,029


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 6 guests