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.
Play movie
how to run movie
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.
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.