Stencyl 3.4.0 is now out. Get it now!

Bug Issue: Adding Item To Empty List Crashes Game


Pages: 1

BMJ

  • Level 3 Stencyler
March 14, 2017, 09:08:20 am
Using latest build, (9313). As title says, adding an item to an empty list at runtime crashes a game in both Flash and Cppia. I've attached logs for a sample Flash game that demonstrates the bug. The only thing in the game is an attempt to add an item to an empty list. (As soon as I started the list with a default Item #0, there was no crash.)


New attachment added by BMJ - March 14, 2017, 09:08:50 am


danielle53

  • Subscriber - Stencyl Indie
  • *
March 14, 2017, 09:26:25 am
if it is a bug, it is an old one .. on linux, I would say


rob1221

  • Master Stencyler
  • *
March 14, 2017, 10:36:41 am
Are you setting the list attribute to the "create new list" block before using it?
  • Status changed from New to Need Info


BMJ

  • Level 3 Stencyler
March 16, 2017, 08:49:36 pm
danielle53 -- I'm using cppia on Windows, not Linux. It's a new bug, not an old one. As soon as I rolled back to a previous version (9179), the same exact code stopped crashing.

rob1221 -- No,  I am creating the empty list in the design mode before compiling and attempting to add an item to it at runtime. This is something I've been able to do with previous versions of Stencyl without problems.  As soon as I updated to the latest version, it started crashing the game. Again, when I rolled back, everything worked fine.

(I've tested this in both Cppia and Flash, with the same results.)
« Last Edit: March 16, 2017, 08:50:40 pm by BMJ »


rob1221

  • Master Stencyler
  • *
March 16, 2017, 09:45:38 pm
This looks like an intentional change since 3.4 beta 5 -- http://community.stencyl.com/index.php/topic,49454.0.html

Just use the "create new list" block for all hidden lists.
  • Status changed from Need Info to Closed


Pages: 1

Details

  • Reported
    March 14, 2017, 09:08:20 am
  • Updated
    March 16, 2017, 09:45:38 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Closed
  • Priority
    Normal
  • Version
    3.4.0 beta5
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Engine

Tags


Attachments