Really, really stumped now. I'm hoping this isn't a storyboard bug but Corona is giving me basically no way to find the problem. (783/785 OSX)
What I did: I just made a button to go to the previous scene.
-- in news.lua, inside the touch event:
local thisScene = storyboard.getCurrentSceneName()
if thisScene == "news" then
print ("yes, you're getting this far") -- sanity check
print("thisScene", thisScene) -- news
Touching the button gives the usual vague and useless warning:
"WARNING: Cannot transition to a scene that does not exist. If you called storyboard.removeScene() on a scene that is NOT represented by a module, the scene must be recreated before transitioning back to it."
1. main.lua loads weather.lua first, so I know it exists and I know it works.
2. If I require "weather" into news.lua, no error is thrown.
3. If I touch the button at all, all storyboard.gotoScene events no longer work across the app.
4. Removing the transition or changing the transition does not affect the outcome.
5. Removing all other buttons from the scene does not affect the outcome.
6. I otherwise do have another button in the scene that does
work if I point it at the same scene (!!)
7. I wiped out the target scene so it has nothing but the storyboard code and a hello world statement. The other lua file still can't find the scene.
8. I tried preloading the scene using storyboard.loadScene("weather"). No errors thrown but it still cannot find the scene.
uid: 41884 topic_id: 24131 reply_id: 102431