r80 PhoneGap sub-event bug

Bugs will be moved here once resolved.

Post » Tue Feb 28, 2012 9:06 pm

I've exported a project to PhoneGap and when I launch the apk most of my sub-events are ignored and just don't trigger.

All works fine in the 'run layout' preview, it's only when I export the project for PhoneGap and complete the build that sub-events are ignored - it's as if they no longer exist. I've also tried exporting without minifying the script, but same thing happens.

I'll create a mini version of my game and post here to demonstrate the problem.
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Tue Feb 28, 2012 10:08 pm

Stripped everything down to one layout and event sheet with a few events and one sub-event, but now it doesn't even launch as an apk after PhoneGap compiles, I just get the white pre-load screen on my Samsung Galaxy S2. Still all works fine in the 'run layout' preview.
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Tue Feb 28, 2012 10:17 pm

OK, definitely the sub-event that's causing problems with PhoneGap. I've just deleted the only remaining sub-event, exported for PhoneGap and pushed it through PhoneGap build. Now that the apk has no sub-events it runs as it should.
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Tue Feb 28, 2012 11:06 pm

Probably linked with the reported other bug, this has surely something to do with the recent changes made to subevent handling.

Ash will probably issue a new release soon when fixed.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Wed Feb 29, 2012 3:33 pm

Is this still an issue in r80.2?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Wed Feb 29, 2012 3:36 pm

[QUOTE=Ashley] Is this still an issue in r80.2?[/QUOTE]

I can't check it till tonight, but will let you know as soon as I know. Very much looking forward to having sound in the apps I create with PhoneGap!!!
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Wed Feb 29, 2012 8:23 pm

@Ashley r80.2 doesn't fix the PhoneGap problem with sub-events. I've tried with and without sound files (just in case) and neither way works, sub-events just won't trigger.
...on the plus side, sound is playing! AndyWatson2012-02-29 20:23:31
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Wed Feb 29, 2012 8:25 pm

What sub-event is it that you think is the problem? Can you reproduce in a new .capx and share that?

Given that sub-events are a very basic and crucial part of Construct 2, and there aren't any other reports of subevents not working in PhoneGap, I would suspect it is not actually the problem, and only appears to be working like that. Do you have any other ideas?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Wed Feb 29, 2012 8:31 pm

I'm going to build a new .capx now and if it doesn't work I'll upload it here.
I can't think what else it can be other than something in the sub-event handler. This is a project I've been working on since December and have pushed through PhoneGap numerous times with other C2 releases without this problem. I'll start something from fresh and see what happens.
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Wed Feb 29, 2012 8:53 pm

OK, had a bit of a play and created some new .capx files and most sub-events seem to be working now in r80.2.

It looks like it may only affect sub-events that are referencing a global variable. I'll have a think about how I can build this into a simple layout and post up.
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest