MV Is there a way to defeat MV's "can't find xxxx.png" popup?

MV has this popup which appears if an image is missing, which will repeat, over and over, because the only button on the popup is "retry". While this is great for testing, it's problematic for commercial titles as I'd prefer they fail silently, or just display a generic "broken image", like a default chequerboard image.

Has anyone ever made anything to do this? Is it possible?
yes and no - but the better question is why you would even sell a game that has some of its images missing?
It's usually a bad idea to hide an error, all errors should be solved before you even try to sell a game.
File xxxx.png is missing? Then fix it by placing that file where should be... If you try to sell a broken game you may end up like John Romero with his Diekatana.
yes and no - but the better question is why you would even sell a game that has some of its images missing?
It's usually a bad idea to hide an error, all errors should be solved before you even try to sell a game.
I disagree.

Most commercial games have errors, in fact, nearly all do. But they usually manifest in a way that allows the user to carry on, so although they need to be fixed, they don't simply stop gameplay and totally ruin the experience.

I'm looking for a way to maybe load a default image if one is ever not found, so as to ensure that gameplay could continue, after I've spent a lot of time trying to eliminate every error.
I'm looking for a way to maybe load a default image if one is ever not found
in that case,

Moved to: Plugin Requests


What is it that's causing it to repeat the popup? By default, if an image can't be loaded, the game will crash. So you must have some plugin that's already detecting the error and overriding the default behaviour. Depending on how it's doing that, it might be an easy tweak to make it load a blank sprite instead.

But I agree - better for you to fix it in the first place. Most game ship with bugs, but usually it's because the developer isn't aware of them until release when a few more people are playing and doing weird things.
Finished games ship with bugs like niche engine behavior that wasn't revealed through playtesting, or errors in calculation of some sort, or unexpected behavior on specific hardware configurations...generally not blatantly missing assets.
I agree with @ATT_Turan on this one.

Most bugs in games are usually related to programming errors/oversights, localization errors and unexpected interactions between the game structure and user hardware.

Missing art is something that usually does not go unnoticed. Especially during playtesting.
Additionally, missing art is not something that happens "unexpectedly". Either the asset is there or not.
The only way something can go missing is if the user themself removes the asset from the folder.

So if you can play through your entire game 100% without any graphics missing, then so can the player.
I agree with @ATT_Turan on this one.

Most bugs in games are usually related to programming errors/oversights, localization errors and unexpected interactions between the game structure and user hardware.

Missing art is something that usually does not go unnoticed. Especially during playtesting.
Additionally, missing art is not something that happens "unexpectedly". Either the asset is there or not.
The only way something can go missing is if the user themself removes the asset from the folder.

So if you can play through your entire game 100% without any graphics missing, then so can the player.
Depends if you're using fixed image files or generating the file names programmatically. Cross Engine is built on Moghunter's code, which by default assume that every Enemy.png has an associated Enemy_damage.png (and characters all have character_idle, character_run, character_pick images, etc)

Since this isn't always a good assumption (and is a real pain when doing mockups of new enemy types), I scan the image directory on startup, make a full filelist, and whenever the game looks for a programmatically-created filename, it'll fall back to the original one if that file isn't present. So if you stab an enemy with no damage sprite, it just wiggles through a walk animation, rather than crashing the game.

Downside of this approach is that I can't add Enemy_damage to a live project, I have to restart the game after adding the file so it'll rebuild the file list.
That the engine does with this sound effects/music/music effects/BGS really, really drives me to fixation. I can understand the program freaking out over a missing image file, because it doesn't know what to put on the screen and it's purpose is to put things on the damn screen and move them around but seriously, why an endlessly repeating crash popup for a missing sound effect? Like, just play no sound if you can't find the sound you're supposed to play, like just notify the player once and then shut up about it? Like don't keep flashing "Wind4.ogg not found" for forever and eternity?? It's just such a weird and annoying default behavior for the engine to have.
Depends if you're using fixed image files or generating the file names programmatically. Cross Engine is built on Moghunter's code, which by default assume that every Enemy.png has an associated Enemy_damage.png (and characters all have character_idle, character_run, character_pick images, etc)

Okay, this is a fair point.
However, wouldn't that also fall under the category of "programming error" instead of "missing assets"?
Please correct me if I'm wrong.
Okay, so here's another example I want to ask about which is along the same lines.

Two of my players have this error:

1623066446819.png


When they restarted and played again, the error did not occur (for each of them the error was in a different part of the game).

Judging by the 2 instances that I've seen (in thousands of playthroughs), it occurs when you call a "show picture" followed by a "move picture", when the show statement hasn't fully loaded the image before the move statement kicks in.

We've been unable to debug it because we can't get it to happen in-editor, as it only seems to happen under high load on lower spec machines. We've had thousands of people play through the chapters of the game, and I personally must've played through them hundreds of times without this issue.

The game engine, in this scenario, in exported builds, should really "fail silently". There should be a null check on this function, and if null, it should just escape from the function and return an error code which is logged silently. This kind of functionality is fine for the type of song-and-dance it should make when debugging.

Because as a developer, I can't fix this sort of issue, because it's so random. I could play the game for 30,000 hours and not see it. But one player who has bought the game will see it; when if there was a null-check, in ONE part of the game, ONCE, an image would not appear when it should do. An inattentive player may not even notice, it's blink-and-you'll-miss it.

Wanting an engine to "handle errors graciously" in a commercial game build isn't being lazy. If a texture is missing from a game in Unreal, the game doesn't crash or fall over; it'd just display a garbled texture and allow the player to move on (and probably sends an error-log to a server somewhere, but that's a larger task).

RPGM probably needs a deployment option for if you want "verbose logging" or similar turned on/off, and if OFF, the game tries to keep running even when something has gone wrong.

For this one, I'm going to put a 2-frame "wait" between the Show and Move commands, because that's all I can do.
There is this: ThroughFailedToLoad.js
It simply disables the error popup if an image or audio is missing. So the game can keep running.
Okay, this is a fair point.
However, wouldn't that also fall under the category of "programming error" instead of "missing assets"?
Please correct me if I'm wrong.
I'd say it's more 'brittle' code; it works just fine given very specific assumptions, but breaks if pressure is applied unexpectedly.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-defeat-mvs-cant-find-xxxx-png-popup.137213/