Why did all event blocks disappear?

Wasanni

  • *
  • Posts: 136
Does anyone know why all the blocks for every event of my behavior would suddenly disappear? You can see that even the "when drawing" block is gone. It's so disappointing to see stuff like this happen. There's so many glitches with Stencyl but I've invested a year already on this game... It's becoming increasingly discouraging to work on my stuff when things like this happen. Anyone know what I can do?

empty" border="0

Luyren

  • *
  • Posts: 2810
Does anyone know why all the blocks for every event of my behavior would suddenly disappear? You can see that even the "when drawing" block is gone.
It would be helpful if you post your logs, and describe what you were doing when it happened. I've only seen this once, but I never found a consistent way to reproduce it. Regardless, going forward it is recommended you keep back ups of your game projects (go to File > Export Game), if you aren't doing that already.

You can also post about it on the Discord server, where you can get real-time assistance.

Quote
It's so disappointing to see stuff like this happen. There's so many glitches with Stencyl but I've invested a year already on this game...
If you are finding many glitches it would be helpful to report them, if you aren't doing so already.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

Wasanni

  • *
  • Posts: 136
Hi Luyren,

Thanks for the quick reply. I didn't want to spam the forum every time I have a crash but if it will help with development and admins don't mind I can do that. I've been getting strange errors since yesterday and my behavior was fine yesterday morning so it must be one of those.

The first error was when I was adding text to a list with "add anything to list". After trying to figure out the issue for about 15 minutes, apparently Stencyl just needed a reboot and then no more error.

The latest error when I noticed my behavior was erased is after centering some text. I just changed the x position of the text (in a  different behavior) to be centered and then got an error. I rebooted and all was good. I then noticed an NPC wasn't walking around and saw the behavior was gone. I took the behavior from a backup a few days ago but I don't like importing resources because that seems to trigger errors/crashes so I try not to do that.

I will start posting logs whenever I get these errors.

Thanks!

Luyren

  • *
  • Posts: 2810
You can already post your logs now, it will have information from your crashes or errors somewhere in there which could be useful.

Are you using Sencyl 4.0.2, or an older build? Importing resources will only cause issues if you import a behavior that uses custom blocks from other behaviors, or if you import a behavior with the same name as one already in your game. Aside form that, importing resources should work.

As for your error with lists, when that happens it might be a good idea to Clean Project. If that fails, sometimes using print blocks in your code could "force" Stencyl to update your behaviors. That has happened to me before, but again I don't know what triggers it. And remember that hidden lists/maps must be initialized with the "create new list" and "create new map" blocks.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

Wasanni

  • *
  • Posts: 136
I'm using Stencyl Build 10417

As for the list it wasn't hidden, don't use the print block, and I did clean the project actually. It was just an empty list and I was adding text on "when created" to see if it would show when drawing. After the reboot it worked and no more errors. Either way that info you gave me can be very useful for issues in the future, much appreciated!

I've posted my logs as you mentioned in case someone wants to take a look.

Luyren

  • *
  • Posts: 2810
I'm using Stencyl Build 10417
You should upgrade to Stencyl 4.0.2. The public build is b10468, and the private build is b10495. You might be running into errors that have already been fixed.

Edit: your earliest logs have a lot of "running out of memory" warnings, and it seems you kept working while Stencyl had no memory to work with. That could probably cause all sorts of issues, perhaps including your behavior disappearing.

« Last Edit: January 09, 2020, 06:30:53 pm by Luyren »
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

Wasanni

  • *
  • Posts: 136
Perfect, I will upgrade!

Yes I have got those warnings and did continue to work because I didn't want to reopen all my tabs that I was working on but I will be sure to stop doing that if it can help avoid having these issues!

Really appreciate the help and I'll post my error logs when I encounter weird issues. Thanks a lot!!