Bug Issue: customised block error - scene corruption


Pages: 1

yoplalala

  • Subscriber - Stencyl Studio
  • *
June 11, 2020, 09:18:36 am
How to reproduce
- Create an actor behaviour
- create a new customised block
- enter the name
- in the bloc specifications write "%0 %0", validate
- (optional  : reedit the bloc to remove one of the two %0)
- close the scene
- you cannot reopen it
Code: [Select]

java.lang.RuntimeException: java.lang.IllegalStateException: Can't embed block that's added to another component.
at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:74)
at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:54)
at stencyl.sw.app.tasks.OpenResourceTask.done(OpenResourceTask.java:81)
at java.desktop/javax.swing.SwingWorker$5.run(Unknown Source)
at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)


Issue updated by Justin - June 11, 2020, 03:57:22 pm
  • Tags added: regression, 4.1.0


Justin

  • Master Stencyler
  • *
July 01, 2020, 03:04:03 am
This error is something that can only happen in the current private builds, which is why it's labeled as a regression and marked for 4.1.0. However, the underlying cause is that the block spec has included the same field twice, which really shouldn't happen. So I decided to disallow the creation of custom blocks in that case, and to include this change in 4.0.3 as a bug fix.

Fixed in private build 10566. Available in public release 4.0.3.
  • Category changed from Design Mode Blocks to Design Mode
  • Issue Assigned from (none) to Justin
  • Status changed from New to Resolved
  • Tags added: 4.0.3
  • Tags removed: 4.1.0, regression


Pages: 1

Details

  • Reported
    June 11, 2020, 09:18:36 am
  • Updated
    July 01, 2020, 03:04:03 am

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

Tags