Help an uneducated user with a script

The member mogwai made the script below but unfortunately I do not know how to use it. I've tried contacting him about instruction but have not received a response. I'm not complaining about that part, he was kind enough to make the script in the first place. I just need some instruction on using this thing.

Spoiler
Graphics._updateVisibility = function(videoVisible) {
this._video.style.opacity = "1"; //videoVisible ? 1 : 1;
this._canvas.style.opacity = "1"; //videoVisible ? 1 : 1;
this._canvas.style.zIndex = "2";
this._video.style.zIndex = "1";
};
Spriteset_Base.prototype.createBaseSprite = function() {
this._baseSprite = new Sprite();
this._baseSprite.setFrame(0, 0, this.width, this.height);
this._blackScreen = new ScreenSprite();
this._blackScreen.opacity = 0;
this.addChild(this._baseSprite);
this._baseSprite.addChild(this._blackScreen);
};
Graphics._createRenderer = function() {
PIXI.dontSayHello = true;
var width = this._width;
var height = this._height;
var options = {
view: this._canvas,
transparent: true
};
try {
switch (this._rendererType) {
case 'canvas':
this._renderer = new PIXI.CanvasRenderer(width, height, options);
break;
case 'webgl':
this._renderer = new PIXI.WebGLRenderer(width, height, options);
break;
default:
this._renderer = PIXI.autoDetectRenderer(width, height, options);
break;
}
} catch (e) {
this._renderer = null;
}
};


Any instruction is welcome as I am feeling truly pathetic for not being able to use this properly.
Plugins are usually placed in text files with the ending js, then copied into the plugin folder of the project and activated in the plugin manager
I have this loaded up as a plugin. I'm having issues getting it to do anything though. Looking through the code it looks like maybe I need to do some sort of plugin command as well. Where it says "switch (this._rendererType)" I'm assuming I need to enter one of the options listed below that line into the parenthesis. But again I have little idea of what I'm reading.
I doubt it. Plugins are made so you DON'T have to change the code.

Please post a link to the original thread where the plugin was provided.
https://forums.rpgmakerweb.com/index.php?threads/see-message-during-play-movie.78028/

that is the original thread
It seems you add the plugin, play a movie, and do a Show Text command. Is that what you've done? When you added the plugin, did you also add it into the Plugin Manager and turn it on?
Please show a screenshot of the plugin manager, and a screenshot of the event where you're playing the movie and showing the text.

That was only posted a few days ago - when did you ask him for help?


you can play the movie in the background and then as long as the map is transparent, the movie will appear under everything.
IS your map transparent?
I sent him a message on thursday.
here are the images.
1e.png
e2.png


Yes I've left the map transparent. or should I be uploading a transparent parallax maybe?

Right and I should clarify I named the plugin "video" it is at the bottom and I've tried running it with ALL other plugins off but it still does the standard play video then showing a message after the video has finished
Seems like you've got it all set up correctly. So what exactly IS happening when you run it? Does the movie play? Does the text play? If you take out the show text command, does the movie play? If you put it back in again and take out the movie command, does the text display?

No, you don't need a transparent parallax.
Everything functions as if the plugin isn't even there. The movie plays normally then the message shows. It also works the same without the message and just "playmovie"
Disable all of the other plugins. Then try it again.

I wonder if one of them has some code to stop further event commands running when a movie is playing. This is an "issue" that a number of people have reported and asked to be "fixed". It could be Yanfly's Core Engine, as that contains a number of fixes as well as the base for numerous other plugins.

Note - the plugin from mogwai is not meant to change the order of things happening, or to wait for one thing before doing another. It is simply to show the text ON TOP OF the movie, as by default it would show BEHIND the movie and not be visible. If one thing is waiting until the other finishes, that doesn't mean this plugin isn't working. You can only tell that by getting them to happen at the same time.
So I just loaded a brand new game and added the plugin and made a "playvideo" "showtext" event on a transparent map. it still just plays normally. I will try try making a new js file maybe something went wrong when i pasted it into notepad
Holy crap it just worked! Shaz the bloody thing worked! granted it was on a brand new game and Ill have to test it on my actual game but the is like first moon landing levels of progress for me.
It seemed the JS i had made originally was at fault somehow. I've made a good 30 plugins the same way but I guess i messed this one up
IT is indeed working on my main game now. I cant beleive that was the problem. That is the most pants on head stupid mistake I've made so far. Shaz I would like to thank you for all of your time if there was more I could do than give you some likes I would. It wasn't all in waste either because I wasn't even sure if this needed to be a plugin in the beginning.
lol - I just realised that was your own thread that mogwai answered. Next time, just post in the same thread rather than starting a new one. Would have saved a bit of time.

Original thread: https://forums.rpgmakerweb.com/threads/help-an-uneducated-user-with-a-script.78278/