Having Troubles with Sprites in Events - (failed to load image .png) - How do I fix it?

flakeygm

Villager
Member
Joined
Feb 1, 2018
Messages
7
Reaction score
0
First Language
German
Primarily Uses
RMMV
Just now I renamed some of the sprite files within my games images folder, after that I couldn`t do anything at first, as the screen was blocked with an error screen saying: Failed to load image name.png. That one I was able to fix myself, but now when I test the game and try to talk to NPC´s it pops up again - requesting to see one of the sprites. I have already searched for every mention of the sprites requested and changed it if necessary but it still keeps showing up! What can I do to fix the problem once and for all? :kaocry::kaodes:

I also attached a screenshot for clarity if that helps.
error.png
 

Suv

The average user
Veteran
Joined
Mar 2, 2016
Messages
97
Reaction score
53
First Language
Polish
Primarily Uses
If it's asking for that png then either it's still embedded in that event or other supporting events (like common events), scripts or plugins. If you can't find it specifically you can try building the event from ground up again (copying and pasting event elements one by one). Something should eventually come up.

Worst things worst, you can put a dummy transparent png for now, if you don't feel like looking.
 

flakeygm

Villager
Member
Joined
Feb 1, 2018
Messages
7
Reaction score
0
First Language
German
Primarily Uses
RMMV
If it's asking for that png then either it's still embedded in that event or other supporting events (like common events), scripts or plugins. If you can't find it specifically you can try building the event from ground up again (copying and pasting event elements one by one). Something should eventually come up.

Worst things worst, you can put a dummy transparent png for now, if you don't feel like looking.
The thing is it happens when I talk to any NPC at all - not just the ones using the sprite PNG. Plus I haven`t made any common events yet - so I really can`t seem to find the source of the problem ;-;
As for Plugins and scripts, how do I check if they are calling on that page specifically? I don`t really have any experience with scripting - let alone searching scripts for events either :kaodes:
 

Suv

The average user
Veteran
Joined
Mar 2, 2016
Messages
97
Reaction score
53
First Language
Polish
Primarily Uses
Usually if you didn't set up a plugin to use the picture it won't cause any problems in that regard (well unless the plugin comes with some image requirements of it's own but it's usually stated). But from the way you describe it, it doesn't look like it's the case.

I don't know how exactly you handle event processing for talking, and it's quite hard to help looking for what's asking for that specific picture if you don't see the code. Does it happen only on this map or on all of them? Does it pop up when you try to interact with any event? Or just some of them? Have you checked if each event page has the corresponding character picture (if it's not there, the event page picture may still lead to it, even if the picture itself is blank).

Try looking for these kind of questions yourself as it's almost guaranteed you will always run into bugs during development. After a few you'll be able to identify the problems yourself.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,370
Reaction score
7,678
First Language
German
Primarily Uses
RMMV
OK, here are the basics:

That failure message always, and only, means that somewhere inside your project something is set to use a specific file and it wasn't able to find that file on loading.
If this happens after you renamed a file, then that means you have used that file somewhere in the project and forgot to change that reference to the new name. In case of a sprite - those are often used in multiple locations and it seems that you missed one of those locations.
Continue searching until you have corrected all such references, no other choice.

However, there is one thing you need to keep in mind:
MV operates under networking rules for filenames.
Under networking rules, Abc.png and abc.png are two different files - only Windows has that stupid override that loads the file with the wrong name if the correct name does not exist. So you need to make sure that the reference and the spelling of the file is identical even with capitalization.

Additionally, spaces are forbidden under networking rules - you need to remove all spaces from not only filenames but also folder names, or the game will not be able to load the files (or any file if you placed the project into a path with spaces or non-latin letters)
 
  • Like
Reactions: Suv

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,882
Messages
1,017,231
Members
137,607
Latest member
Maddo
Top