Hello! Recently, I was recommended switching over from RPGVXA to RPGMV, due to the inability to make an Undertale battle engine for VX Ace, which was something I needed for my game. So, I got a trial version of MV, made a new project, and tried installing SumRndmDde's Undertale plugin in the game. The game worked fine for a while, until I tried to start a battle, and this error came up:
TypeError
Cannot read property 'BlurFilter' of undefined
So, I tried fixing it myself, first by doing simple things like turning off other plugins, moving the battle engine to the top of the plugin list, ect, and then eventually tried looking into the code to see what the problem was(Don't worry: I can't program.). Long story short, I tried uninstalling and reinstalling RPGMV, made a new project, tried to avoid the engine for a while, I just tried using it again, only to receive the same results. I give up on trying to fix it myself: can anyone help me out with this?
I highly doubt the problem has to do with other plugins, but here's my plugin list, in case it helps. Thank you for your help!
Start by turning off all the other plug-ins but the undertale one. If it works, then it is a conflict. And don't assume it isn't a conflict, a plug-in like this which overwrites so much of the default battle system is likely to not work with many other plug-ins. So first thing you need to do is make sure it works without any other plug-ins.
press f8 when the error comes up and take a screenshot of the console please
I turned off all other plugins, and the problem persisted. Here's a screenshot of the console right after the error appeared.
It does, in fact. I never considered that I might have an outdated version of MV... I'm currently using the trial version of MV, if I switched to the full version, would that fix the problem?
It should yeah. If you get it through steam you probably gotta change the beta settings for it but it's not all that difficult
I see... I'll go do that really quickly, remake the project, and try again.
EDIT: "really quickly."
I think the trial version might be on 1.0 still (but don't quote me on that). It might not be possible to update it and stay on the trial.
To see, open one of the .js files with notepad and see what it says at the top. It should state the version number there.
Oddly, I couldn't find anything that resembles a version number in any of the project's .js files, and the only .js files I could find in the RPGMV folder were the ones used as reference for a new project. Is there anywhere in particular you would like me to search for a version number?
Did you check rpg_core? Mine has the version number in the first few lines. Now, if there is none, it might mean it is version 1.0, which would be the problem. Unfortunately, I don't have any projects older than version 1.1, and they all have the version number on the first few lines, so I can't check on a version 1.0 project.
I have checked rpg_core, and found nothing, so I guess that means I'm most likely on 1.0. So, sometime tomorrow or perhaps the next day, I'll update to the full version, and see if it solves the problem.
EDIT: I got the full version and made a new project, but now we have a new error:
Error
Failed to load: img/system/undefined.png
When this happens, I normally try to bypass the problem temporarily by adding in an image that is literally titled "undefined". Somehow, it still failed, but I'm pretty sure that .png part is new...
...Curse you, three day bump limit...!
EDIT EDIT: I added a screenshot of the console right after the error occurred. Strangely, no sign of the Undertale plugin doing anything, but it talks about battle scenes, so that makes a bit more sense.
I'm pretty sure it's been three days (If it hasn't, please forgive me), so I'm just gonna bump this thread up. Due to the three day bump limit, I've been updating this thread by editing my last post. The BlurFilter problem has been fixed, but now I have another one. (I just tested it again, the new problem still occurs.)
The fact that it's trying to load an image called "undefined" tells me there's a function related to images that's trying to set a variable value and not getting anything out of it, but it's then trying to load the image filename defined by that variable using ImageManager, which ends up trying to load a file called "undefined" because that's what the variable was.
The key to getting to the bottom of this is to figure out what it's trying to load that it's unable to.
Good point... All of the parameters in the plugin that started out blank were left blank, causing them to change to default, as the plugin says. Would changing all of the parameters to the proper value instead of default work? Because, sadly, I can't program, so if it's a problem with the script itself, I won't be able to do much...
I can't imagine it's a problem with the script or more people would have posted about it. Looking at the parameters for this plugin, I suspect the offender is either "Bubble Window Skin", "Shield Image", "Bullet Image", or "Image". Image is the only one that doesn't say to leave blank for a default, so my money would be on that. Try entering values for them and see if the problem persists.
I filled out the parameters the same way they were filled out on the demo project of the plugin, yet the error still persists. I was goint to take a screenshot of the console, but when I opened it up, I noticed two things:
1.It looked exactly the same as when I posted a screenshot of the console earlier, so the parameter change likely either didn't solve anything, or it fixed a problem that we would have encountered later.
2. The console talked about an image in the system folder, not the utb folder. So, either the problem lies with Bubble Window Skin, the only image related to the plugin in that folder, or it's something entirely different.
I hope these observations are of use.
I just noticed that in your second screenshot the error message mentions a file "SRD_UndertaleBattleSystem%20(2).js" instead of "SRD_UndertaleBattleSystem.js". Maybe you have downloaded the plugin file twice, so that it added a " (2)" at the end? Try changing the filename back to "SRD_UndertaleBattleSystem.js" (you will need to reselect the file in the Plugin Manager again afterwards) and see if it solves the problem. Most plugins obtain their parameter values though the name of the .js file - if it can't access the parameters because the name of your plugin file is different, that might cause the "undefined" error.
Good catch LB! That probably will be it.