Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: AudioDwarf: Game message filter with sound  (Read 883 times)

kaypy

  • Bay Watcher
    • View Profile
AudioDwarf: Game message filter with sound
« on: October 22, 2009, 07:16:38 am »

OK the concept is pretty simple:

DF outputs reams of information to gamelog.txt
We have regular expressions.

therefore:

A bit of python later and I have a program that will read through the gamelog (as the game writes new lines to it) and:
(a) play sounds when user defined text snippets are found
(b) also create a window of filtered messages

I've thrown a first pass up on DFFD:
http://dffd.wimbli.com/file.php?id=1511

It requires python and a sound library: http://www.speech.kth.se/snack/

Oh, and it doesn't actually come with a collection of sounds at this stage, use whatever you have lying around already. I guess that makes it a game message filter with sound without sounds...

I just wish there was a way to turn on combat messages in recent versions...
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: AudioDwarf: Game message filter with sound
« Reply #1 on: October 22, 2009, 07:36:10 am »

Hey, sounds great! I expect a lot of "smash", "flop" etc. during the combat later, and also it helps when you want to run your fortress AFK. Great idea, I wonder how you're the first to make it :D.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Telcontar

  • Bay Watcher
    • View Profile
Re: AudioDwarf: Game message filter with sound
« Reply #2 on: October 22, 2009, 12:18:13 pm »

Definitely going to give this a look later on. Can't wait to have all my jobs cancelled notifications sound off as "You must build additional pylons!"

No, no wait... on second thought that's a horrible idea. But I will check this out.
Logged