Does storyboard.reloadscene() no longer trigger enterScene?

I was working on a new app yesterday, and noticed that reload scene was not calling scene:enterScene() unless I used purgeScene() in the scene:exitScene() function.

I presumed that I had simply forgotten how reloadscene works (I had remembered that it doesn’t call createScene and thought maybe it doesn’t call either function). So I used purge scene, and for that app it was actually more useful to use purge scene anyway, so that was fine.

I have now gone back to another app I have been working on, which has a restart level button. This was implemented a good few weeks ago, and was working fine. Someone tested the app for us last night, and realised that the restart button clears the current scene (i.e. it calls the exitScene function which is where I remove all of the objects) but it doesn’t call the enterScene function (which is where I add all of the objects). I know this was definitely working before, and the docs : http://docs.coronalabs.com/api/library/storyboard/reloadScene.html
say that the following functions will be called by reload scene:

*willExitScene
*exitScene
*createScene (only if scene’s view display group does not exist)
*willEnterScene
*enterScene

I have put a print(“I have entered the scene”) at the beginning of the enterscene function and it never prints if I use reloadScene.

We have updated to the latest build (942), but this morning we were using build 936 or 937 and the same problem was happening.

Has anyone else noticed this, or have I missed a change somewhere along the line?
[import]uid: 84115 topic_id: 32559 reply_id: 332559[/import]

I should add that purgeScene is not particularly helpful when reloading the scene in this app, as there are objects which fade out and delete themselves using transition.to(theobject{time= 1000, alpha = 0, onComplete=delete}).

If I use purgeScene, the objects are removed instantly and it causes an error the onComplete listener, as well as stopping the nice fade out from happening.

I’ve also noticed that willEnterScene is not being called either. [import]uid: 84115 topic_id: 32559 reply_id: 129449[/import]

I should add that purgeScene is not particularly helpful when reloading the scene in this app, as there are objects which fade out and delete themselves using transition.to(theobject{time= 1000, alpha = 0, onComplete=delete}).

If I use purgeScene, the objects are removed instantly and it causes an error the onComplete listener, as well as stopping the nice fade out from happening.

I’ve also noticed that willEnterScene is not being called either. [import]uid: 84115 topic_id: 32559 reply_id: 129449[/import]

I logged this around the 16th Oct and provided a simply test case, but have not heard back. I noticed this when switching to use daily build 2012.933, was working fine in older builds (well 894 and older).

You can work around this by calling the scene functions yourself without having to call purgeScene() by:

scene:exitScene()
scene:willEnterScene() --if required
scene:enterScene()

However, I suggest you also log a bug with Corona so hopefully they will address soon. [import]uid: 106799 topic_id: 32559 reply_id: 129504[/import]

I logged this around the 16th Oct and provided a simply test case, but have not heard back. I noticed this when switching to use daily build 2012.933, was working fine in older builds (well 894 and older).

You can work around this by calling the scene functions yourself without having to call purgeScene() by:

scene:exitScene()
scene:willEnterScene() --if required
scene:enterScene()

However, I suggest you also log a bug with Corona so hopefully they will address soon. [import]uid: 106799 topic_id: 32559 reply_id: 129504[/import]

@jcborden - do you have bug/case # handy? I am not involved with Storyboard but would be happy to at least check the status of the bug and attempt to get someone to check it out for you in our next meeting. [import]uid: 52491 topic_id: 32559 reply_id: 129588[/import]

@peach - here you go, case 18108. Thanks. [import]uid: 106799 topic_id: 32559 reply_id: 129592[/import]

@jcborden - do you have bug/case # handy? I am not involved with Storyboard but would be happy to at least check the status of the bug and attempt to get someone to check it out for you in our next meeting. [import]uid: 52491 topic_id: 32559 reply_id: 129588[/import]

@peach - here you go, case 18108. Thanks. [import]uid: 106799 topic_id: 32559 reply_id: 129592[/import]

Thank you, will this up in next meeting and see where we’re at - it does appear to have had some work done on it already :slight_smile: [import]uid: 52491 topic_id: 32559 reply_id: 129712[/import]

Thank you, will this up in next meeting and see where we’re at - it does appear to have had some work done on it already :slight_smile: [import]uid: 52491 topic_id: 32559 reply_id: 129712[/import]

Hi Peach,

Any update on this? I’m having the same issue…Thanks!

Brian [import]uid: 141982 topic_id: 32559 reply_id: 129963[/import]

Hi Peach,

Any update on this? I’m having the same issue…Thanks!

Brian [import]uid: 141982 topic_id: 32559 reply_id: 129963[/import]

I’m actually unsure on what the last fogbugz note on this means, I’ve just written to Walter so should hopefully get an answer on this shortly. [import]uid: 52491 topic_id: 32559 reply_id: 130065[/import]

Hello.

This is definitely a bug. We are aware of it and it will be fixed shortly. We just need to do a few other things with storyboard’s architecture to fix the issue properly.

Thank you for your patience [import]uid: 84637 topic_id: 32559 reply_id: 130070[/import]

I’m actually unsure on what the last fogbugz note on this means, I’ve just written to Walter so should hopefully get an answer on this shortly. [import]uid: 52491 topic_id: 32559 reply_id: 130065[/import]

Hello.

This is definitely a bug. We are aware of it and it will be fixed shortly. We just need to do a few other things with storyboard’s architecture to fix the issue properly.

Thank you for your patience [import]uid: 84637 topic_id: 32559 reply_id: 130070[/import]

I’m also trying to use reloadScene and the only event I can detect after calling it is exitScene. Please can this be looked into and fixed. Cheers. [import]uid: 62617 topic_id: 32559 reply_id: 134539[/import]

I’m also trying to use reloadScene and the only event I can detect after calling it is exitScene. Please can this be looked into and fixed. Cheers. [import]uid: 62617 topic_id: 32559 reply_id: 134539[/import]

Has there been any further developments with this? I find it annoying that it was over a year that this issue was raised and there hasn’t been a fix to it yet. [import]uid: 62617 topic_id: 32559 reply_id: 135456[/import]