Is it possible to hide "Failed to find image" warning log?

Same problem here, we use @2x and @4x but in some small sprites we do not need this so we use only one .png version. 

We have a lot of different images and sprites so any 20-60kb are critical to be under 50 mb Google Play (avoid wifi connection alert), and also affects to User Acquisition (less size, more downloads).

I found that this warnings really affect performance in some game situations. It would be really helpful to have some kind of flag to deactivate this warnings in Corona.

Thanks,

You’re right about that cost.  I have to pay it for an app I’m currently actively developing, but if I could avoid it I would.  

Excellent choice, to only do it on the simulator though.  I too hate excessive error messages while debugging in the simulator.

I doubt the overhead for checking is much more than trying to load the image and having it fail.

Rob

@Rob,

You’re right.  Loading the file as a test and loading the file to build the image should be about the same (or even less).

However if you check for existence every time, you pay for two loads every time. i.e. Load to test + Load to display.

On the other hand if you use failed creations as a test, you pay a near-zero cost for failed loads which should result in a remote request.

Thus you pay one load per load plus a small failed create cost followed by the long download time on missing image cases.

PS - I’m not sure if there is any hidden caching going on for a previosly loaded file (via io), but I assume there isn’t.

I have learned i/o operations (saving to/loading from disk) would cause significant impact on graphic animations, especially for Android devices.

For the case that an image exists, extra i/o check is done just for turning off the log, which is something I don’t want to do.

I think this warning message was not there earlier, it was added probably in recent few months. Not sure about the intention, maybe to remind the developer what filename & path are missing? But for apps that might load images that don’t exist, the warning message will become annoying.

Is there any way to remove this warning? We have particle images in our game and only use 1x versions. The game is constantly warning that it cannot find the 2x version. I think this is a bug. The 1x versions of the images are loaded properly, it just keeps warning that it cant find the 2x. We don’t need 2x versions for these particles. It should only produce the warning if the 1x image is missing in my opinion. Any ideas?

Hi @nahmeenstudios,

In my opinion, you should just include the @2x version of the particle. If it’s a particle for a particle effect, I can’t imagine its overall size would be more than 20 KB… but if you really don’t want to include it, you’ll have to accept the warning. The particle engine automatically looks for the proper version of particles, and there’s no way to opt out of that.

Best regards,

Brent

The question is…  the reason CoronaSDK insists to print out the warning log for?

Presumably they insist on it because for most people it would be better to be notified that you’ve overlooked an image in your project.

If you were to be able to opt out entirely then sure you wouldn’t get the message about your particles, but you also wouldn’t get it for your background or main character. If you don’t have the device to test on it can be easy to overlook it altogether.

In my example the image is there, just the 2x image is missing. Display.newImageRect chooses 2x if it is there but works fine with a 1x image if there is no 2x. The message isnt helpful. I purposely only have 1x particle images.

In reference to Alan Quiztix example, if you forgot the 2x version of your main character image then it would look horrible and blurry. If you launch a game with blurry images than it is the devs fault.

Same problem here, we use @2x and @4x but in some small sprites we do not need this so we use only one .png version. 

We have a lot of different images and sprites so any 20-60kb are critical to be under 50 mb Google Play (avoid wifi connection alert), and also affects to User Acquisition (less size, more downloads).

I found that this warnings really affect performance in some game situations. It would be really helpful to have some kind of flag to deactivate this warnings in Corona.

Thanks,