EDITOR PLUGIN: Media Manager 1.0a (for AGS 3.0.1+)

Started by smiley, Tue 13/11/2007 02:19:22

Previous topic - Next topic

smiley

The Media Manager editor plugin allows you to manage your audio/video files from within the editor.
Discontinued

Khris

Very nice work! This is extremely helpful.

Minor suggestion: right-clicking an item opens the menu for the selected item, not the one under the mouse.

VK Dan

#2
Great plugin! This solves one of my biggest problems with AGS.  ;D I have gotten a couple errors with it though.

1. It doesn't seem to be able to play .OGG files on my computer (XP Home, AGS 3.0 beta 15). It gives me the error:
Code: ags

---------------------------
AudioManager
---------------------------
A problem occurred in initializing MCI.
---------------------------
OK   
---------------------------


2. Every now and then when playing a sound I get this error.
Code: ags

Error: Value of '373' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
Parameter name: Value
Version: AGS 3.0.0.15

System.ArgumentOutOfRangeException: Value of '373' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
Parameter name: Value
   at System.Windows.Forms.TrackBar.set_Value(Int32 value)
   at AGS.Plugin.AudioManager.AMPane.moveTrackbar(Object sender, EventArgs e)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


EDIT: Hmm, I found another small bug. It also shows non-sound files inside the list as long as they begin with "Sound". For example, it shows 'SoundList.dat', 'SoundCode.dat', and 'SoundCode.txt', but not the 'readme.txt' I was using earlier to keep track of sounds.

smiley

Thanks for the feedback!

@KhrisMUC:
Right, somehow I forgot to change that. In the new version the row is selected on right-click.

@VK Dan:
1.
You probably need this DirectShow filter for ogg files:
http://www.illiminable.com/ogg/oggcodecs_0.71.0946.exe

2.
I can't reproduce the error message, but it should be fixed now.

3.
Yeah, the filter was a bit too sloppy. It's stricter (but not perfect) now.

VK Dan

#4
Quote from: smiley on Tue 13/11/2007 10:39:39
Thanks for the feedback!

@KhrisMUC:
Right, somehow I forgot to change that. In the new version the row is selected on right-click.

@VK Dan:
1.
You probably need this DirectShow filter for ogg files:
http://www.illiminable.com/ogg/oggcodecs_0.71.0946.exe

2.
I can't reproduce the error message, but it should be fixed now.

3.
Yeah, the filter was a bit too sloppy. It's stricter (but not perfect) now.

Thanks, it's working better now. I do have another bug report though. When I play a sound with the volume low, it is loud for about half a second, before going to the lower volume.

EDIT: Another small suggestion. The '-' button on the library bar should probably change to a '+' when the library is collapsed.

subspark

#5
I think the plugin should be renamed in the editor pane like this:

I made you an AGS 3.0 style icon for the plugin:
http://www.shuugouteki.net/paul/Images/audio.ico

Wonderful work, smiley!

EDIT: Instead of a category field, could we perhaps have separate sections for more comfortable viewing. For example:


Here are the category icons if you wish to use them.
http://www.shuugouteki.net/paul/Images/Music.ico
http://www.shuugouteki.net/paul/Images/Sound.ico
http://www.shuugouteki.net/paul/Images/Speech.ico

Cheers,
Paul.

Pumaman

Nice work smiley, this is something that AGS has needed for a long time :)

VK Dan

Quote from: subspark on Tue 13/11/2007 16:25:31
EDIT: Instead of a category field, could we perhaps have separate sections for more comfortable viewing. For example:


Or maybe they could all be subnodes in the audio node. For example
Code: ags

+-Audio
----Music
----Sound
----Speech


Double clicking on Audio could open up the library. That would solve any problem of having all four categories on one page crowding the UI too much.

Rui 'Trovatore' Pires

Great work. Mind you, though, if the OGG codec is needed for OGG operations, maybe it should be also available in a zip file...?

I don't need it, meself, 'cause I already have that codec, but it's always more friendly.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

smiley

#9
@VK Dan:
Thanks for reporting. Didn't happened in my tests, but it should be fixed now.

@subspark:
Nice icons! Thanks a lot.

@Rui
Done. Next releases will maybe also come as a bundled installer or will include an integrated downloader/installer. The next release's going to use irrKlang and doesn't need additional codecs.


As Dan suggested, the plugin now allows you to view music/sound/speech files separatly by double clicking the nodes. The library is only displayed in the all files section or if you activate it in the options menu (right click on Audio->Options->Always show library)

GarageGothic

This looks like a great plugin. I'll definitely be using it as soon as the final version of 3.0 is out, I've been a bit reluctant to do any actual work on my game in the betas.

Shane 'ProgZmax' Stevens

Very nice work, even though I still get an MCI error in spite of having the codecs installed.  I'm glad I didn't follow through with making this plugin now!  One thing I would like to see is better organization of the names; right now it doesn't properly list the titles because music0-9/sound0-9 are not labelled music00, music01, etc.  As a result they are moved into the tens places on the list.  This is a minor complaint, however.

smiley

Since RC1 broke the plugin, here's a new (earlier than planned) release.
Besides the compatibility issue, it's now using an audio library called irrKlang for all audio formats expect midi and voc (btw. is anyone using voc?).

@ProgZmax:
Should both be fixed now.

Shane 'ProgZmax' Stevens


subspark

Looking good looking good. Nice multi-tri-icon smiley! Sorry I didn't think of making one for you but you seem to have done an outstanding job instead.
Congrats to Smiley for our new Audio Manager!!!!

Cheers,
Paul.

Shane 'ProgZmax' Stevens

I noticed something with the sound playback.  Certain sound files (and really short sound files) will not play with the built-in player, though externally I can play them with winamp and they work fine in the game.  Here are two examples:

http://members.cox.net/progzmax/movies/sound0.mp3

http://members.cox.net/progzmax/movies/sound1.mp3

I'm not sure if you can correct this since it has something to do with the sound library.

smiley

Hmm, strange. That didn't happen with any of my files...
Looks like it plays them too fast (100x and 1000x faster).

Encoding them again with Audacity and Lame seems to fix that.
Alternatively you can replace the plugin with this version:
http://ueberlicht.googlepages.com/AGS.Plugin.AudioManager.dll
and delete ikpMP3.dll. So the plugin uses MCI again for mp3 files.

Shane 'ProgZmax' Stevens


subspark

BUG: EGO0.wav can't be called in the dialog editor. If used &0 the game will crash when it loads that sound file. AGS thinks its an invalid number. I'm not sure what happened here as soon as I installed the latest sound manager it shifted the order of all my voice files around.

Cheers,
Paul.

smiley

#19
Quote from: subspark on Thu 29/11/2007 10:10:30
BUG: EGO0.wav can't be called in the dialog editor. If used &0 the game will crash when it loads that sound file. AGS thinks its an invalid number.
Oops, my fault. Thanks for reporting. The lowest number for speech files is 1 not 0. This will be fixed in the next release.

Quote from: subspark
I'm not sure what happened here as soon as I installed the latest sound manager it shifted the order of all my voice files around.
The files are no longer sorted alphabetically (DOS-Style).
e.g.:
speech1.mp3
speech10.mp3
speech2.mp3
speech20.mp3

They are sorted by their number (logical/Windows Explorer-Style)
e.g.:
speech1.mp3
speech2.mp3
speech10.mp3
speech20.mp3

SMF spam blocked by CleanTalk