Sorry but what is the adb logcat? I checked the output simulator and nothing there. Any image files I use are already loaded and used by the time I try to exit the game. I play one level and then I show two buttons. One to play again and one to exit the game. The play again works. and all the exit goes is try to go to another scene which is the previous (sceneHome) and it locks before getting there.
adb logcat is a part of the Android SDK that lets you see the logs on your device. In the Corona Simulator, when your app uses print(), it shows in the Corona Simulator Output window. Likewise, on Android, it shows in the device log, which you can view using adb logcat. If you’ve never used it before, it’s critical that you give it a try, since most likely you’ll see an error message that will point you to whatever the problem is.
- Andrew
Thanks, this will probably be helpful once I learn how to use it. I’m googling the name now to see what I need to do to use it with Windows and my phone.
I installed CatLog and ran the my app with it but I really could not follow the log too much and did not see anything that stood out for me. I’ll be glad to even pay someone if they can fix it. Let me know and I’ll email you the code.
Thanks!
I still cannot find why this scene will not exit. I do not think it is related to the device or to any case-sensitive typos because everything is already loaded before I try to exit the scene. And I can exit any of the other scenes. This is the only one that is a game scene though. If anyone sees what can cause this please let me know. Again, I will even pay for the solution. I have been stuck for two weeks now. Source code to the scene is above. Let me know if you want the entire project to look at.
Thanks!
I just want to double check. Your scene file name is sceneHome.lua and sceneGame.lua, not scenehome.lua or scenegame.lua?
I don’t know about the CatLog command, but if you used the “adb logcat” tool, you can put a qualifier on the end:
adb logcat Corona:v *:s
that filters out all but Corona generated messages. Perhaps you could put the Corona:v *.s in your tool somehow and see if that helps. If not, please install the adb tools, and run that command from the “cmd” command line terminal. Without it, helping you further is going to just be a guessing game. Even if you can’t make sense of it, there are people who can. Post the output here.
Okay, I have the android sdk installed on my pc. When I type what you sat above it sits there with Waiting for device. Do I need to install anything else? I have a samsung galaxy s2 phone. Do I need to install anything for the phone? I tried searching and cannot find more information. Everything I find assumes you know all of this already.
When I type adb devices for a list of devices attached it just returns List of devices attached with nothing below it. So it must not see my phone.
Thanks,
Warren
Today I was playing with the app LogCat on my phone and ran the game with it and then looked at the log. I did the filter for corona and saw the error. It says I am getting a runtime error - module ‘sceneHome’ not dound: resource (sceneHome.lu) does not exist in archive.
Why did it say sceneHome.lu instead of .lua at the end? When I am calling the gotoScene I am just calling the sceneHome and not the extension. Also when I look at the screen shot further down it does refer to sceneHome.lue. Why can it not find the file? It starts out on this file when I go to the game.
Here is the function when I click to go to sceneHome:
local function nextScene( event ) if event.phase == "ended" then storyboard.gotoScene( "sceneHome" ) storyboard.purgeScene( "sceneGame" ) end end
Here is the log for the error:

Thanks!!!
The logging simply leaves of the “a” in .lua. You don’t need to worry about it. When you see .lu, it means .lua.
All of your scene files are .lua files that you pass (without the .lua) to the storyboard functions. In other words:
storyboard.gotoScene(“sceneHome”)
is trying to read in sceneHome.lua and I would be willing to be that you have the file named something like “scenehome.lua” (all lower case) or maybe “SceneHome.lua” with that capital S or some other situation where you have a case sensitivity problem. The scene name in storyboard.gotoScene() has to match exactly with the filename stored in your project (without the .lua, and the .lua has to be all lower case)
I appreciate the help but I checked the files in the folder and the code and it is correct. It must be something else because on the device I can go to sceneHome from the menu on every page except for the game scene. I posted the code that is in the event nextScene above. I changed it to another scene in my app such as sceneEvents and the same thing happens. I can go to the sceneEvents from any other page but not from the sceneGame page.
I’ll try again posting an update under the jobs forum to see if someone can fix this for a payment because I cannot figure it out.
Attached is the full project minus one of the Facebook scenes because of my info in it. It has a few things changed because I thought the sound and other controls were causing the problem so I either removed or commented out some stuff.
I have been stuck on this for a couple weeks now. If anyone can help please let me know.
Thanks!
Warren
The attachment didn’t come through. That error message means either sceneHome doesn’t exist or it has errors.
Can you capture a directory listing of your project folder for me?
Thanks for looking into this. I made a screen shot of the directory listings. I also re-uploaded the file for the project with the link below.
Here is the directory:

And here is a link to the zip file for the project:
DARN!!! In the window I see Scene capitalized… I SWEAR it wasn’t before. Let me try to fix this now…