Page 1 of 1

DirectShow for Adventure Maker

PostPosted: Sat Dec 02, 2017 9:36 am
by time-killer-games
DirectShow Video Player Plugin v1 by Samuel Venable

This plugin allows you to play videos that are NOT skippable, even if the escape key is pressed.
The cursor will be hidden whenever a video is currently playing, to match the new v4.7.1 feature.
Regardless of whether the video is played from a hotspot click OR a frame load, you can resize it.
Other benefits of this plugin include more video format and codec support than the default player.

Supported video formats and codecs are listed and explained at this link.

100% free, open source, and public domain.
*.ocx made with Visual Studio 2017 Community.
Source code was written in C++ (MFC).

DOWNLOADS


IMPORTANT NOTE

This plugin under-the-hood relies on looping timed events for every frame, so whenever you remove timed events with code, you shouldn't assume the timed events you created are the only ones floating around.

In other words, instead of doing this:
Code: Select all
CreateTimedEvent ...


And this:
Code: Select all
RemoveTimedEvent 1


You should store the timed events you create in a variable, like so:
Code: Select all
TimedEventVar = CreateTimedEvent ...


And then remove it like this:
Code: Select all
RemoveTimedEvent TimedEventVar


You can replace "TimedEventVar" with whatever variable name suits your needs.

If you aren't dynamically removing timed events with code in your project, then you won't need to worry about this, and you can then use the plugin without compensation. I'm going to be working on a new version soon that will hopefully no longer rely on Adventure Maker's timed event system, but until then, keep this stuff in mind.

Cheers!
Samuel

Re: DirectShow for Adventure Maker

PostPosted: Sat Dec 02, 2017 6:38 pm
by reneuend
Cool! 8)
Very excited to see your demo and sample code.
Thanks! :mrgreen:

Re: DirectShow for Adventure Maker

PostPosted: Sat Dec 02, 2017 7:03 pm
by time-killer-games
Hi reneuend!

All the downloads are now up. This plugin requires zero lines of code to write, everything is done in AM's interface. :D

However, if you would like to modify the plugin itself, as usual, that would require some code.

You're welcome, it's my pleasure! :)

Re: DirectShow for Adventure Maker

PostPosted: Sun Dec 03, 2017 1:23 am
by time-killer-games
I don't know if anyone has downloaded it since the time I posted the original links, but anyway the original build I posted had a bug where the taskbar wasn't being hidden in fullscreen. That bug I have fixed and I have replaced the download links with a new build that solves the issue. The taskbar should now remain hidden in fullscreen at all times.

If anyone encounters new bugs with this plugin, please let me know.

I'm hoping to update my HostExe plugin soon. Wish me luck! :D

Re: DirectShow for Adventure Maker

PostPosted: Sun Dec 03, 2017 12:39 pm
by skype6
Very nice! Good job :)

Re: DirectShow for Adventure Maker

PostPosted: Sun Dec 03, 2017 9:30 pm
by time-killer-games
Thanks skype6!

I fixed a new bug I found and updated the download links again. If you already downloaded the plugin, please re-download everything you may have gotten from those links in the OP and uninstall + delete all older versions of this plugin you may have that were published before the writing of this post.

So the bug was, if you had "enable the option to switch between fullscreen/windowed" checked in project settings, and you tried to switch in and out of fullscreen at least once in-game, the taskbar would go back to being visible in fullscreen, which the taskbar should never be visible in fullscreen. This is now fixed, (for real this time), that no matter what, the taskbar will NOT be visible at all whenever you are in fullscreen. :mrgreen:

If I or anyone else encounters any new bugs that I end up fixing, or if I add any new features at this point, I will change the version number from v1 to v2, depending on how much gets fixed/added within the next update.

Re: DirectShow for Adventure Maker

PostPosted: Mon Dec 04, 2017 1:26 am
by reneuend
I'm going to add this to the Plug-ins listing.
Downloading now to test it out!
It's nice to see something new to use in AM despite the fact that AM itself hasn't been updated or converted to a newer language.
Thanks again!!!!!

TKG!!! I'm getting 404 errors on your download links!!!!

Re: DirectShow for Adventure Maker

PostPosted: Mon Dec 04, 2017 2:27 am
by time-killer-games
reneuend wrote:TKG!!! I'm getting 404 errors on your download links!!!!


lol, sorry reneuend. I was in the middle of updating the links again.
Make that version 1.3. :)

Cheers.
Samuel

Re: DirectShow for Adventure Maker

PostPosted: Sun Dec 10, 2017 3:46 am
by time-killer-games
Just published v1.4!

This is just a quick bugfix version, no added features.

Fixed bugs:

  • Fixed a problem where the game window would overlap the taskbar when NOT in fullscreen.
  • Fixed a bug where the plugin would prevent the save and load game windows from appearing when you click save or load from the menu.

That's all for now! :mrgreen:

Re: DirectShow for Adventure Maker

PostPosted: Tue Dec 12, 2017 8:21 pm
by time-killer-games
Just published v1.4.1!

This is just a quick bugfix version, no added features.

Re: DirectShow for Adventure Maker

PostPosted: Thu Dec 14, 2017 6:55 am
by time-killer-games
Just published v1.4.2!

This is just a quick bugfix version, no added features.

Fixed bugs:

  • Fixed a problem where the taskbar would still show when in fullscreen after playing a video at the start of a game. (I must've broke that in a previous version).

Re: DirectShow for Adventure Maker

PostPosted: Fri Dec 15, 2017 4:59 am
by time-killer-games
Just published v1.4.3!

New Features:

  • You can now (optionally) execute Adventure Maker VBS code automatically once the video has finished playing.

Re: DirectShow for Adventure Maker

PostPosted: Fri Dec 15, 2017 6:15 am
by time-killer-games
Just published v1.4.4!

This is just a quick bugfix version, no added features.

Re: DirectShow for Adventure Maker

PostPosted: Fri Dec 15, 2017 10:27 am
by time-killer-games
Just published v1.4.5!

New Features:

  • Added a checkbox for executing VBScript, so that you can turn on and off VBS execution without having to constantly backspace and re-type the same code.

Re: DirectShow for Adventure Maker

PostPosted: Sat Jan 06, 2018 5:32 pm
by Vengeance66
Man, you've been busy! Awesome!!!

Re: DirectShow for Adventure Maker

PostPosted: Tue Jan 09, 2018 10:09 pm
by time-killer-games
Thanks V66! I have a lot of downtime right now for someone my age so I do my best to keep myself busy. :)