Chapter Video

Grab your favourite IDE and tinker with the innards of game engines

Chapter Video

Postby andy4729 on Wed Mar 21, 2012 11:49 am

This was originally elsewhere but it's become more of a programming issue so I'm posting it here.

I'm trying to play a video before a chapter. I've looked in the ep2 gcf and in the chapter1.cfg file there is the following:

Code: Select all
playvideo_exitcommand ep1_recap map ep2_outland_01


Which obviously plays a recap video for ep1 before playing the map. I'd like a similar feature. I have a video which explains the story of my mod so I tried to do the same thing as Valve have done. I have the following in my chapter1.cfg:

Code: Select all
playvideo_exitcommand intro map outside_mock_v1


However, when I try to start a new game in my mod the console tells me that playvideo_exitcommand isn't a known command. How come this isn't working for me?


I have realised this isn't working because my mod doesn't have the playvideo and playvideo_exitcommand commands. I'm pretty sure this is due to an absence of the vgui_video.cpp and vgui_video.h files from my mod's sdk.

I have tried copying these files from other mods into my mod and rebuilding, however I get the following error:

Code: Select all
2>     Creating library .\Release_episodic\Client.lib and object .\Release_episodic\Client.exp
2>vgui_video.obj : error LNK2001: unresolved external symbol "class IBik * bik" (?bik@@3PAVIBik@@A)
2>.\Release_episodic\Client.dll : fatal error LNK1120: 1 unresolved externals


When I created the mod, I went through the missing files and made sure I added them all, including the ibik one. I have also double checked that it was all implemented ok and it is. I have built the solution several times since then which I wouldn't have been able to do if I hadn't done the ibik fix.

Any ideas anyone?
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: Chapter Video

Postby andy4729 on Sun Mar 25, 2012 10:17 am

Anyone got any ideas? Getting a bit desperate.
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: Chapter Video

Postby Corewarp on Mon Mar 26, 2012 12:34 am

User avatar
Corewarp
Been Here A While
Been Here A While
 
Joined: Thu Mar 13, 2008 6:29 pm

Re: Chapter Video

Postby Armageddon on Mon Mar 26, 2012 12:39 am

This doesn't apply to this specific thread you've made but it does apply to many of the ones you have made.

http://www.moddb.com/games/half-life-2/ ... player-mod
User avatar
Armageddon
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Sun Dec 14, 2008 5:53 am

Re: Chapter Video

Postby skoften on Tue Mar 27, 2012 11:22 am

Our mod uses videoplayback on a VGUI overlay afaik, and this was coded in by our ... coder. Ill ask him.
User avatar
skoften
May Contain Skills
May Contain Skills
 
Joined: Thu Apr 09, 2009 3:30 pm
Location: Ôåg¾´Ôåg¾´Ôåg¾´Ôåg¾´Ôåg¾´Ôåg¾´Ôåg¾´

Return to Programming

Who is online

Users browsing this forum: No registered users