Bug Issue: NPE in tile combiner when saving two scenes with different tile sizes


Pages: 1

Justin

  • Master Stencyler
  • *
June 13, 2020, 11:22:29 pm
Code: [Select]
java.lang.NullPointerException
at stencyl.core.lib.scene.TileEdgeGraph.takeNextPoint(TileEdgeGraph.java:75)
at stencyl.core.lib.scene.SceneTileCombiner.processScene(SceneTileCombiner.java:288)
at stencyl.sw.io.write.resource.SceneWriterMbs.writeMbs(SceneWriterMbs.java:292)

This is possible if two scenes with different tile sizes are saved during the same Stencyl session, and those scenes contain tiles with collision shapes that touch the border at a place that will round to a different pixel for different tile sizes.

For example, a tile collision shape that touches the border at .73, which becomes .71875 for a 32x32 tile size, and becomes .75 for a 24x24 tile size.


New attachment added by Justin - June 13, 2020, 11:23:04 pm


Justin

  • Master Stencyler
  • *
June 13, 2020, 11:24:43 pm
This is fixed in private build 10556, and will be available in the public release 4.0.3.
  • Issue Assigned from (none) to Justin
  • Status changed from New to Resolved
  • Tags added: 4.0.3


Pages: 1

Details

  • Reported
    June 13, 2020, 11:22:29 pm
  • Updated
    June 13, 2020, 11:24:43 pm

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

Tags


Attachments

* 2020-06-12_09-55-05.log (70.09 kB - downloaded 670 times.)