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?






