• HL2 Mod 2007 - Unknown Command "playvideo" and "playvideo_exitcommand"
    13 replies, posted
Hello, I have been trying to create a mod under Source Engine 2007, and decided to finally mess with the code and not only the maps. So I changed the steamapp ID to make the compile work, fixed all the initial compile errors, and the compiled worked like a charm... I also added new shaders, weapons, and camera bobbing, however I wanted to add a cutscene for the first map I wanted to make, and I was going to use a .bik video for that, but as soon as I did my very first compile of the client and server, the "playvideo" and "playvideo_exitcommand" popped out out of existence, and I am now unable to play bik videos during the game. I also looked for a file called vgui_video.cpp or something like that, but it simply wasn't there. Note that I have little experience with C++, as I only know C#, some Java, and Visual Basic .NET, so I still can understand most of the C++ code. Is there anyway I can bring this command back ? Stuff like this make me lose hope about making my mod on the simpliest engine out there.
Try this: [url]http://code.google.com/p/dinoinstinct/source/browse/vendor/sourcesdk/current/src/game/client/vgui_video.cpp?spec=svn2&r=2[/url]
Copied all the required headers and cpp files to make vgui_video.cpp work, yet I get this compiling error : 2>vgui_video.obj : error LNK2001: symbole externe non résolu "class IBik * bik" (?bik@@3PAVIBik@@A)
You need to link against valve_avi.
[b][u]prepear.... 2 get spooked[/b][/u] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [img]http://filesmelt.com/dl/maxime_breaks_it_the_fuck_down.gif[/img] [media]http://vimeo.com/59050564[/media] [media]http://vimeo.com/59052239[/media] [highlight](User was permabanned for this post ("prepear... 2 get banned" - Gran PC))[/highlight]
I may sound dumb but, how do I create these links to valve_avi ?
It's compiler specific - you need to go into your project settings and specify "valve_avi.lib" as an additional linker dependency.
Oh, I see now, I'll let you know if this works. [editline]6th February 2013[/editline] I may sound even dumber, but where is that lovely valve_avi.lib file ? :tinfoil:
Isn't it bundled with the SDK? [editline]6th February 2013[/editline] BTW - [url]https://developer.valvesoftware.com/wiki/Source_SDK_missing_files[/url]
I already did that in the very first compile, It threw me the same error and fixed it with that, only the starting video works, no "playvideo" command...
If you have both pieces of code it should work.
You mean I must integrate weapon_sdkbase into my code ?
Nah, that's not it. I'll play around with the code a bit tomorrow and see if I figure anything out.
Alright, meanwhile I guess i'll remove it for now and continue the rest.
Sorry, you need to Log In to post a reply to this thread.