MV Web browser build breaking on an animated image load.

I have a game that uses Olivia's animated images plugin. It's almost completely fresh out the gate and yet it breaks on the web version that i upload to itch and works fine elsewhere.

It seems to be breaking when it tries to load an animated picture during my image preloading autorun event. This is why I bring up the plugin. The autorun event looks like this:

1748351817747.png

(Picture 95 is an animated picture loaded from the previous room)

The error i recieve looks like this:

1748351853613.png

"Error
TypeError: this[_0x530c(...)] is null"


Any ideas? This is so early in the project to get a game breaking bug. I really want this game on web!
Please give a screenshot of the full error trace on the console
(press F8 on the error message, then switch the next window to the console tab and make that screenshot)
I fear even if he provided that, it's not going to give us much usable information because the object it's trying to call has its name obfuscated, which means the function it's being called from is also likely obfuscated. Most likely, only Olivia would be able to track down the actual cause of that error and fix it.
Please give a screenshot of the full error trace on the console
(press F8 on the error message, then switch the next window to the console tab and make that screenshot)
unfortunately i only encounter this bug after deployment for websites
so far I see it, you need to use plugin commands or scriptcalls.

not sure why you call 2x show picture id 1.
so where is your plugin command to animate or loop it?

read the helpfile carefully though as it fails on initialize on an empty array.
unfortunately i only encounter this bug after deployment for websites
if <ou're using a full browser, then the developer tools (including the console) are somewhere in its menu. Just open them there instead of pressing F8
if <ou're using a full browser, then the developer tools (including the console) are somewhere in its menu. Just open them there instead of pressing F8
hello, sorry i didn't know about that!!! here's what the console reads, i've cut each image short because it loops the last three lines on each error a bunch.
1748420674768.png

1748420752609.png

It's calling line 166, which the entire plugin is stored on. The line defines a variable named _0x530c based off a function but i can't read it since all the variable names are similarly encrypted. I would share the line but since it's the whole plugin I would be distrubiting her work without her permission.
line 166 is imported section, the one I have unobfuscated is an empty line.
It's possible the special characters in the file name, like [2x1] is causing url problems?
It's possible the special characters in the file name, like [2x1] is causing url problems?
unfortunately that formatting is a requirement for the plugin to read the images in the pictures folder as moving images.
Do you have a link to your itch version so we can take a look at?
Do you have a link to your itch version so we can take a look at?

you can access it here with the password 'rpgmakerweb'
OK I gave it a try. It seems the problem only occurs when you play the game for the first time.
If you refresh the page it loads normally.
I guess that is because on a web browser the picture actually takes time to load, but the plugin doesn't consider that.
I think you can fix that using a preload or cache plugin to load those pictures.
For example:
OK I gave it a try. It seems the problem only occurs when you play the game for the first time.
If you refresh the page it loads normally.
I guess that is because on a web browser the picture actually takes time to load, but the plugin doesn't consider that.
I think you can fix that using a preload or cache plugin to load those pictures.
For example:
WAHHHH THANK YOU SO MUCH!! I guess it was my homemade image preloading autorun system that was causing the issue. thank you again for looking at this for me!!

Thanks guys, everything is running smoothly now!

Original thread: https://forums.rpgmakerweb.com/threads/web-browser-build-breaking-on-an-animated-image-load.177954/