Colludium's Forum Posts

  • Aphrodite - yeah, I submitted a bug report and found out from Ashley. Now I'm careful to monitor how many polygon points I add to each sprite to avoid a repeat (it's do-able but a bit limiting....). Since that one fail I've not had a repeat of the problem - even though I still have a couple of objects with more than 8 points in their polygons the game continues to run ok with asm.js physics (only on test & I'm ready to fall back to box 2d).... So it looks like whatever causes the failure to trigger is not guaranteed to fail every time you have 9+ points.

    here's the bug report

  • OK, so I expect that I'm setting myself up for a lot of incoming rocks, rotten tomatoes and spears for not paying enough attention to developments. And the developments with C2 are fast and excellent, so I'm not complaining... I just wandered if my ignorance was really down to sleeping in the forum or if the manual / release logs missed this gem.

    Is it widely known within the community that the asm.js physics engine does not support objects with more than 8 collision polygon points? And 'does not support' really means that it will crash on run....

    If I missed this then I apologize for wasting your time, but if not - you've been informed...

  • Ashley, I couldn't find that info in the manual - might be worth adding if my searching isn't at fault, thanks.

  • OK Ashley, thanks.

  • Problem Description

    One physics object, no other objects, layout does not run and shows javascript error. This is reduced from a project I am working on. The object in this capx was the one I last added to my game and caused it to then crash on run - the error happens with both box2d and asm.js although asm.js was selected when the object was added.

    Attach a Capx

    [attachment=0:1fvpl51j][/attachment:1fvpl51j]

    Description of Capx

    Project has one object only and a family that gives the object the physics behavior. Run the layout.

    Steps to Reproduce Bug

    • Run the layout Observed Result In browser: and in Node Webkit: {\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang2057{\fonttbl{\f0\fnil\fcharset0 Calibri;}} {\colortbl ;\red0\green0\blue255;} {\*\generator Riched20 6.3.9600}\viewkind4\uc1 \pard\sa200\sl276\slmult1\f0\fs22\lang9 Assertion failed: 3 <= count && count <= 8, at: Box2D_v2.2.1/Box2D/Collision/Shapes/b2PolygonShape.cpp,122,void b2PolygonShape::Set(const b2Vec2 *, int32) at Error\par at Error (native)\par at x.___assert_func ({{\field{\*\fldinst{HYPERLINK

      localhost/Physics_behavior.js:233:28 }}{\fldrslt{http://localhost:50000/Physics_behavior.js:233:28\ul0\cf0}}}}\f0\fs22 )\par

    at dc ({{\field{\*\fldinst{HYPERLINK localhost/Physics_behavior.js:213:73440 }}{\fldrslt{http://localhost:50000/Physics_behavior.js:213:73440\ul0\cf0}}}}\f0\fs22 )\par

    at nQ ({{\field{\*\fldinst{HYPERLINK localhost/Physics_behavior.js:214:142833 }}{\fldrslt{http://localhost:50000/Physics_behavior.js:214:142833\ul0\cf0}}}}\f0\fs22 )\par

    at Q.Set ({{\field{\*\fldinst{HYPERLINK localhost/Physics_behavior.js:482:367 }}{\fldrslt{http://localhost:50000/Physics_behavior.js:482:367\ul0\cf0}}}}\f0\fs22 )\par

    at createPolygonShape ({{\field{\*\fldinst{HYPERLINK localhost/Physics_behavior.js:568:11 }}{\fldrslt{http://localhost:50000/Physics_behavior.js:568:11\ul0\cf0}}}}\f0\fs22 )\par

    at behinstProto.createBody ({{\field{\*\fldinst{HYPERLINK localhost/Physics_behavior.js:1469:24 }}{\fldrslt{http://localhost:50000/Physics_behavior.js:1469:24\ul0\cf0}}}}\f0\fs22 )\par

    at behinstProto.postCreate ({{\field{\*\fldinst{HYPERLINK localhost/Physics_behavior.js:1083:8 }}{\fldrslt{http://localhost:50000/Physics_behavior.js:1083:8\ul0\cf0}}}}\f0\fs22 )\par

    at Runtime.createInstanceFromInit ({{\field{\*\fldinst{HYPERLINK localhost/preview.js:2803:28 }}{\fldrslt{http://localhost:50000/preview.js:2803:28\ul0\cf0}}}}\f0\fs22 )\par

    at Layer.createInitialInstances ({{\field{\*\fldinst{HYPERLINK localhost/layout.js:1316:25 }}{\fldrslt{http://localhost:50000/layout.js:1316:25\ul0\cf0}}}}\f0\fs22 )\par

    }[/code:1fvpl51j]

    Expected Result

    No error on run.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    W8.1 x64

    Construct 2 Version ID

    r173

    Edited to change the title to what it should have been!

  • Hi , I'm not sure what's causing your issue. I found that sometimes C2 needs a tick or two to get the layout up and running properly before you can do things like create physics joints on objects, but this seems a bit different. I can certainly reproduce it but it's hard to say exactly what might cause it and, so, discern how to fix it. In the interim, you could create a shade object to make the screen black for 0.05 sec at the start of the game. I suspect the problem is due to the re-sizing of the canvas size and layout scale to fit the browser window size and something like that would not be noticed at the start of a game. As long as you restrict the player from continually re-sizing the layout, all will be well. Sorry I can't be of more help.

  • DAG,

    You misunderstand the event system. Have a look at this quick demo - the Not Outside Layout condition excludes the objects that are outside the layout from the subsequent For Each Loop. You can use this technique to filter other conditions either in single event blocks or in tiered / cascading events to minimize the cpu load. It's extremely powerful, IMO.

    Edit - Otherwise you can use the outside layout check to deactivate them yourself manually, as Aphrodite said.

  • Thanks for the kind words I knew there was something I'd forgotten...!

    Your game is excellent - good feeling of impending pressure / panic. Puzzle games were never my forte...!!

  • So, it's an ongoing but fun learning experience for me! Entry No 1 was not that well received - in spite of it taking me weeks to put together....

    So I had an impulse a couple of days ago to try again. After 36 hours of isolation from my family, here's Fusion Quest. Fingers crossed that it might be more fun to platy - but it's quite short because I had to sleep and speak to the family on occasion.

    Link to Newgrounds

    [attachment=0:d55lxea7][/attachment:d55lxea7]

    Time now for a very cold beer...

  • Is this the sort of thing that you're after? The first condition ensures that the For-Loop will ignore those that are outside the layout....

    [attachment=0:261qyzwa][/attachment:261qyzwa]

  • Tom, could you please clarify when exactly the comp will end - time, date, time zone please.

  • aumthong99 & Xamie, it seems like a bit of a black art at first until you get it to work... The trick is to encode each of the sections that include spaces so that the final url has none but the content of your titles and posts is not changed. The facebook is the most difficult to get to work. As far as I can tell you have to link to your facebook app id number and that has to be setup correctly on facebook or it won't work as well. Good luck!!

  • blackhornet, thanks for letting me know.

    !

    It runs OK on both my laptops. Time to panic!!!!

    I presume it's just frozen on that screen - I don't know why it might do that or what to do to fix it! Sob....

    Edit: Someone else has reported a random floating sprite on level 4 - I might just try exporting it again and see ifthat turning minify script makes a difference. Not that it should....

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • May I humbly present my submission.

    Gyre Invaders

    [attachment=2:20fegmop][/attachment:20fegmop]

    [attachment=0:20fegmop][/attachment:20fegmop]

    [attachment=1:20fegmop][/attachment:20fegmop]

  • Clay plugin bug report. On W8.1 I receive a JavaScript error when the game starts in IE11; it works correctly inside Chrome and Firefox.

    [attachment=0:3r1hatu2][/attachment:3r1hatu2]