if there's an error, it should default to loading an empty file.
Hiding errors by using something similar to "rescue" (in this case loading an empty file is a way to hide the error) is
hardly a good practice. It is much better to take time to understand what is causing the error rather than "eliminating" it with a quick and not definitive fix. If the engine is not loading an image and you load an empty image instead, sooner or later you will see nothing when you should see an image instead.
And it appears to only happen if it clashed with RTP, in a normal circumstance where the filename is different than the RTP one.
Yes, you are right, I didn't mention the RTP in the first post and I can see how it can be misleading. I will change it promptly in order not to mislead potential users with the same problem in the future. Anyway, as I said, besides that exception, everything else works as you said and the engine prioritizes files with the right extension. Not only does it show them correctly in the engine, it also works in-game (and I am 100% sure of that because I tested it).
EDIT
@TheoAllen I modified the first post, thank you for pointing that out.
EDIT 2
sorry to disappoint you, but I'd like to add but and ifs
I am not disappointed at all. It is not like you negated the existence of the exception I mentioned (it does exist, and negating its existence would just be plain wrong, that is what I meant with "no ifs and buts").
I only mentioned that exception because you said that the extension does not matter, which is not true in that situation and it is the main reason why I said that it might cause errors. As I said in my previous post, besides that exception, what you said is true.
Also, why would pointing out the missing RTP part in my first post disappoint me? It was the truth, adding it only makes things easier to understand and leaves less room for personal interpretation of my post, while not having it can be misleading. I deem what you said quite useful.
Only a petty person who would take it on a personal level could be disappointed because of that, and I do not consider myself one. After all, posting on this forum is a way to help other people, taking it on a personal level only means that one is trying to show off and does not want other people to prove him or her wrong. That would mean being here for the wrong reason.