Play movie

how to run movie

Information and discussion for custom maps and mods.
Post Reply
vrkomarov
Posts: 9
Joined: Mon Jul 23, 2012 4:04 pm

Play movie

Post by vrkomarov »

Hi everyone. I want run movie in game, but when i use Scripting.Media.PlayFMVFullscreen method (from Gd01Script.cs) get the following in Visual Studio:

An unhandled exception of type 'System.InvalidOperationException' occurred in OpenRA.Game.exe
Additional information: Widget FMVPLAYER has no child PLAYER of type VqaPlayerWidget

How to fix it?
Also i want to know how to run video in background instead of shellmap.

Sorry for my bad english.

User avatar
Sleipnir
Posts: 878
Joined: Wed Apr 10, 2002 11:52 pm
Contact:

Post by Sleipnir »

Looks like chrisf broke this in 533f904.
You'll want to find and replace "VqaPlayer:" with "VqaPlayer@PLAYER:" in mods/*/chrome/ingame.yaml and should also file a bug report on this.

PlayFMVFullscreen was designed to hide all the visible UI when called, so it will probably need tweaking to not hide the menu UI. You can create a dummy shellmap with a script that just loops the video.

vrkomarov
Posts: 9
Joined: Mon Jul 23, 2012 4:04 pm

Post by vrkomarov »

Many thanks! It worked. Now I try to run it without hide UI in main menu.

chrisf
Posts: 246
Joined: Mon Sep 06, 2010 4:59 am

Post by chrisf »

I have filed #2334 for the yaml change.

Post Reply