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

subspark

Okay. I like that. Even if it means readjusting my dialog voice sample references.
I'm all smiles  :D

Cheers man!

smiley

*bump*
New version 0.5 with two major new features:

-Search for usage of file in script and dialog

-Audio files can now be given a script name which is declared as an enum. So in the script you can use it like that: "PlaySound(sndBoom)". (Thanks to RickJ for the suggestion.)


Pumaman

Nice work! Clever stuff getting the zoom to script thing to work, I don't think I actually exposed that on the interface!

Couple of minor things that I found:

1. If you scroll down the list of sounds and select one, then switch to another tab and switch back, the list scrolls back to the top

2. I got this when previewing a sound:

Error: Arithmetic operation resulted in an overflow.
Version: AGS 3.0.0.22

System.OverflowException: Arithmetic operation resulted in an overflow.
   at AGS.Plugin.AudioManager.Audio.get_Position()
   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)

smiley

Quote from: Pumaman on Thu 17/01/2008 18:43:58
Nice work! Clever stuff getting the zoom to script thing to work, I don't think I actually exposed that on the interface!
The editor itself exposes the method "GUIController.ZoomToFile". But I was surprised that it really worked...

Quote
1. If you scroll down the list of sounds and select one, then switch to another tab and switch back, the list scrolls back to the top
Will be fixed in the next release.

Quote
2. I got this when previewing a sound:
Hmm, the only thing I'm doing there is a conversion from uint to int, so is the sound over 596 hours long? ;)
Can you please upload the file, because I can't reproduce that.

Pumaman


smiley

Fixed in the new version.

Thanks for reporting.

Pumaman

Quote from: smiley on Thu 17/01/2008 21:32:05
The editor itself exposes the method "GUIController.ZoomToFile". But I was surprised that it really worked...

I'd advise against using reflection to call random methods, because I might refactor the editor code at any time and break your plugin. I'd much prefer you to make a request for me to add the method to the interface, which I will then make sure is properly supported in future versions.


smiley


Shane 'ProgZmax' Stevens

This is such a useful addition to ags that I really think it should become part of the distribution package rather than a separate download!


SSH

12

edmundito

Oh, sweet! I'm glad someone took over my unworkable Media Manager and actually made it work! I was just thinking about it the other day, and I even saw the code in my thumb drive... I guess I'm off the hook :P
The Tween Module now supports AGS 3.6.0!

smiley

Another release, another audio library. This time it's FMOD Ex.

Big new feature:
You can now add new subnodes to the Audio node. These nodes come in three flavours: Lists, Filters and Folders. Files have to be added manually to lists (-> file context menu), filters get them automatically if they match the conditions (-> filter context menu).

Dualnames

This will help me bundle lc3 speech...Thanks a lot dude.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Rui 'Trovatore' Pires

This is very good, but I've now become rather confused due to the lack of documentation.

What is the use of lists, filters, and the library?
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

smiley

If you have a seperate folder on your harddrive with all your audio files (with more descriptive names than 'music1.ogg') you want to use in your game, you can set this folder as the library.

Lists & filters should help you organize your files. Lists are pretty much the same as playlists in normal music players, so you have to add and remove entries manually. Filters are 'automatic lists', so e.g. you want a pane that only shows the files which descriptions contain the word 'Background', you can set this as a filter rule (right click on the filter node->edit filter).

smiley

*bump for 0.7*

New feature:
Create and edit Pamela lipsync files. Futhermore, the plugin is now aware of .pam files and renames/deletes them if the corresponding speech file is renamed/deleted.

Creating Pamela files currently uses a third-party tool which uses Microsoft's Speech SDK, so if you're not running XP or Vista, you probably have to install Microsoft's Speech 5.1 Redistributables (speechsdk51msm.exe).



smiley

#38
*bump for 1.0*

New feature:
You can now manage your video and flic files (hence the name change).
By default, the plugin searches the Compiled folder + subfolders for video files and the game folder for flics.

Mantra of Doom

This is a really cool plugin and something I've been meaning to look for... but once I installed it, opened up my game to change something and then save it, I get this Error:

Code: ags

Error: Unable to generate a temporary class (result=1).
error CS0200: Property or indexer 'MediaManager.Common.Data.FileProperties.DurationSpecified' cannot be assigned to -- it is read only
error CS0200: Property or indexer 'MediaManager.Common.Data.FileProperties.SizeSpecified' cannot be assigned to -- it is read only
error CS0200: Property or indexer 'MediaManager.Common.Data.FileProperties.DescriptionSpecified' cannot be assigned to -- it is read only
error CS0200: Property or indexer 'MediaManager.Common.Data.FileProperties.ScriptNameSpecified' cannot be assigned to -- it is read only

Version: AGS 3.0.2.44

System.InvalidOperationException: Unable to generate a temporary class (result=1).
error CS0200: Property or indexer 'MediaManager.Common.Data.FileProperties.DurationSpecified' cannot be assigned to -- it is read only
error CS0200: Property or indexer 'MediaManager.Common.Data.FileProperties.SizeSpecified' cannot be assigned to -- it is read only
error CS0200: Property or indexer 'MediaManager.Common.Data.FileProperties.DescriptionSpecified' cannot be assigned to -- it is read only
error CS0200: Property or indexer 'MediaManager.Common.Data.FileProperties.ScriptNameSpecified' cannot be assigned to -- it is read only
 ---> System.InvalidOperationException: Unable to generate a temporary class (result=1).
error CS0200: Property or indexer 'MediaManager.Common.Data.FileProperties.DurationSpecified' cannot be assigned to -- it is read only
error CS0200: Property or indexer 'MediaManager.Common.Data.FileProperties.SizeSpecified' cannot be assigned to -- it is read only
error CS0200: Property or indexer 'MediaManager.Common.Data.FileProperties.DescriptionSpecified' cannot be assigned to -- it is read only
error CS0200: Property or indexer 'MediaManager.Common.Data.FileProperties.ScriptNameSpecified' cannot be assigned to -- it is read only

   at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, CompilerParameters parameters, Evidence evidence)
   at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, CompilerParameters parameters, Assembly assembly, Hashtable assemblies)
   at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
   at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace, String location, Evidence evidence)
   at System.Xml.Serialization.XmlSerializer..ctor(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, String defaultNamespace, String location, Evidence evidence)
   at System.Xml.Serialization.XmlSerializer..ctor(Type type, XmlRootAttribute root)
   at MediaManager.Common.Data.MediaPlugin.ToXml(XmlTextWriter writer)
   at MediaManager.Common.Component.BaseComponent.ToXml(XmlTextWriter writer)
   at AGS.Editor.ComponentController.NotifySavingGame(XmlTextWriter writer)
   at AGS.Editor.ApplicationController._events_SavingGame(XmlTextWriter writer)
   at AGS.Editor.EditorEvents.OnSavingGame(XmlTextWriter writer)
   at AGS.Editor.AGSEditor.SaveGameFilesProcess(Object parameter)
   at AGS.Editor.BusyDialog.RunHandlerOnThread()
   --- End of inner exception stack trace ---
   at AGS.Editor.BusyDialog.Show(String message, ProcessingHandler handler, Object parameter)
   at AGS.Editor.AGSEditor.SaveGameFiles()
   at AGS.Editor.Components.FileCommandsComponent.CommandClick(String controlID)
   at AGS.Editor.ToolBarManager.ToolbarEventHandler(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


Not really sure what that means, I'm running Vista Ultimate (64) on Build 3.0.2.44 of AGS. I've never had an error like this before. In the meantime, I'm going to uninstall this so I can continue working on my game.
"Imitation is the sincerest form of imitation."

SMF spam blocked by CleanTalk