Game crashes and help with flickering

Hi.
I'm an NSFW content creator (I hope it's okay to mention that here) who just started learning using RPGMV earlier this year. I have 2 issues that keep occurring in-game, so it'd be amazingly appreciated if anyone could help me solve these following problems:

1) Constant game crashing
My players keep saying that the game crashes at least 2-3 times in their 90-minute gameplay. I checked all events that might cause it but there were no indications. After analyzing and researching, could this be due to my plugin order?
help for plugin order crash.png

I have a feeling that I put them in a the worst order possible. LOL.
If that's the case, these are my questions:
a) those are the only plugins I need (except for the "OFF" ones), what would be the correct order?
b) should I delete the plugins that I turned off?
c) I see many rpg devs in this forum using tons of plugins that I dont think I'll use, but should I use those too for the sake of aesthetics?

2) Help with flickering issue
As an NSFW project, I implemented a simple stop motion technique by inserting a "picture-wait for frames-erase picture" method. Turns out the higher the computer spec my players have, the smoother the stop motion is and vice-versa. There was a guy who suggested me to use Yanfly's picture spritesheets, but due to my lack of knowledge in using it, I gave up after reading the instructions.
This is the example of the video of the flickering in-game (I hope it's okay to use an external link)

Warning: Soft NSFW content up ahead
LINK

The programming box thingy:
help for plugin order crash 2.png


My questions:
c) Is there any way to solve this flickering while still using the stop motion technique I'm applying?
d) If you noticed from the video, when the MC wears her normal clothes back, the flickering is gone/less. What would have caused this? because I used the same method.
e) Will Yanfly's picture spritesheets really be the ultimate solution? if it is, I would like to learn about it but I haven't found any tutorials how to really use it for beginners like me.

Thank you.
Any help will be deeply appreciated.
After analyzing and researching, could this be due to my plugin order?
First off - it sounds like you need to be playtesting your game more. When you're playtesting, you can access the developer console (F8, Console tab) to see the error traces after a crash. That is how you'll know what is causing them.

Your players can't use that, so even if these are people helping you beta test, you need to be playing it, too. For how frequently you're saying it crashes, it should be doing it in your playtest also. If you are playing it and you're never getting any crashes but your players are getting a crash every 30 minutes, then that's indicative of some very weird issues (do their computers meet system requirements to play an MV game?).

That said...probably not. If a plugin conflict causes a crash, it will do it exactly when that code is run. So unless there's some plugin command or piece of code that's only being run every half an hour (in which case it seems that it should be extremely simple for you to narrow it down), then it's not because of that.

It sounds more like some kind of memory leak, where the game being played over time is eating up more resources than it should until it crashes. It could also be a problem on a specific person's system, but you say you have multiple people reporting the same problem.

I have a feeling that I put them in a the worst order possible. LOL.
If that's the case, these are my questions:
a) those are the only plugins I need (except for the "OFF" ones), what would be the correct order?
The only part anyone can tell you is in regards to the Yanfly plugins. You can easily look up the Yanfly Engine Plugins page and see what order they're supposed to be in. When it comes to mixing plugins from different authors, there is no predetermined order that someone else can tell you - it comes down to whether you experience an error in how a plugin is supposed to work and moving it in your list fixes it.

b) should I delete the plugins that I turned off?
I mean, it's kinda common sense, but it doesn't hurt anything. It's a few kilobytes of extra file in your project, that doesn't matter at all.

c) I see many rpg devs in this forum using tons of plugins that I dont think I'll use, but should I use those too for the sake of aesthetics?
I don't really understand the question (what does "using a plugin for the sake of aesthetics" mean?), but it sounds a bit silly 😛 The only reason to install a plugin is because it adds something to your game that you want.

Turns out the higher the computer spec my players have, the smoother the stop motion is and vice-versa.
That really shouldn't be the case, unless your not-high-spec players are, like, too low to be smoothly running the game. You're timing things by frames, which should be running at 60 per second - the only way I can think of that it wouldn't look the same between computers is if someone's system can't handle it and their frame rate is less than 60 per second.

Now there are things that you could be doing incorrectly to contribute to this - for example, having multiple parallel processes running and performing operations more frequently than they need to can create lag, even on computers that meet the requirements to run the game. That's just because you're bogging down the processor. But, of course, only you can know if you have anything like that going on.

This is the example of the video of the flickering in-game (I hope it's okay to use an external link)
There's no rule against it, but you'd be better off putting it someplace where someone can stream the video...or turn it into a GIF or something...

I don't speak for everyone on the forums, but I know I'm not going to go through downloading, saving, watching and deleting a file from Megaupload just to help a stranger troubleshoot 😉

There was a guy who suggested me to use Yanfly's picture spritesheets, but due to my lack of knowledge in using it, I gave up after reading the instructions...I would like to learn about it but I haven't found any tutorials how to really use it for beginners like me.
Did you watch the video that goes along with the plugin? Yanfly's stuff is usually pretty well-explained and has decent instructions, so I don't think you're liable to get anyone writing you some kind of tutorial. Especially when you don't even describe what part you don't understand, you just said you gave up.

If you want to try the plugin, then you should try using it. If you get to the point where you've done some work and it doesn't function correctly, then you have things you can show us screenshots of and get advice on how to fix it.
First off - it sounds like you need to be playtesting your game more. When you're playtesting, you can access the developer console (F8, Console tab) to see the error traces after a crash. That is how you'll know what is causing them.

Your players can't use that, so even if these are people helping you beta test, you need to be playing it, too. For how frequently you're saying it crashes, it should be doing it in your playtest also. If you are playing it and you're never getting any crashes but your players are getting a crash every 30 minutes, then that's indicative of some very weird issues (do their computers meet system requirements to play an MV game?).

That said...probably not. If a plugin conflict causes a crash, it will do it exactly when that code is run. So unless there's some plugin command or piece of code that's only being run every half an hour (in which case it seems that it should be extremely simple for you to narrow it down), then it's not because of that.

It sounds more like some kind of memory leak, where the game being played over time is eating up more resources than it should until it crashes. It could also be a problem on a specific person's system, but you say you have multiple people reporting the same problem.


The only part anyone can tell you is in regards to the Yanfly plugins. You can easily look up the Yanfly Engine Plugins page and see what order they're supposed to be in. When it comes to mixing plugins from different authors, there is no predetermined order that someone else can tell you - it comes down to whether you experience an error in how a plugin is supposed to work and moving it in your list fixes it.


I mean, it's kinda common sense, but it doesn't hurt anything. It's a few kilobytes of extra file in your project, that doesn't matter at all.


I don't really understand the question (what does "using a plugin for the sake of aesthetics" mean?), but it sounds a bit silly 😛 The only reason to install a plugin is because it adds something to your game that you want.


That really shouldn't be the case, unless your not-high-spec players are, like, too low to be smoothly running the game. You're timing things by frames, which should be running at 60 per second - the only way I can think of that it wouldn't look the same between computers is if someone's system can't handle it and their frame rate is less than 60 per second.

Now there are things that you could be doing incorrectly to contribute to this - for example, having multiple parallel processes running and performing operations more frequently than they need to can create lag, even on computers that meet the requirements to run the game. That's just because you're bogging down the processor. But, of course, only you can know if you have anything like that going on.


There's no rule against it, but you'd be better off putting it someplace where someone can stream the video...or turn it into a GIF or something...

I don't speak for everyone on the forums, but I know I'm not going to go through downloading, saving, watching and deleting a file from Megaupload just to help a stranger troubleshoot 😉


Did you watch the video that goes along with the plugin? Yanfly's stuff is usually pretty well-explained and has decent instructions, so I don't think you're liable to get anyone writing you some kind of tutorial. Especially when you don't even describe what part you don't understand, you just said you gave up.

If you want to try the plugin, then you should try using it. If you get to the point where you've done some work and it doesn't function correctly, then you have things you can show us screenshots of and get advice on how to fix it.
Thank you very very very much for giving your time in replying with such detail. These are my responses:

a) I always test the game with using F8 countless times and making sure every detail of programming works well, but it always end up having crashes here and there in spots that didn't occur while testing. I always try the game after publishing updates, but still, the case is either their PC is struggling or I've arranged something wrong in the plugin's order or something. It even occurred to me whether these all were solely cause by my image files having "space" in their names. So, based on your insight, I'm now confident that it's highly due to my players' computers' performances.

b) Ah, I see. Alright. I will make sure that the Yanfly plugins are in order. Thank you so much.

c) Understood. For the image flickering, I don't have any parallel events running. I'm starting to accept the fact that the flickering is what it is, unless is there anything in "frame cache limit" on "core engine -plugin" that might decrease the flickering? or it is not related?

d) Ohaha, I see. Sorry for being nonsensical about the plug ins' aesthetics. I was just insecure in how other people can have sooo many plugins while I only need less than 10

e) Sorry about the video, it's supposed to be playable on site if using computer. I'm assuming you're using a phone which results in the "playing" hassle. I'll keep that in mind.

f) I saw Yanfly's video in the "picture spritesheets" tutorial but my level in understanding it isn't quite there yet. So, I'll just try what I can do.
images most flicker due of not preloaded yet, there are serveral ways
to avoid that.

Galv_ImageCache can solve this easy.

if you use 20 images, you can make a small boot setup.

fadeout screen
show image 1
wait 1 frame
delete image1
wait 1 frame
show image1 (2nd image here)
wait 1
delete image 1
wait 1
etc (for all images)
than fade in the screen, or after transfer, this tiny setup makes the flickering away.
images most flicker due of not preloaded yet, there are serveral ways
to avoid that.

Galv_ImageCache can solve this easy.

if you use 20 images, you can make a small boot setup.

fadeout screen
show image 1
wait 1 frame
delete image1
wait 1 frame
show image1 (2nd image here)
wait 1
delete image 1
wait 1
etc (for all images)
than fade in the screen, or after transfer, this tiny setup makes the flickering away.
I will try this immediately. Is Galv_ImageCache a plugin?
yes, can be downloaded [here], the only downside probably is, it doesn't
have a image cache clearing.

another way, using that plugin, is to use scriptcall to call the images to load,
than use them normally with show pictures, so you dont have to load them
instantly or at start.

while there is a parameter in the plugin to load the pictures when game starts,
it's quite usefull, but if you need 2-3 images half way, preload on map boot.
by map boot is when the player enter the map.
yes, can be downloaded [here], the only downside probably is, it doesn't
have a image cache clearing.

another way, using that plugin, is to use scriptcall to call the images to load,
than use them normally with show pictures, so you dont have to load them
instantly or at start.

while there is a parameter in the plugin to load the pictures when game starts,
it's quite usefull, but if you need 2-3 images half way, preload on map boot.
by map boot is when the player enter the map.
Holy smokes, it worked! I'm in literal awe.
Screenshot_3.png

I followed the instructions and I hope self switching it and making it autorun are the right way. I thank you very much.
if you need it directly, its a nice ay, or if you only need 3, use the 3 instead.

depending on the amount, you can place the folder in the parameters containing
those images to load the entire picture folder.

but see what works best for you.

Good luck with your project.
if you need it directly, its a nice ay, or if you only need 3, use the 3 instead.

depending on the amount, you can place the folder in the parameters containing
those images to load the entire picture folder.

but see what works best for you.

Good luck with your project.
There will be scenes where I need to preload 30-50 images in one map. I hope it'll be okay if I use the method above without any issue. I also noticed that call scripting only allows 12 lines. I hope it'll be okay too. Thank you so much for your positivity
it allowes maybe 11-12 lines. but you can also do like this:

function(loadimage);function(loadimage2);function(loadimage3); etc

so you call it in 1 line, which works too.
but I dont know if you can make your line shorter if it shares the same name.

like for imagename, and for i =1, 1 < number.length, i++ etc.

so you can make the line shorter and faster, but I dont know how
to read number part after the image.

it does exist in some plugins, but I need to see which one using that.

so you might be able to do something like.

galv.CACHE.load("Imagename" + i) or similair. (1, 2, 3 ,4 ,5 etc)
but it might not work for 1, 3, 5, 6, 7, 8 etc.
it allowes maybe 11-12 lines. but you can also do like this:

function(loadimage);function(loadimage2);function(loadimage3); etc

so you call it in 1 line, which works too.
but I dont know if you can make your line shorter if it shares the same name.

like for imagename, and for i =1, 1 < number.length, i++ etc.

so you can make the line shorter and faster, but I dont know how
to read number part after the image.

it does exist in some plugins, but I need to see which one using that.

so you might be able to do something like.

galv.CACHE.load("Imagename" + i) or similair. (1, 2, 3 ,4 ,5 etc)
but it might not work for 1, 3, 5, 6, 7, 8 etc.
It might take some time for me to fully understand this but I will give it a try. For now I hope by doing the 12 limit line while adding another script with the rest of the lines wont cause any problems. Thank you SO much.
a) I always test the game with using F8 countless times...but it always end up having crashes here and there in spots that didn't occur while testing.
Sure, that can happen. I'm just going off of your description of how frequently these crashes occur, which is very significant.

It even occurred to me whether these all were solely cause by my image files having "space" in their names.
It's possible. You shouldn't have any spaces or special characters in your filenames because they're not strictly supported by HTML, and on different operating systems/computers that could be treated differently.

During a play test you'd get an error screen telling you the game can't access a specific filename, but I'm not sure if a deployed game shows that error or just crashes.

e) Sorry about the video, it's supposed to be playable on site if using computer. I'm assuming you're using a phone which results in the "playing" hassle.
No, I'm using a computer, but clicking the link brought me to the Megaupload "loading files" screen. I didn't know the site offered streaming video so I didn't let it finish loading.

I'm glad you got the image bit solved - if you watch carefully, you can see it's not actually that any of the images are flickering. It's that there's a delay between when you erase one image and the next one loads, which is due to the caching as ShadowDragon helped you with.
Sure, that can happen. I'm just going off of your description of how frequently these crashes occur, which is very significant.


It's possible. You shouldn't have any spaces or special characters in your filenames because they're not strictly supported by HTML, and on different operating systems/computers that could be treated differently.

During a play test you'd get an error screen telling you the game can't access a specific filename, but I'm not sure if a deployed game shows that error or just crashes.


No, I'm using a computer, but clicking the link brought me to the Megaupload "loading files" screen. I didn't know the site offered streaming video so I didn't let it finish loading.

I'm glad you got the image bit solved - if you watch carefully, you can see it's not actually that any of the images are flickering. It's that there's a delay between when you erase one image and the next one loads, which is due to the caching as ShadowDragon helped you with.
I thank you so much. I learned a lot by the help you guys have been giving in the past days. I will keep practicing RPGMV and you've made my day. Bless you, Sir.

Original thread: https://forums.rpgmakerweb.com/threads/game-crashes-and-help-with-flickering.151263/