Page 1 of 1

Play movie

Posted: Tue Jul 24, 2012 12:31 am
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.

Posted: Tue Jul 24, 2012 10:57 pm
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.

Posted: Wed Jul 25, 2012 1:07 am
by vrkomarov
Many thanks! It worked. Now I try to run it without hide UI in main menu.

Posted: Wed Jul 25, 2012 1:12 am
by chrisf
I have filed #2334 for the yaml change.