Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: edmundito on Sun 09/05/2004 23:59:44

Title: AGS Editor Plugin: Media Manager (Preview Edition)
Post by: edmundito on Sun 09/05/2004 23:59:44
(http://netmonkey.cellosoft.com/plugins/mediaman.gif)

I always wondered how people like Grundislav managed with several voice and sound and music files in their game folder (for like Carver Island 3), so I decided to come up with a solution for it. This is the first step, which just organizes the sound files. It does not yet organize the voice files based on character, but I'll implement that sometime soon. I always wanted to make a media player of some sort, and this is where this plugin is heading towards. Eventually you'll be able to play the sound and audio files, as long as you have support for them (like an OGG plugin for DirectX and whatnot). I have already messed with playing files, but this version does not include that feature because it's still very buggy.

I wanted to release a full-featured version in one blow, which might be the next version you'll see, but I wanted people to test this to test AGS Editor plugins and also to test .NET-based plugins, which was not the original idea supported by CJ-. It seems to work very well, just follow the 3 step install process in the readme file enclosed with the plugin.

Enjoy!

Download (http://www.agagames.com/netmonkey/plugins/AGS_MediaMan_NET_02.zip)


Update: There's a new update to the plugin... download it if you downloaded it before the "Last edit" date on this post.
Title: Re: AGS Editor Plugin: Media Manager (Preview Edition)
Post by: jannar85 on Mon 10/05/2004 00:18:16
Hey! This looks (sounds) cool! Awesome!
The sound is muted right now, but I can try it tomorrow :D
Title: Re: AGS Editor Plugin: Media Manager (Preview Edition)
Post by: Scummbuddy on Mon 10/05/2004 06:17:50
i look forward to the idea of seperating characters in their own tree branches, and the ability to preview the selected sounds. keep up the good work. i cant wait for the next version.
Title: Re: AGS Editor Plugin: Media Manager (Preview Edition)
Post by: Rui 'Trovatore' Pires on Mon 10/05/2004 06:19:02
I'll add it to my site... which SHOULD have unfrozen by now. I'll try e-mailing FreeWebs. In the meantime, great work!

EDIT - Loading up agsedit.exe, I get

---------------------------
AGS Editor Warning
---------------------------
Unable to create instance for plugin: 'AGS_MediaMan_NET.PluginMain'.

Ensure that the plugin filename has the correct case and that it really is an AGS plugin.
---------------------------
OK   
---------------------------

...and then AGS runs normally, but without the plugin.
Title: Re: AGS Editor Plugin: Media Manager (Preview Edition)
Post by: strazer on Mon 10/05/2004 09:49:23
I suppose you need .NET runtimes for this?

I want to install as little as possible, so assuming they work like the VB runtimes, what are the names of the required DLLs so I can put them into the application directory as needed?
Title: Re: AGS Editor Plugin: Media Manager (Preview Edition)
Post by: Vel on Mon 10/05/2004 16:09:20
That looks really useful, Ill download the final version.
Title: Re: AGS Editor Plugin: Media Manager (Preview Edition)
Post by: edmundito on Mon 10/05/2004 17:37:59
Yes, you need to go to windows update and get the .NET Framework... it's not too dificult to install, if your IE is working fine. I mentioned it in the readme file included in the zip but I should have mentioned here, too, I guess.
Title: Re: AGS Editor Plugin: Media Manager (Preview Edition)
Post by: Grundislav on Mon 10/05/2004 17:58:05
I always wondered how people like me managed their files too...maybe that's why it's taken forever for me to release Carver Island 3.

Anyway, good work.  This will definitely come in handy.
Title: Re: AGS Editor Plugin: Media Manager (Preview Edition)
Post by: TerranRich on Mon 10/05/2004 19:08:49
Hah, with BTS, I'm just keeping a list in Notepad, but this looks awesome and would help immensely! Will the character voice tree diagrams be able to support matching lines of text with the voice file? For example, if EGO123.OGG says "It is a tree!" then it would be good to have that line  point to that voice file.
Title: Re: AGS Editor Plugin: Media Manager (Preview Edition)
Post by: Scorpiorus on Mon 10/05/2004 19:50:48
Nice work netmonkey! I look forward to the next release. :)

~Cheers
Title: Re: AGS Editor Plugin: Media Manager (Preview Edition)
Post by: Pumaman on Mon 10/05/2004 21:22:41
Good work :)

I tried it out, but whenever I click anything in the tree, I get this:


System.IO.FileNotFoundException: File or assembly name Microsoft.DirectX.AudioVideoPlayback, or one of its dependencies, was not found.
File name: "Microsoft.DirectX.AudioVideoPlayback"
   at AGS_MediaMan_NET.AGSPanel.getDuration(String file)
   at AGS_MediaMan_NET.AGSPanel.loadMediaList(String s)
   at AGS_MediaMan_NET.AGSPanel.onNodeSelect(Object sender, TreeViewEventArgs e)
   at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)
   at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
   at System.Windows.Forms.TreeView.WmNotify(Message& m)
   at System.Windows.Forms.TreeView.WndProc(Message& m)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)



I presume you need some sort of DirectX-.net installed, any ideas where to get it?
Title: Re: AGS Editor Plugin: Media Manager (Preview Edition)
Post by: Scummbuddy on Mon 10/05/2004 22:09:16
did you get the .net downloads from windows update?
Title: Re: AGS Editor Plugin: Media Manager (Preview Edition)
Post by: Pumaman on Mon 10/05/2004 22:50:44
Yeah, I've got the .net framework installed. I presume there's some sort of extra bit you need for .net DX support though.
Title: Re: AGS Editor Plugin: Media Manager (Preview Edition)
Post by: edmundito on Mon 10/05/2004 23:57:08
Oh, I know why... you can't get the time from WAVE file neither with DirectX... Hmm... apparently it's  just MP3s... that's kind of crappy. I'll fix it and reupload it.
Title: Re: AGS Editor Plugin: Media Manager (Preview Edition)
Post by: Pet Terry on Tue 11/05/2004 10:48:06
Nice job!

Forgot to mention that I got the same error as CJ when clicking the Media tree, though.

EDIT: Updated the plugin, now I don't get the error anymore. However, the lists are empty even though I have voice files, sound effects and OGG-music in my games... ??? The earlier version, on the other hand, show the files I had in my game folder.
Title: Re: AGS Editor Plugin: Media Manager (Preview Edition)
Post by: edmundito on Tue 11/05/2004 18:20:22
Another build is up, this time the problems are  fixed.

Here's a new problem, though. Before you copy the new plugin, make sure you unselect it from your game, and then once you copy the new file, open your game and re-select the plugin. Otherwise,  it might not work properly. I'm not sure if this is an AGS Editor fault, or my own fault. I'm trying to figure out what's going on...

Thanks to petteri for his assistance on testing these problems  ;D
Title: Re: AGS Editor Plugin: Media Manager (Preview Edition)
Post by: Pumaman on Tue 11/05/2004 20:53:03
Thanks, yeah the new version works fine :)