MV Why does the game crash when entering a battle with an image on screen

It may be one of my plugins but whenever I enter a battle with any type of image the game just crashes and says "Cannot read property 'top' of undefined". I do have a plugin that has to do with images but even when I disable it still crashes leading me having to resort to erasing images before a battle. When it comes to wild encounters there's nothing I can do about that so I have to use no image in the maps with them. With my particular game heavily using image overlay lighting, it is quite a sacrifice having to erase the lighting just to get the game to work. Can anyone help me fix this or at least point out why this is happening because I'm pretty sure this isn't normal. I'll provide a screencap of the crash screen and the plugins I'm using.


Screenshot (45).png
Screenshot 2021-12-09 124908.png
Try starting a brand new project, add a picture and see if the game crashes when going into battle. If it doesn't, that means it's related to a plugin.

When you get the error, hit F8 to open Developer Tools, go to the Console tab, and get a screenshot of all the error messages shown there. That will also confirm if it's a plugin causing the issue.
it might be scene related..
-> i mean going to battle is the battle scene, and the system probably cant find whatever data is required, in that battle scene with the current setup..
no matter which plugin is responsible.

I am not sure if thats helpfull, but if thats the case you could try to add the needed data to the battle scene aswell
(as walkaround, if those imgs should be displayed in battles aswell)

Or if you dont want the imgs to be used in battle scene, you must make requirements that, make sure to not trying to load the img data in battle scene..
-> thats probably the better solution

(this requires to know which plugin is responsible and to edit that plugin, at the point where it is requesting the error causing data.. in order to add a "if condition", that doesnt apply the "request data stuff" in battle scene)
I think I got an error like this once where I didn't type the image name properly. So it might have something to do with how it parses that.
@dopan I don't remember if I've said this to you before (if I have, and you just like doing it, then that's cool, I'm not picking on you).

But that light grey/purple color you like to use is pretty difficult to read. It pretty much blends into the pale blue background.
@dopan I don't remember if I've said this to you before (if I have, and you just like doing it, then that's cool, I'm not picking on you).

But that light grey/purple color you like to use is pretty difficult to read. It pretty much blends into the pale blue background.
thats a bit off topic, i dont remember if you mentioned it, but however thx 4 the info..
And well i will consider this, but we are a bit limited in color usage, because i was told that some colors are reserved for mod usage...

and i myself had never problems to read this <-- (i wont use this here)
so i wasnt aware that this is an issue ( i will use this version instead, more often ..)
I am pretty sure it has to do with the "Bind Pictures To Map Plugin" but I'm not quite sure. It's one of the only plugins that have to do with images.
I am pretty sure it has to do with the "Bind Pictures To Map Plugin" but I'm not quite sure. It's one of the only plugins that have to do with images.
so this has probably something to do with the scene on which you are..
"on Map" is the map_scene..
Battles happen in the battles_scene
(and you told us that Battles trigger the error)

google assumes you mean this plugin:
(perhaps it makes sence to ask in that thread aswell, incase somebody else had a similar problem..and solved it already)

However i tried to read in that plugin code, and it should already ask if scene is mapScene..
-> so perhaps the problem is related, to have other plugins , that are not compatible with the "Bind Pictures To Map Plugin" ..
(for example if another Plugin overwrites a function from that plugin, so that it wont work correctly)
-> or a wrong plugin order in the PlugnManager..


if you want help with this issue you must use F8 after the Error happened, to open the console and make screenshots of the red error text..
-> or else it will be really hard to find the "problem trigger" & the related javaScript_Code
@Shaz It seems it does have to do with a plugin. I can't tell if it's telling me to get another plugin or some plugins aren't compatible.
Screenshot 2021-12-11 100157.png
Moved to: Plugin Support

So is it at the point where you're trying to load a new picture, or is there already a picture loaded and displayed? Are you sure the name is spelled correctly, including correct use of capitalization?

well i will consider this, but we are a bit limited in color usage
You don't have to change colours at all 😉

Original thread: https://forums.rpgmakerweb.com/threads/why-does-the-game-crash-when-entering-a-battle-with-an-image-on-screen.142854/