RPG Maker MV

RPG Maker MV

Game freezes when playing one movie after another
I have three movies in my game: One for the good ending, one for the bad ending, and one for the credits. The ending is based on a decision the player makes at the end, so you'll either see the good ending and then the credits, or the bad ending and then the credits.

For some reason, the game completely freezes when playing the credits on either ending. It will play the first second, or less, then it just freezes up and never changes. There's no error message or anything, I just can't progress further.

All my video files are .webm, and they all work properly when I open them in File Explorer. What's going on?
Last edited by CircusPuma3000; Jul 26, 2021 @ 11:06am
< >
Showing 1-11 of 11 comments
Caethyril Jul 26, 2021 @ 2:30pm 
Have you tried making an event that only plays the credits movie? I.e. does it play OK if there isn't another movie before it?
CircusPuma3000 Jul 26, 2021 @ 3:32pm 
That did it! I created a new switch at the end of the event that played the ending cutscenes. I created a new event page and set it to Autorun, and set the new switch as the trigger. I guess I could have done a self switch instead, but I'm just glad this works.
Caethyril Jul 26, 2021 @ 4:15pm 
Strange! Good to hear it's working now, though~ ^_^
CircusPuma3000 Jul 26, 2021 @ 5:12pm 
Thanks!
CircusPuma3000 Aug 3, 2021 @ 9:48am 
I am so sorry, but I've made some changes to some events way before the final battle in my game, and now this problem is happening again. The credits freeze at the beginning just like they were doing before.

I've tried deleting the event page and making it a separate event (on Autorun, triggered by the switch at the end of the previous event), but the new event doesn't run. Instead it only replays the previous event. I need help.
Last edited by CircusPuma3000; Aug 3, 2021 @ 9:49am
Caethyril Aug 3, 2021 @ 10:34am 
No worries! :cleancake:
Originally posted by CircusLion3000:
I've tried deleting the event page and making it a separate event (on Autorun, triggered by the switch at the end of the previous event), but the new event doesn't run. Instead it only replays the previous event. I need help.
This sounds like a problem with the page conditions? Remember that the highest-numbered page whose conditions are met will become the active page for that event.

Since it replays the previous event, I guess you have that event on Autorun trigger? An active autorun event will trigger (i.e. start) any frame when it is not already running. To deactivate it, you can either:
  1. Use the Erase Event command at the end of the Autorun page (temporary).
    • The event will be gone until the player leaves and re-enters the map.

  2. Change the event page (permanent), e.g.
    • Make a new page with no image (invisible), Through on (passable), Player Touch trigger, and no commands (so it does nothing when triggered).
    • Give the new page a condition like "self-switch A is on" and turn on self-switch A at the end of the Autorun page.
If that's not the problem, I suggest you give more details (screenshots?) about your event setup.
Last edited by Caethyril; Aug 3, 2021 @ 10:35am
CircusPuma3000 Aug 3, 2021 @ 12:15pm 
Originally posted by Caethyril:
No worries! :cleancake:
Originally posted by CircusLion3000:
I've tried deleting the event page and making it a separate event (on Autorun, triggered by the switch at the end of the previous event), but the new event doesn't run. Instead it only replays the previous event. I need help.
This sounds like a problem with the page conditions? Remember that the highest-numbered page whose conditions are met will become the active page for that event.

Since it replays the previous event, I guess you have that event on Autorun trigger? An active autorun event will trigger (i.e. start) any frame when it is not already running. To deactivate it, you can either:
  1. Use the Erase Event command at the end of the Autorun page (temporary).
    • The event will be gone until the player leaves and re-enters the map.

  2. Change the event page (permanent), e.g.
    • Make a new page with no image (invisible), Through on (passable), Player Touch trigger, and no commands (so it does nothing when triggered).
    • Give the new page a condition like "self-switch A is on" and turn on self-switch A at the end of the Autorun page.
If that's not the problem, I suggest you give more details (screenshots?) about your event setup.

Yeah, I think it's about time to share screenshots. The first is the ending of the event containing the two ending cutscenes. The second is the separate event I created for the credits cutscene. The credits is the one that keeps freezing. The "Office" room at the end of the second event is for a quick post-credits scene.

Also, please excuse the weirdness of the game. It's a comedy game, and it makes sense in context. :P

https://cdn.discordapp.com/attachments/250060874398695426/872194834520244294/unknown.png

https://cdn.discordapp.com/attachments/250060874398695426/872195020197888000/unknown.png
Caethyril Aug 3, 2021 @ 1:10pm 
Your events look OK to me!

Maybe try clicking the credits video when it's frozen to see if that makes it start playing?

If you're using any plugins, try selecting them all in the Plugin Manager, right-click > Turn OFF. Then save your project and test to see if that helped.

If it's not plugins, it might be a code version mismatch?
  • What version of the editor are you using? You can check via Help > About.
  • What version of the core scripts is your project using? You can check by opening up one of the core script files (e.g. rpg_core.js, found in the js subfolder) in a text editor (e.g. Notepad). The version number should be on the first couple of lines, e.g.
    //=================================== // rpg_core.js v1.6.2
If your editor and project versions are different, strange things might happen. You can update your project to your editor version by following the instructions in this announcement:
https://steamcommunity.com/games/363890/announcements/detail/1694924880247085699
Otherwise I'm not sure what might be happening, but here's something to try:
  1. Playtest until you get to the point where the credits video should be playing.
  2. Press F8 to open the console window.
  3. Type (or copy+paste) this in there and press Enter:
    Graphics._videoLoading
    A value should appear in the log: true if the video is still loading, false otherwise.
  4. If the video is loaded, type this into the console and press Enter:
    Graphics._video.play()
CircusPuma3000 Aug 3, 2021 @ 1:58pm 
Thanks for these tips!

Clicking the video did not do anything.

The only plugins I have are Community_Basic and MadeWithMV. I tried turning them off, but that did not work either.

Both the editor and the core scripts are v 1.6.2.

I tried playtesting and opening the console window. I got this interesting error message:
----
Uncaught (in promise) DOMException: The play() request was interrupted by a new load request. https://goo.gl/LdLk22
----
The video loading command turned up false. I entered the video.play command and got Promise {<pending>}. The video is still not playing.

It looks like that Uncaught error might be the key to solving this.
Last edited by CircusPuma3000; Aug 3, 2021 @ 1:58pm
Caethyril Aug 3, 2021 @ 5:13pm 
I just tested and I can play two different .webm videos one after the other with no problems, in separate events like in your screenshots or simply in one event like this:
◆Play Movie:video1 ◆Play Movie:video2
I do see the error you describe in the console: it seems to appear the first time it encounters a Play Movie command in a play session. However, everything seems to be working OK for me so I feel like it's probably harmless...? In case it's relevant, I used the two videos from here to test:

Originally posted by CircusLion3000:
The video loading command turned up false. I entered the video.play command and got Promise {<pending>}. The video is still not playing.
So it looks like the video loads OK, but play requests remain in the "pending" state indefinitely rather than resolving to "success" or "fail". How annoying! >_>

Here's another line to try in the console while a video is (or should be) running:
Graphics._video.src
This should return the name of the current video, i.e. something like this:
  • "chrome-extension://.../movies/DaltonCredits.webm"

I know you've tried disabling your plugins, but can you reproduce the problem in a new project? Maybe try remaking the event(s) in your current project: start with just the movies then test; add the other commands (choices, battle, text, etc), and test each time to make sure it's still working.

If it still refuses to play correctly then consider starting a thread over on RMW:
I think at this point I'd personally just make the credits scene differently, e.g. using pictures or scrolling text. =P
CircusPuma3000 Aug 3, 2021 @ 6:24pm 
Originally posted by Caethyril:
I think at this point I'd personally just make the credits scene differently, e.g. using pictures or scrolling text. =P

No kidding! :winter2019joyfultearsdog: This video is being such a pain. I think I'll take your advice and use pictures or text for the credits, and then try to reinstate the video sometime in the future. Thank you for bearing with me, because I am definitely still figuring this program out.
< >
Showing 1-11 of 11 comments
Per page: 1530 50