Author Topic: Module: Lip synching with Lucasarts-style speech  (Read 1008 times)  Share 

This is a feature I've long-requested for AGS, but didn't get implemented, so here's a module for it!

Lip synching with Lucasarts-style speech module

AGS won't let you use both Lucasarts-style speech and Pamela-file lip-synching, so this module hacks speaking characters after picking up the Pamela files manually.  It's adapted from Calin Leafshade's original code, without which I wouldn't have had the faintest clue of what to do, so thanks Calin!

I've tried to comment the code and make it all understandable, but post a reply here and I'll see if I can help further.  It was a big help for my own game, Da New Guys: Day of the Jackass, and with the help of Smiley's lip synch manager (which auto-generates the pamela files), I got lip-synching into my game in about two days.

Hope someone finds it useful!

Grundislav

  • AGS Baker
  • Mittens Duke
  • Brogan
    • Lifetime Achievement Award Winner
    •  
  • Grundislav worked on a game that was nominated for an AGS Award!Grundislav worked on a game that won an AGS Award!
Re: Module: Lip synching with Lucasarts-style speech
« Reply #1 on: 02 Feb 2012, 22:40 »
Thanks!  This is indeed very useful.  The only nitpick I have is that it wasn't clear where I had to put the Dat folder.  I didn't know "game directory" meant "compiled directory" but I'm a little slow.

Aside from that it works like a charm!
Visit my Games Page

Re: Module: Lip synching with Lucasarts-style speech
« Reply #2 on: 03 Feb 2012, 09:55 »
After so many years, my biggest AGS-related wish has finally come true! :D

Well, technically, it kind of already did when Calin contributed his code back in 2010...but at least it's all wrapped up in a tidy little module now.

Thank you very much!

Calin Leafshade

  • AGS Project Admins
  • Long live King Cat!
    • I can help with AGS tutoring
    •  
    • I can help with voice acting
    •  
  • Calin Leafshade worked on a game that was nominated for an AGS Award!Calin Leafshade worked on a game that won an AGS Award!
Re: Module: Lip synching with Lucasarts-style speech
« Reply #3 on: 03 Feb 2012, 14:01 »
Glad someone found my code useful. A few things that puzzle me though.

Why did you change the iSay function from an extender function?

cChar.iSay(what);

makes more sense than

iSay(cChar, what);

Also there're a few things you could do to clean up the code since some of my sloppiness remains but overall it probably wont matter.

All in all a job well done!

Leon: You need the sword first before you can get the monkey.

Re: Module: Lip synching with Lucasarts-style speech
« Reply #4 on: 04 Feb 2012, 15:45 »
Put any confusion in the code down to my own ineptitude  :=

I'm afraid my philosophy when it comes to coding is pretty much "If it works for me, don't go changing it"