Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - smiley

#1
Purely proof-of-concept at the moment. Barely anything besides registering new script functions has been tested.

Website

The 'AGSPlugin' class contains the callback methods as described here.

RegisterScriptFunction example:
Declare a method:
Code: ags

private static int AddNumbers(int a, int b)
{
   return a + b;
}

and a matching delegate:
Code: ags

[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate int AddNumbersDel(int a, int b);

The delegate has to use the UnmanagedFunctionPointer attribute with CallingConvention.Cdecl.

Register the script header in EditorStartup:
Code: ags

public int EditorStartup(IAGSEditor editor)
{
   editor.RegisterScriptHeader("import int AddNumbers(int, int);
");
   return 0;
}

Register the script function in EngineStartup:
Code: ags

private AddNumbersDel del;
public void EngineStartup(IAGSEngine engine)
{
   del = new AddNumbersDel(AddNumbers);
   IntPtr address = Marshal.GetFunctionPointerForDelegate(del);
   engine.RegisterScriptFunction("AddNumbers", address);
}



#2
This plugin allows you to:
1) automatically create Pamela lip sync files from your speech files.
2) edit existing Pamela lip sync files.

This was part of my MediaManager plugin, but since the upcoming version 3.2 of AGS will make it pretty much obsolete, it's now starting its solo career.

Main difference:
Speech recognition is now written in C# instead of using an external tool, which lead to the following sentence:
This plugin requires at least .Net 3.0!
So XP (Vista comes with 3.0) users who haven't installed it already, please download it from here.

Download:
http://sites.google.com/site/infralicht/home/ags/AGS.Plugin.LipSync.zip
Unpack the content of the zip file to the editor folder.
#3
The Media Manager editor plugin allows you to manage your audio/video files from within the editor.
Discontinued
SMF spam blocked by CleanTalk