[239] Game crashes only when exported and played in NW.js.

Bugs will be moved here once resolved.

Post » Wed Nov 02, 2016 1:16 pm

Message: ViktorEisenmann can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Problem Description
The game crashes on a specific moment: when the player collects a new weapon in game. This only happen when the game is exported and played on NW.js.

When the weapon is collected, the camera zoom in, the weapons name appears on screen, the background color inverts, and a "collected" sound is played.

The game works perfectly when played inside Construct (Run Layout mode).

Attach a Capx
http://tinyurl.com/jhma986 (google drive)

Description of Capx
Open the game and play the game (Run layout). Make sure that the "preview browser" is "NW.js". Move to the right and collect the shotgun (don't have to press any key, just move into it). The player will collect the gun and all animations and sounds will play.

Steps to Reproduce Bug
  • Step 1:
    Open the game and play the game (Run layout). Make sure that the "preview browser" is "NW.js". Move to the right and collect the shotgun (don't have to press any key, just move into it). The player will collect the gun and all animations and sounds will play. The game will work just fine.

  • Step 2:
    Close "Run Layout" screen.

  • Step 3:
    Export the game for NW.js.

  • Step 4:
    Play the game (I played in win 32) and reproduce step 1 (collect the weapon). The game will crash.

Observed Result
The game crashes when played in exported NW.js.

Expected Result
The game screen will close abruptlly.

Affected Browsers
  • NW.js: (YES)

Operating System and Service Pack
Windows 10 32bits

Construct 2 Version ID
Construct 2 Version: 239
B
10
Posts: 3
Reputation: 356

Post » Wed Nov 02, 2016 2:10 pm

I suggest you attach the capx again without all those custom behaviors. Not many people would google and install them just to check the bug you have. And by the way, I exported with my NWjs yesterday a project several times and it worked. Did you check your NWjs version? It could be old and cause problems with the custom behaviors.
Black Bobby The Hole Greenlit with 303 votes.
B
36
S
8
G
1
Posts: 163
Reputation: 3,029

Post » Wed Nov 02, 2016 5:04 pm

I'll prepare a new Capx file! Thanks for your advice.

Anyway, I downloaded the newest NWjs version. Now the game doesn't close by itself, however the screen freezes. I clicked on the freezed screen and could be able to hear the new weapon firing.
B
10
Posts: 3
Reputation: 356

Post » Mon Nov 14, 2016 5:20 pm

Closing as it is almost impossible to fix bugs like this, please see the bug report requirements which are necessary for us to have much hope of fixing the issue. You need to narrow it down to a minimal .capx if possible.
Scirra Founder
B
395
S
232
G
88
Posts: 24,368
Reputation: 193,756


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests