*BAM*
you are using *indexed color" image mode format.
Can’t do that.
has to be RGB Color mode. 8 Bits *not indexed color mode"
C
[import]uid: 24 topic_id: 5682 reply_id: 33420[/import]
*BAM*
you are using *indexed color" image mode format.
Can’t do that.
has to be RGB Color mode. 8 Bits *not indexed color mode"
C
[import]uid: 24 topic_id: 5682 reply_id: 33420[/import]
Huh. Got the thing working finally! Turns out I was trying to load too much at the start up as mudstuffing suggested.
I’ve now fudged a solution which seems to work fine for now, though I’ll probably need to dedicate some time to just initialising the menu system at start and delaying any code loading until absolutely necessary. [import]uid: 11757 topic_id: 5682 reply_id: 33426[/import]
never mind me. i haven’t had my morning triple shot cuban coffee… ignore my previous post.
c. [import]uid: 24 topic_id: 5682 reply_id: 33428[/import]
Hehe, I’d figured you were responding to Jason5 anyhow.
But please, no talk of coffee; I’ve bust all my methods of making fresh coffee over the last week and things have been… difficult. [import]uid: 11757 topic_id: 5682 reply_id: 33429[/import]
This was fixed for me by Carlos, I had a file being written to, which was to be newly created on the phone. When I did not have the correct error checking coded, it showed only a blank screen on the device. This seems to be able to happen with anything. [import]uid: 7197 topic_id: 5682 reply_id: 33432[/import]
I have found a couple of issues with this, yes it would be great if Ansca could make the simulator just as strict as the devices, that would save a lot of heart-ache for newbies. Anyway, 3 main things that you need to check, 2 of which seem to be well documented with respect to image formats and case sensitivity, if you are used to case sensitive languages this shouldn’t be too much of an issue. The one that got me, was a circular reference, whereby I had a reference to ‘main.lua’ in file ‘menu.lua’ and a reference in ‘menu.lua’ to ‘main.lua’ (it was not intentional, it was an artifact leftover from an earlier dev cycle). This however had no effect in the Corona Simulator, but would crash the app on iOS with an obscure error, and on android the app would fail with ‘APK Corrupt’ message. Removing the circular reference resolved the issues. (I basically rebuilt my game step by step moving small chunks of code across bit by bit to identify the issue, so glad that wasn’t a native app!!! )
(Ansca PLEASE PLEASE PLEASE make the simulator as strict as possible (even stricter than the devices would be a safe bet?)
Hope This helps [import]uid: 51222 topic_id: 5682 reply_id: 35741[/import]
@nielster : good idea ! will add to feature pile
c. [import]uid: 24 topic_id: 5682 reply_id: 35742[/import]
Yes; we just got burned with the black screen on devices (iPhone4 & iPad) but the Mac simulator ran code just fine. Wasted about an hour trying to figure it out - then we looked at the forums and found the answer about the case sensitivity - which was our problem.
HOWEVER, now the problem I’m encountering is that I create the build on my Mac and have the application - which I drag into my iTunes Apps area, it copies, but it’s not updating during SYNC. I’m being forced (today, not yesterday) to delete the App from the device AND iTunes, then recopy for a SYNC to adequately take place. Very strange. Different behavior yesterday. [import]uid: 74844 topic_id: 5682 reply_id: 46377[/import]
MY SUMMARY OF WOES AND HITS
We’re unlucky and lucky as well…we hit ALL the problems, and then solved them all with help from this forum!
Installation with AppInstaller or “adb install” both works fine, so don’t have to worry that these are the cause of your problems.
Enjoy people! [import]uid: 58387 topic_id: 5682 reply_id: 57436[/import]
Hi all
I am back to this issue.
I have checked all of my file names.
Running good on simulator.
Black screen comes straight after loadingmenu.lua
Getting mad now. And no Carlos or Peach. Who willl help? [import]uid: 52900 topic_id: 5682 reply_id: 142929[/import]
Errors in build.settings will cause the app to not run on device as well. Also you may be hitting some other error. Do you have the “adb” tools installed? Can you run an “adb logcat” with your device tethered and watch for errors and see why it’s crashing?
[import]uid: 199310 topic_id: 5682 reply_id: 142957[/import]
I don’t even know what adb tools are. I am building for ios not android.
I have checked and re-checked all of my file names. [import]uid: 52900 topic_id: 5682 reply_id: 143018[/import]
my build settings look fine too.
settings =
{
orientation =
{
default = “portrait”,
supported =
{
“portrait”, “portraitUpsideDown”
}
},
android =
{
versionCode = “1”
},
androidPermissions =
{
“android.permission.WRITE_EXTERNAL_STORAGE”,
“android.permission.RECORD_AUDIO”
},
iphone =
{
plist=
{
UIStatusBarHidden=true,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”,
},
},
}
}
settings.iphone.plist[“UIInterfaceOrientation~ipad”] = “UIInterfaceOrientationPortrait”
settings.iphone.plist[“UISupportedInterfaceOrientations~ipad”] =
{
“UIInterfaceOrientationPortrait”,
“UIInterfaceOrientationPortraitUpsideDown”
}
[import]uid: 52900 topic_id: 5682 reply_id: 143021[/import]
Since your doing iOS have you tethered your device to your laptop, and used XCode’s Organizer to look at the console.log for your device? [import]uid: 199310 topic_id: 5682 reply_id: 143051[/import]
Feb 17 13:54:09 Joannes-iPad-4G kernel[0] : launchd[4446] Builtin profile: container (sandbox)
Feb 17 13:54:09 Joannes-iPad-4G kernel[0] : launchd[4446] Container: /private/var/mobile/Applications/1F2E6FFF-B634-4BB5-AD47-7B1BA61A004E (sandbox)
Feb 17 13:55:07 Joannes-iPad-4G mediaserverd[39] : 13:55:07.927 AcquireLock – the mutex was already locked
Feb 17 13:55:07 Joannes-iPad-4G mediaserverd[39] : 13:55:07.930 AcquireLock – the mutex was already locked
Feb 17 13:55:09 Joannes-iPad-4G backboardd[26] : CoreAnimation: updates deferred for too long
Feb 17 13:55:10 Joannes-iPad-4G backboardd[26] : CoreAnimation: timed out fence 298ab
[import]uid: 52900 topic_id: 5682 reply_id: 143081[/import]
Is that all in the log? I would have expected to see a lot more in particular messages from your app. [import]uid: 199310 topic_id: 5682 reply_id: 143134[/import]
Hi all
I am back to this issue.
I have checked all of my file names.
Running good on simulator.
Black screen comes straight after loadingmenu.lua
Getting mad now. And no Carlos or Peach. Who willl help? [import]uid: 52900 topic_id: 5682 reply_id: 142929[/import]
Errors in build.settings will cause the app to not run on device as well. Also you may be hitting some other error. Do you have the “adb” tools installed? Can you run an “adb logcat” with your device tethered and watch for errors and see why it’s crashing?
[import]uid: 199310 topic_id: 5682 reply_id: 142957[/import]
I don’t even know what adb tools are. I am building for ios not android.
I have checked and re-checked all of my file names. [import]uid: 52900 topic_id: 5682 reply_id: 143018[/import]
my build settings look fine too.
settings =
{
orientation =
{
default = “portrait”,
supported =
{
“portrait”, “portraitUpsideDown”
}
},
android =
{
versionCode = “1”
},
androidPermissions =
{
“android.permission.WRITE_EXTERNAL_STORAGE”,
“android.permission.RECORD_AUDIO”
},
iphone =
{
plist=
{
UIStatusBarHidden=true,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”,
},
},
}
}
settings.iphone.plist[“UIInterfaceOrientation~ipad”] = “UIInterfaceOrientationPortrait”
settings.iphone.plist[“UISupportedInterfaceOrientations~ipad”] =
{
“UIInterfaceOrientationPortrait”,
“UIInterfaceOrientationPortraitUpsideDown”
}
[import]uid: 52900 topic_id: 5682 reply_id: 143021[/import]