Bug Issue: Actors with collision poly id -1 won't open in 4.0.1


Pages: 1

darrigaz

  • Level 2 Stencyler
March 12, 2019, 04:22:16 pm
Apparently there's an old bug (now fixed) where if you dragged an image into an actor to create animations you'd get extra broken collision poly shapes generated.

They look like this in the data.xml:
Code: [Select]
<sprite atlasID="0" default="0" defaultAnimation="0" desc="" id="39" name="Long" readable="false" shared="false">
        <anim across="1" down="1" durations="100" height="32" id="0" loop="true" name="Animation 0" numframes="1" originx="64" originy="16" sync="false" version="2" width="128">
            <poly data="4,0,0,16,0,16,16,0,16" density="0.1" fric="0.2" gid="-1000" id="-1" name="default" rest="0.0" sensor="false"/>
            <poly data="4,0,0,16,0,16,16,0,16" density="0.1" fric="0.2" gid="-1000" id="0" name="default" rest="0.0" sensor="false"/>
        </anim>
    </sprite>

if you have actors with these polys present in a project and then upgrade the project to 4.0.1 you'll be unable to open these actors and will get the warning:

java.lang.RuntimeException: java.lang.IllegalArgumentException: ShapeEntry ID is -1.

Deleting the polys in the data.xml fixes it but isn't ideal.
« Last Edit: March 12, 2019, 04:23:13 pm by darrigaz »


Issue updated by Justin - March 12, 2019, 04:32:36 pm
  • Issue Assigned from (none) to Justin
  • Category changed from (none) to Collision Editor


Justin

  • Master Stencyler
  • *
March 12, 2019, 04:35:18 pm
Here's the old bug: http://community.stencyl.com/index.php?issue=535.0

You can no longer create these unkillable shapes, but they may appear in existing projects.
« Last Edit: March 12, 2019, 04:35:55 pm by Justin »


Justin

  • Master Stencyler
  • *
June 28, 2019, 04:47:53 am
Fixed in b10399.
  • Status changed from New to Resolved


Issue updated by Justin - December 12, 2019, 04:58:42 pm
  • Tags added: 4.0.2


Pages: 1

Details

  • Reported
    March 12, 2019, 04:22:16 pm
  • Updated
    December 12, 2019, 04:58:42 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Collision Editor

Tags