SOLVED: Assertion failure: Physics polygon separation

0 favourites
  • 6 posts
From the Asset Store
A pack of 250 robotic sounds, including glitches, movement, devices, interfaces, charges, failures, launches, and more.
  • Hello,

    at the moment I started to make my first game with Construct 2.

    So I added some Objects and make some test.

    But now when I start the game, following message appears:

    [quote:30lbtt8s]

    Assertion failure: Physics polygon separation resulted in no polys. Make sure all your collision masks for objects with the Physics behavior are valid and don't have any overlapping lines.

    Stack trace:

    assert2@http://localhost:51000/preview_prelude.js:16:10

    cr.b2Separator.Separate@http://localhost:51000/Physics_behavior.js:982:2

    behinstProto.createBody@http://localhost:51000/Physics_behavior.js:1703:19

    behinstProto.postCreate@http://localhost:51000/Physics_behavior.js:1332:3

    Runtime.prototype.createInstanceFromInit@http://localhost:51000/preview.js:3206:5

    Layer.prototype.createInitialInstances@http://localhost:51000/layout.js:1406:12

    Layout.prototype.startRunning@http://localhost:51000/layout.js:219:4

    Runtime.prototype.go_loading_finished@http://localhost:51000/preview.js:1880:4

    Runtime.prototype.go@http://localhost:51000/preview.js:1735:4

    Runtime.prototype.initRendererAndLoader@http://localhost:51000/preview.js:711:3

    Runtime.prototype.loadProject@http://localhost:51000/preview.js:1574:3

    Runtime.prototype.requestProjectData/xhr.onload@http://localhost:51000/preview.js:396:6

    assert2@http://localhost:51000/preview_prelude.js:26:4

    cr.b2Separator.Separate@http://localhost:51000/Physics_behavior.js:982:2

    behinstProto.createBody@http://localhost:51000/Physics_behavior.js:1703:19

    behinstProto.postCreate@http://localhost:51000/Physics_behavior.js:1332:3

    Runtime.prototype.createInstanceFromInit@http://localhost:51000/preview.js:3206:5

    Layer.prototype.createInitialInstances@http://localhost:51000/layout.js:1406:12

    Layout.prototype.startRunning@http://localhost:51000/layout.js:219:4

    Runtime.prototype.go_loading_finished@http://localhost:51000/preview.js:1880:4

    Runtime.prototype.go@http://localhost:51000/preview.js:1735:4

    Runtime.prototype.go/</<@http://localhost:51000/preview.js:1816:55

    Subsequent failures will now be logged to the console.

    Can someone helps me where my failure is?

    Hope to hear from someone sone,

    Simon

  • What are the objects collision polygons like?

    It's almost impossible to help from just a message. It helps greatly if a .capx with the error happening is supplied.

  • Hello,

    thank you for the fast reply.

    Here is the download file: https://www.dropbox.com/s/36jznl1aqh9cu ... .capx?dl=0

  • Some of the collision polygons on your objects are all over the place.

    Primarily, you might want to take a moment to go through your objects and make sure all the collision polygons are as precise as possible and don't overlap.

    If that doesn't clear the error, create a new .capx and copy and paste objects one at a time and test. At some point the error will through and you'll have you're culprit.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That helps me a lot... Thank you

  • I think it may just be the pieceleft, pieceright and umbrella. After fixing the collision polygons on those three, the .capx runs without an error.

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