CocoonJS on Nexus 7

0 favourites
  • 3 posts
  • 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

  • Ok, I got a different project to work without errors. I'm currently searching for the reason it wasn't working.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)