SOURCE 'Cutscene Skip' problems.

Hey guys I'm using this script by SOURCE called "Cutscene Skip" ->

Here is the official thread:
https://forums.rpgmakerweb.com/inde...plug-and-play-comfort-for-your-players.40321/

Here is a video of what the script does:


This script works pretty nice but it has some issues. The big one is that when you DON'T skip a cutscene by pressing ESC/X and let it play just normal after the event is finished and you are able to move again if you push the ESC/X button the cutscene skip menu still pops up.

The other issue is that when you skip a cutscene you still can hear SE's while the scene is skipped.

Can anyone help fix this?

I think the issue with the cutscene menu pop up could be solved if the script could be enabled/disabled via switch or script call.

Btw. It has nothing to do with my scripts and other people reported the same problems. I do not have any coding knowledge.

DerKIAS
I've run into the SE issue, and I've also noticed that the Cutscene Skip interacts badly with a lot of different script calls, as well. It gave me tantrums and eventually I had to remove it from my project and just create my own version of a Cutscene Skip option where the user is asked upfront whether to skip the cutscene, and everything in the scene is placed into a conditional branch for the player choosing "Watch the Scene", whereas anything that the cutscene would affect (such as variables changing, or characters being in a different location at the end of the scene) is also copied into the "Skip the Scene" branch.

My recommendation, sadly, would be to do it yourself, through eventing and a lot of testing, if you feel that it's important players can skip scenes in your game. Source's script is a shortcut but I believe it has way too many problems in its conception to "fix" into something usable.
@Wavelength Thank you for recommending but for me there are no issues beside the ones I mentioned above and everything works pretty fine. No bad idea with the skipping asked up front but I kinda don't want to ask the player before every cutscene if he wants to skip it since throughout my game there are many cutsenes and I guess it could disturb the player to get asked before every cutscene but still thank you for suggesting 🙂

If I could just enable/disable the script via script call or switch that would help a lot.

DerKIAS
If I could just enable/disable the script via script call or switch that would help a lot.

Now that's an interesting idea. I'm not super-confident I have the answer and it would probably be best to have someone do a "real" enhancement on the script, but looking through the script I only see one place where the Skip option is actually getting turned on, so let's try targeting that and see if it works?

On line 415 you'll see the following:

Code:
if Input.trigger?(:B) && !$game_temp.ms_cutscene_skip

Try changing it to:

Code:
if Input.trigger?(:B) && !$game_temp.ms_cutscene_skip && $game_switches[X] == true

Change X to the Switch ID you'd like to use to control whether the player is allowed to skip cutscenes. When the switch is ON, they are allowed to skip cutscenes. When the switch is OFF, they are not allowed to skip cutscenes.

Hopefully this will work - if not, maybe someone else can give you a better solution than I can.
if you push the ESC/X button the cutscene skip menu still pops up
The way to fix this is to use a script command in your event.

Right after you put Label: CUTSCENE END
put a script call
@ms_cutscene = false
@Wavelength Thank you for that idea but since Roninator2 knew what the problem was I tried that first and it actually worked 😉 Still thank you very much for your effort I appreciate it 🙂

@Roninator2 Thank you!! It worked like a charm 😉 I saw in another thread you seem to have pretty good knowledge about this script?

Do you also know how to solve the SE issue?

I've also noticed that skipping a longer scene takes also pretty long so that the player sees a black screen for 5-10 seconds or more. Do you know a fix for this as well?

DerKIAS
@DerKIAS No problem. That's probably the right order to try things in, and I'm glad you got it working how you like 🙂
solve the SE issue?
Can't say i ever noticed a SE issue. There is a section in the script to solve that. I would suggest to move the script to a different location in your script list. Moving it up or down may solve it.
Code:
#------------------------------------------------------------------------
# * Commands to Skip.
#------------------------------------------------------------------------
# This are the command codes that will be skipped (not executed at all).
#------------------------------------------------------------------------
SKIP = [101, 102, 103, 104, 105, 261]
In this config, try to add 250
@Roninator2 Alright I'll try that.

@TheoAllen That kinda worked.. now theres not in every skip a SE but in some there is still one SE to hear. Before I added the command there was in every skip a SE to hear that was skipped now it only happens two times out of 4 skippable cutscenes. Strange.
Add number 212 to skip show animation. Idk if it's going to break something. But idk any other SE source aside from those.

Theoretically, SE can be skipped by directly hardcode the class RPG::SE to skip SE playing, but I sort of don't wanna get into the rabbit hole trying to figure out if the current scene is being skipped.
Code:
class RPG::SE
  alias edit_play play
  def play
    return if <condition if the scene is being skipped>
    edit_play
  end
end
Someone pls continue this 😛
@TheoAllen Yes!! Adding 212 command made it so that now only one SE was played in one of the cutscenes. I took a closer look at the event of that cutscene and noticed that it was the very last SE in the event that was still played. I copied that SE and pasted it a few lines down so it is now the last SE and turned the volume for that SE to zero and BOOM no SE could be heard while skipping 😀 Thank you Theo!!

Now the only issue that remains is that skipping a cutscene takes up to 10 seconds, so the player has a black screen for up to 10 seconds... anyone an idea on that? Would be cool if instead of the black screen an image could be shown like "Loading..." if the skipping time cant be made shorter.

EDIT: I noticed something else. If you press ESC/X during a cutscene the skipping menu pops up and the BGM and BGS is faded out. If you choose "No skipping" you return to the cutscene as it should be and the BGM and BGS is played again. So here is the thing: If you use an RTP BGM the musoc continous on that point you opened up the skip menu. But if you use a custom BGM the music plays from the beginning which is kinda annoying. An idea on that?
skipping a cutscene takes up to 10 seconds,
You must have a lot of things happening inside the cutscene. Can you give us a screen shot of your event(s) including the other events in the same area, as I would suspect you have a parallel process running as well.
@Roninator2 Yeah, I mean the event is kinda big but there are no other events active and there is no parallel process involved. For the cutscene it is just this autorun event:

Spoiler: Event picture
eventmcj7h.png

If I skip the cutscene from the beginning it takes around 10 seconds but if I let the cutscene play until the half and skip the cutscene from that point then the skipping time reduces to 5 seconds. I wonder if it has something to do with the "Wait" commands inside the event.

@TheoAllen in the skip commands where those numbers are, is there also a skipping command for "Wait" frames?
command for "Wait" frames
That would be 230
@Roninator2 Awesome! Thank you! 😀 That reduced the skipping time by around 5 seconds. Is there anywhere a list of these command numbers? I would like to try around a bit
Is there anywhere a list of these command numbers?
Game Interpreter
Alright! I've added a few numbers and now every cutscene skip takes between 3-5 seconds which is ok I guess. I still wonder if it's possible to show a "Loading..." picture or message.

So besides that theres only the thing I mentioned above with the BGM.
As said above if I open up the skip menu the music pauses and resumes when i close the skip menu. But it stangely only works for RTP music but not for imported music. The imported music always starts from the beginning.

EDIT: OK I figured out that it works with .OGG files. But why won't it work with .MP3 files?

Any idea on one of those?

And thank you all for your help before 🙂

Original thread: https://forums.rpgmakerweb.com/threads/source-cutscene-skip-problems.105356/