Quantcast
Channel: Homeworld Mods and Modding - The Official Gearbox Software Forums
Viewing all articles
Browse latest Browse all 663

[UI] BackgroundVideo function not working anymore?

$
0
0

@Erayser wrote:

Hello everyone,

With the latest update we've been really busy working on our next releases at PI. Thus far most of our issues have been solved and we're working hard on the rest.

However I can't figure out what's wrong with the UI and more importantly with the "BackgroundVideo" function (NewMainMenu). It doesn't work anymore and results in a CTD (FATAL EXIT!). Strangely, the CTD occurs only after 6-7 seconds on the mainmenu. That means we can interact with the menu BEFORE the crash.

Here's a portion of our code:

dofilepath("data:ui/newui/Examples/ExampleIncludes.lua")
dofilepath("data:ui/newui/Styles/HWRM_Style/HWRMDefines.lua")
dofilepath("data:ui/newui/Styles/HWRM_Style/ControlConstructors.lua")
dofilepath("data:ui/newui/Background/logo.lua")
dofilepath("data:ui/newui/Main/ExButtons.lua")
-- LUA CONFIG FOR THE MAIN MENU UISCREEN

NewMainMenu = {
size =  { 800, 600, },

stylesheet = "HW2StyleSheet",

RootElementSettings = {
	backgroundColor = {0,0,0,0}, -- black background for letterbox effect -- GBX:pdeupree - Changed alpha to 0 so setting in "Background.lua" shows up.
},
Layout = {
	pos_XY = {	x = 0, y = 0, xr = "scr",	yr = "scr"	},
	size_WH = {	w = 1.0, h = 1.0, wr = "scr", hr = "scr" },
},

-- Flags
pixelUVCoords = 1, -- Enter pixel coords for texture coords

--Hotkeys = {
--	{ "FE_ExitToWindows()",INKE_KeyDown, 0, "Exit to operating system",    { ALTKEY, F4KEY } },
--},
;
{
	type = "Frame",
	name = "Root_Frame",

	Layout = {
			pos_XY = LAYOUT_TOPLEFTSCREEN,
			size_WH = LAYOUT_FILLSCREEN,
		},

-- PI: Error background displayed behind the video background in case people didn't download the Cutscene patch.
	BackgroundGraphic = {
		size = { 800, 600 },
		texture = "DATA:UI/NewUI/Background/error.tga",
		textureUV = { 0, 0, 2560, 1440},
	},

-- GBX:pdeupree - Uncomment the video here if you want to have a first main menu background video that is different than the rest.
	BackgroundVideo = {
		size = { 800, 600 },
		filenameV = "data:animatics/animations/sga_gate.webm",
		loop = 1,
		fitScreen = 1,
		fixedAspectRatio = 1,
	},

},

The function "BackgroundVideo" used to work perfectly before the 2.0 update. Gearbox and @BitVenom announced that they've improved and optimized the User Interface so that it loads faster. Does that means we can't add videos as backgrounds anymore ?

This is not a codec issue or anything with the file format (.WEBM) because even the Gearbox intro doesn't work. The following comment by @pdeupree is still here in the new version of the"NewMainMenu.lua" file for the UI, so I believe we can still add background videos, right?

-- GBX:pdeupree - Uncomment the video here if you want to have a first main menu background video that is different than the rest.
--		BackgroundVideo = {
--			filenameV = "data:animatics/mainmenu.webm",
--			loop = 1,
--			fitScreen = 1,
--			fixedAspectRatio = 1,
--		},

Any idea regarding that ?
Thanks :wink:

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 663

Latest Images

Trending Articles



Latest Images