Posted July 27, 2024 by Ramza
#update #bugfix #video #RMMZ
Greetings all. I have received a couple of reports over the last several months of the MZ version of this plugin not working, which up until today I had been unable to reproduce.
Today, another report made me look at it again and I found the culprit, an update somewhere between v1.0.2 and 1.8.0 of the RMMZ core files changed how some scene transitions happen in the first couple of seconds of the opening of the project. Originally, Scene_Boot, which is the first scene loaded when the project opens, would feed directly into Scene_Title. At some point, the RMMZ_Scenes file was changed to feed Scene_Boot into a new scene, Scene_Splash. I presume it was intended to be used for some sort of splash screens system, but the actual engine doesn't seem to have anything built into it to utilize it.
One of the main things this plugin did was alias the SceneManager.goto function, which is used to change scenes normally. The modified version of this function checked specifically if the current scene was Scene_Boot, and then if the scene it was calling was Scene_Title, and then called for Scene_PretitleSplash instead, allowing the splash screens to be shown, before going to the normal Scene_Title afterwards.
Because of the change above, Scene_Boot feeds into Scene_Splash instead, which then goes to Scene_Title, which means this plugin would never intercept that call, and would never activate. I'm not sure at what point this change was made to the core files, only that the version in my test project was 1.0.2, and the current one was 1.8.0.
Needless to say, it's working now, and any of that other stuff I might've said about videos not playing because they weren't .webm format was probably false?
~Ramza