MV Some questions regarding games deployed onto browser.

Hi some questions regarding games deployed onto browser [server]

I'm testing out the game im working on browser.
But when deployed to the browser, the effects/pictures are not spawning most of the time, it spawns/shows only sometimes.

here is a vid of the game when deployed on a server, on browser [also, the same case when ran on local browser using npx http-server]



As you can see on the vid, its the effects[picture slash] is not always showing up

After trial and error with console.log, I saw that this
1681429160630.png

Isn't always getting called everytime I use the skill [Slash], while in editor, it gets called 100% of the time, but when deployed into browser, it does not get called most of the time as seen on the Video.


Here is the vid when the game is played via editor.

it could be dozens of different things

my first guess is a folderpath with illegal letters (letters that are not allowed under networking rules).
There are overrides to force the use of spaces and the like into browsers, but those overrides are not perfect and can mess up.
if you check the title line during playtest you'll see that the editor actually creates a virtual path exactly to prevent this problem, but under windows you are the one responsible for handling it by naming the folders and files correctly.

second guess would be loading delay, but that would not be there on a local server unless the server is really badly configured.

third guess is a background browser check against infected websites - many of the different AV and protection programs have difficulties handling HTML5-games like the ones produced by RM.
it could be dozens of different things

my first guess is a folderpath with illegal letters (letters that are not allowed under networking rules).
There are overrides to force the use of spaces and the like into browsers, but those overrides are not perfect and can mess up.
if you check the title line during playtest you'll see that the editor actually creates a virtual path exactly to prevent this problem, but under windows you are the one responsible for handling it by naming the folders and files correctly.

second guess would be loading delay, but that would not be there on a local server unless the server is really badly configured.

third guess is a background browser check against infected websites - many of the different AV and protection programs have difficulties handling HTML5-games like the ones produced by RM.
but the image does show, the function to spawn the image is not being called always, just sometimes when deployed to browser. if you check the vid, there are instances wherein the slash effect is being shown.

compared to editor/game.exe, wherein it always show 100% of the time.

so what I did was put a console.log on the addLoadListener event, on the screenshot posted on my post, encircled.

and saw that in editor/game.exe, its being called everytime I use Slash.

but when deployed to browser, its being called like 1/10 times only,
There's something wrong with your post. You say
After trial and error with console.log, I saw that this
Isn't always getting called everytime I use the skill
but there's some invalid attachment there that isn't visible.
There's something wrong with your post. You say

but there's some invalid attachment there that isn't visible.
Oh my bad, attached the image.
Oh. It was fixed by commenting out this code

1681475840981.png


Any idea what may the implications be for commenting this code? Like what does isReady() do? And how does it turn true/false?

@Moderator -> You can close this thread ~ 🙂
It checks if the image, effect, and font managers are "ready."

So in your case, I would expect it's checking whether the animation was preloaded, then canceling out of the picture if it's not. So it's avoiding having any loading lag by just not showing it.

But that's just my guess from your screenshot, I've never read through this plugin nor used it.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/some-questions-regarding-games-deployed-onto-browser.156658/