TypeError "Cannot read property 'BlurFilter' of undefined
Javascript/Plugin SupportIt would be more helpful to know how you got that error in the first place rather than just posting a screenshot of errors only referencing Moghunter's Pixi Filter plugin, what other plugins are you using/when did the error start?
Did you start a new game after adding a plugin, or did you resume a previously-saved game? If the latter, start a new game.
Get that project OUT of OneDrive pronto, unless you want to risk losing everything! Don't ever put your projects in a place where they will sync with an online repository.
You should also put it in a path that has no spaces or non-Latin characters in the name, as that could cause problems later on too.
Get that project OUT of OneDrive pronto, unless you want to risk losing everything! Don't ever put your projects in a place where they will sync with an online repository.
You should also put it in a path that has no spaces or non-Latin characters in the name, as that could cause problems later on too.
I closed out the RPG Maker MV after adding new plugin (PixiFilter), I started a New Game and corrected the Path. Still no luck...
I have the entire MOG_Master_MV installed in a Folder and the pixifilter works great so I know its obviously working.
Do you have a link to the plugin? Those plugin commands look a bit weird - are you sure they're in the right format?
If your link to the plugin is only to MOG's massive demo project, don't bother posting it. I'm looking for instructions/examples but I don't want to download that whole thing.
If your link to the plugin is only to MOG's massive demo project, don't bother posting it. I'm looking for instructions/examples but I don't want to download that whole thing.
Yea. I was only able to get it as a whole master.
I was really just after the blog post where he talks about it and gives instructions for use. I found that, and it looks like the format of your plugin commands are correct.
Can you turn off all the other plugins and see if the error still happens?
Also, can you open your PixiFilters script and find line 335, and copy/paste that section of code here, highlighting which line is 335? About 10 lines on either side should be plenty. Make sure you wrap it in 'code' tags so the formatting is kept and the forum doesn't convert any of the characters to something else.
Can you turn off all the other plugins and see if the error still happens?
Also, can you open your PixiFilters script and find line 335, and copy/paste that section of code here, highlighting which line is 335? About 10 lines on either side should be plenty. Make sure you wrap it in 'code' tags so the formatting is kept and the forum doesn't convert any of the characters to something else.
ok i never open a .js file before but I think i seen a tut. somewhere. the crazy thing about all this is that I have the whole jumbo package with 90 of his plugins combined as a mega demo and it works there fine...I also tried create a new game from scratch just adding that plugin by itself and still no luck. I feel like its tied to something like another plugin or file...is that possible??
I downloaded Mog's Master project a couple weeks ago (V21.9 on RMMV 1.6.1, which is indeed, latest version). I grabbed only the PixiFilters plugin onto a new project and tried out the same plugin commands you used, and worked without issues, no issues coming up on console either.
I guess, try disabling all plugins, testing to see if it works and enabling one at a time like Shaz suggested?
Although it is odd that you've started a game from scratch with just that plugin, perhaps could it be an issue with RMMV's version?
You can open .js files with notepad, but in any case, I'll throw it in for you to speed up things, here you have Shaz (line 335 is the BlurFilter one):
I guess, try disabling all plugins, testing to see if it works and enabling one at a time like Shaz suggested?
Although it is odd that you've started a game from scratch with just that plugin, perhaps could it be an issue with RMMV's version?
You can open .js files with notepad, but in any case, I'll throw it in for you to speed up things, here you have Shaz (line 335 is the BlurFilter one):
Code:
//==============================
// * setPixiFilter
//==============================
Spriteset_Base.prototype.setPixiFilter = function(filter_id) {
if (filter_id === 0) { // BLUR
return new PIXI.filters.BlurFilter();
} else if (filter_id === 1) { // Negative
var filter = new PIXI.filters.ColorMatrixFilter()
filter.negative(true)
return filter;
} else if (filter_id === 2) { // Grayscale
var filter = new PIXI.filters.ColorMatrixFilter()
filter.blackAndWhite(true)
return filter;
} else if (filter_id === 3) { // Brightness
var filter = new PIXI.filters.ColorMatrixFilter()
filter.brightness(3, true)
return filter;
} else if (filter_id === 4) { // Contrast
var filter = new PIXI.filters.ColorMatrixFilter()
filter.contrast(3, true)
return filter;
} else if (filter_id === 5) { // Noise
var filter = new PIXI.filters.NoiseFilter();
filter.noise = 0.5
return filter;
} else {$gameSystem._pixiFilterData[1] = -1;
return false;
};
So that error message is saying there's no such thing as PIXI.filters
@Verzatile if you open your project folder (you can do it from the Game menu - Open Game Folder - or something like that, don't have mine open now), and into the js folder, can you open your rpg_core.js file and tell us if there's a version listed at the top, and what it is? This might be something that came in around 1.3 or even later, and if you have something earlier it might be a problem.
If you create a brand new project and have the same issue (and the issue is the version), then you probably have an old version of MV itself. So what is your game version showing as in the editor?
@Verzatile if you open your project folder (you can do it from the Game menu - Open Game Folder - or something like that, don't have mine open now), and into the js folder, can you open your rpg_core.js file and tell us if there's a version listed at the top, and what it is? This might be something that came in around 1.3 or even later, and if you have something earlier it might be a problem.
If you create a brand new project and have the same issue (and the issue is the version), then you probably have an old version of MV itself. So what is your game version showing as in the editor?
doesn't list a version at the top
Honestly I don't see that making a difference because I have the mega plugin on the same directory area and it works there fine. Isn't everything running under the same game engine? Is it possible for someone here in this tread to actually download the plugin bundle and try opening a new game and inserting the plugin only to see if they are having the same issue? I'm using the MV version not ACE.
If you started a project in version 1.2 of the engine and version 1.3 comes out, your old project does NOT update, it remains on version 1.2. Therefore, if you have MOG's master demo, and he has his engine updated to 1.6.2 (current) and your project is still in 1.2, it will not work but his demo will. It has nothing to do with directories. This is why Shaz asked for your version number.
EDIT: only because I just recently downloaded the master file anyways, I will check to see that it's working
EDIT 2: Works just fine in my updated project and I'm running over 100 plugins in my project.
EDIT: only because I just recently downloaded the master file anyways, I will check to see that it's working
EDIT 2: Works just fine in my updated project and I'm running over 100 plugins in my project.
Nothing runs under the game engine. You only build it with that.
Your project runs under the game engine that you first created it with, unless you manually updated it when new versions came out, which you didn't. However it also seems you haven't taken any new versions, because if you had, a new project would have the latest version.
I suggest you update your game engine - we're at 1.6.2 now, and a LOT of bugs have been fixed. You're going to run into heaps of problems with plugins, because the plugin authors generally update their plugins to run with the latest version of the engine. Only fairly simple plugins are likely to still run with such an old version.
Your project runs under the game engine that you first created it with, unless you manually updated it when new versions came out, which you didn't. However it also seems you haven't taken any new versions, because if you had, a new project would have the latest version.
I suggest you update your game engine - we're at 1.6.2 now, and a LOT of bugs have been fixed. You're going to run into heaps of problems with plugins, because the plugin authors generally update their plugins to run with the latest version of the engine. Only fairly simple plugins are likely to still run with such an old version.
ok I'm at 1.0.1....wow lol. I only see version 1.6.1. online i will update now
Nevermind I'm doing it now...I see 1.6.2
it doesn't work. I'm on 1.6.2
Original thread: https://forums.rpgmakerweb.com/threads/typeerror-cannot-read-property-blurfilter-of-undefined.106834/

