When I get lua to load an image (using code like "Graphics.loadImage(Misc.resolveFile("example.png"))") and it's nil, I receive an error.
This is obviously to be expected, however, I want to make it so if the image path is nil, then it will load a different image. The problem is that the error is triggered by loading the image, instead of when lua draws it.
This is obviously to be expected, however, I want to make it so if the image path is nil, then it will load a different image. The problem is that the error is triggered by loading the image, instead of when lua draws it.
Statistics: Posted by AiriableConditions — Fri Jun 07, 2024 5:45 pm