CocoonJS on Nexus 7

Discussion and feedback on Construct 2

Post » Sat Sep 15, 2012 9:18 pm

Hi guys,

I've recently just begun testing C2 on a Nexus 7 tablet using CocoonJS. I have a very simple project set up for testing (5 events, a few sprites). I can get the project to export, and it can be run on the device with CocoonJS, but it throws an error everytime in debug mode. The game displays some of the graphics, but the events don't run at all.

This is the error:

Native Exception calling JSFunction. Cause: Java Exception with message 'divide by zero' at virtual com::ideateca::core::Dimension2D android::com::ideateca::core""util::AndroidStringUtils::meausreText(const std::string&, const std::string&, float)
const:196 Tag: timer Function: function () {self.go();)

Using Build 103.2
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Sat Sep 15, 2012 10:04 pm

Ok, I got a different project to work without errors. I'm currently searching for the reason it wasn't working.Davioware2012-09-15 22:05:14
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Sat Sep 15, 2012 10:16 pm

Found it: simply having a Text object on your layout breaks CocoonJS in R103.2 on Android 4.1.1 - I don't know if this is specific to R103.2 or whatever, since I only tested with this version on this device.

B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620


Return to Construct 2 General

Who is online

Users browsing this forum: Avengium and 10 guests