Is there a plugin or a Method to find the error location in your project by searching for key words?

game error.png


Ive been getting the above error for so long and ive searched my project tirelessly trying to find any mention of it and ive deleted all the ones i did find, ive replaced the file under a new name for organisation reasons.
So I was wondering if anyone knows of a way to search for keywords or be able to go straight to the error by using this error path like in the photo below
game error 2.png

if anyone knows or has any ideas i would really appreciate it as ive been working on this game for almost a year now and i dont want to continue without fixing this error
thank you
This means that there is no such a file, which the game tries to load. So first, do not name your files with spacebar, use _ instead. 2nd, make sure that the file is in the image directory (MMPR_Walker_1.png), and 3st and last: find event which is using this graphic (this shouldn't be hard for a creator, because you know what it's supposed to be, right?) and set the graphic with the right named file (with _ instead of spacebars).
I am not aware of a plugin that will do this (which doesn't mean there isn't one). You can use a text editor such as Sublime Text to open your project folder and do a search for the file name in the data folder. The file it's found in will be the map, and you'll need to go to the start of that line to see the event id.

You are looking for a file called MMPR Walker 1 (with spaces), not MMPR%20Walker%201

You could also just create a file in img/characters folder with that name. Make it 576x384 pixels, and fill it in with a bright, solid red. Then view that map in the editor or in the game and look for an event that looks like that.

I'm assuming this happens when you attempt to transfer from one map to another, so that should let you know already what map it's on. If it happens when you actually start the game up, maybe even before you get to the title screen, then it's possible it's one of the vehicles in your System tab of the database.
"failed to load" can have several reasons, and the file not existing is only one of them.

the second possibility is that the filename breaks networking rules, because the browsers always have problems loading files that break their rules. And as the posts above said this is indeed the case here: all %number codes are overrides where Windows tries to force forbidden letters down the throat of the browser. And that doesn't always work. In this case %20 is the code for the space (which is indeed forbidden under networking rules).
There are a number of other rules that might cause this - for example Abc.png and abc.png are two different files under networking rules, because A is a different letter than a - Windows is the only operating system that force-loads the wrong file if the correct one does not exist, those two files will always be different for any other operating system.

and the third possibility that should be mentioned is that not the filename, but the place where the game folder is stored is breaking some rules (networking or otherwise). And the filepath above the error message is never displayed.
place a game into a folder c:\documents\gamename and everything will work.
your playtester that places the game into c:\my documents\gamename will get the error message above for a perfectly fine file, because of the space in "my documents" that would not be there in your own location...


EDIT:
and if you're looking for the place where the wrong file is referenced in your project to remove it,
I suggest using a multi-text editor (like textpad) for multifile-searching through all json files (NOT js files) of your project, and use the search term with spaces instead of the %20 override code.
thank you everyone for your help and suggestions it only happens when i do battles i forgot to mention that, I apoligise my bad
So, you still didn't solved the issue? Characters aren't used in default battle system I think, did you use a script for battles where map characters are battlers, or something?
it only happens when i do battles
that only means that the wrong picture/reference is only used in battles, nothing else.
you still need to follow our advice to correct the bug
yeah im using yanfly plugins ive tried updating them ive even redownloaded the most up to date version but still getting the issue im at a loss to be honest
If it is the animated SV enemies plugin that allows you to use characters in battle rather than battlers or enemies, then look in the note tags for your enemies.

I'd also expect, then, that it would only happen when you encounter a specific troop, or any troop that has a specific enemy.

Did you try doing the search as I suggested? That would have shown it to you if it was in note tags anywhere.
I am not aware of a plugin that will do this (which doesn't mean there isn't one). You can use a text editor such as Sublime Text to open your project folder and do a search for the file name in the data folder. The file it's found in will be the map, and you'll need to go to the start of that line to see the event id.

You are looking for a file called MMPR Walker 1 (with spaces), not MMPR%20Walker%201

You could also just create a file in img/characters folder with that name. Make it 576x384 pixels, and fill it in with a bright, solid red. Then view that map in the editor or in the game and look for an event that looks like that.

I'm assuming this happens when you attempt to transfer from one map to another, so that should let you know already what map it's on. If it happens when you actually start the game up, maybe even before you get to the title screen, then it's possible it's one of the vehicles in your System tab of the database.

Thank you shaz ive fixed it thanks to your suggestion about sublime text i really appreciate the help and thanks for everyone elses suggestions
Where was it?

Are you happy for this thread to be closed? (normally you'd report your post and say the issue has been solved)

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-plugin-or-a-method-to-find-the-error-location-in-your-project-by-searching-for-key-words.131312/