[Crash] FMV placeholder map causes game to crash

Level 3
Joined
Nov 3, 2021
Messages
3
I'm currently working on a custom campaign with intro and outro full motion videos (FMVs). To call FMVs, I'm using placeholder maps with a function sequence similar to the one suggested by Tommi Gustafsson here:

  • Cinematic
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Cinematic - Fade out over 0.00 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
      • Cinematic - Turn cinematic mode On for (All players)
      • Cinematic - Turn on letterbox mode (hide interface) for (All players): fade out over 0.00 seconds
      • Sound - Clear the music list
      • Sound - Stop music immediately
      • Custom script: call PlayCinematic("CinematicName")
      • Wait 0.00 seconds
      • Game - Set the next level to MapName.w3x
      • Game - Victory Player 1 (Red) (Skip dialogs, Skip scores)
This function sequence works fine if the placeholder map has a next map to transition to, i.e. when it calls the intro FMV. However, if the placeholder map is the last map of the campaign (i.e. doesn't have the "Game - Set Next Level" function), this sequence causes the game to crash immediately after FMV playback ends.

It seems that after the FMV stops playing, the game expects to receive some input, receives none, encounters a logical error, and stops working entirely.

Curiously, when you escape out of the cinematic, this properly returns you to the campaign's map list (as expected).

To bypass the crash, I've modified the criteria of the "Game - Victory" function to "Skip dialogs, Show scores", but it's obviously a subpar workaround.

Does anyone have any suggestions on how to tackle this issue?
 
Top