Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Error when exporting to HTML5 (SetSpriteShape(...,SHAPE_POLYGON))

Author
Message
stoarch
7
Years of Service
User Offline
Joined: 17th Jul 2016
Location:
Posted: 9th Dec 2017 14:51
Help me, please. After some changes - HTML5 game export (finely worked before) now generates this stacktrace.
On windows and anroid all fine.

StackTrace:
uncaught exception: Assertion failed: area > 1.1920928955078125e-07F, at: common/Box2D/Collision/Shapes/b2PolygonShape.cpp,115,ComputeCentroid at jsStackTrace@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.js:1:63905 stackTrace@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.js:1:64088 ___assert_fail@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.js:1:271530 J$@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.asm.js:5:1 Dk@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.asm.js:4:1 aA@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.asm.js:9:1 ri@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.asm.js:8:1 ui@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.asm.js:8:1 ki@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.asm.js:8:1 qUa@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.asm.js:16:1 invoke_ii@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.js:1:339013 Mh@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.asm.js:8:1 fh@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.asm.js:8:1 dVa@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.asm.js:16:1 dynCall@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.js:1:52400 Browser_mainLoop_runner/<@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.js:1:146158 runIter@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.js:1:147696 Browser_mainLoop_runner@file:///C:/work.agk/my.projects/GreatSyphon/Editor/HTML5/AGKPlayer.js:1:146054

Thank you in advance
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 13th Dec 2017 17:00 Edited at: 13th Dec 2017 17:00
I'm not sure, but it looks like the polygon shape may have vertices that are too close together, or produce a triangle that has zero area. I'm not sure why it would only affect HTML5 though.
stoarch
7
Years of Service
User Offline
Joined: 17th Jul 2016
Location:
Posted: 18th Dec 2017 08:53
Thank you. Will dig in this direction

Login to post a reply

Server time is: 2024-03-29 13:54:17
Your offset time is: 2024-03-29 13:54:17