Author Topic: Custom sound definitions for LUA  (Read 6140 times)

Major Cooke

  • Achiever
  • Sapling
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 57
Custom sound definitions for LUA
« on: March 29, 2010, 11:37:11 AM »
Would it be possible to implement in another patch or so, a way to define sound overwriting definitions so you can put in your own sounds without the need to replace the actual names? Also, would it be possible to define multiple sounds for the game to randomly choose from in say like... a list, or a table of some sort?

For example:

There's a laser mine that... well, emits multiple random sounds when firing his lasers. He'll loop one sound while firing, and then change to another sound after.

It'll have three sound files-- a donkey scream, a loud fart, and a turd minion's gibbing sound from Redneck Rampage.

donkey.ogg
fart.ogg
jib.ogg (no really, it's called that...)

and I want the game to randomly choose one of those three, in place of MineAttackLoop.ogg.

Just to get you the idea of how it would go.

Think it's doable?


Alex

  • Administrator
  • Ent
  • *****
  • Thank You
  • -Given: 3
  • -Receive: 15
  • Posts: 1,035
Re: Custom sound definitions for LUA
« Reply #1 on: March 29, 2010, 06:43:20 PM »
We're not set up for that at the moment but I'll have a look - might be easy to do...

Major Cooke

  • Achiever
  • Sapling
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 57
Re: Custom sound definitions for LUA
« Reply #2 on: March 29, 2010, 08:42:41 PM »
Heheh, okay. Sounds great. Yeah, I plan on releasing a custom sound content base if it can be set up.

TorchFire

  • Playing since 2008
  • Tester
  • Sapling
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 68
  • Eufloria: Yes
Re: Custom sound definitions for LUA
« Reply #3 on: March 31, 2010, 05:58:56 PM »
Custom sounds would be great.  At the moment, I have several sounds modified, including my favored v.1.20 attack sound for the seedlings.  It would be nice to have an easier way to play around with these.

Rudolf

  • Administrator
  • Old Oak
  • *****
  • Thank You
  • -Given: 5
  • -Receive: 13
  • Posts: 669
  • Eufloria: Yes
Re: Custom sound definitions for LUA
« Reply #4 on: April 04, 2010, 04:40:20 AM »
Maybe we start a "Modding requests" thread?
Or maybe Alex will stab me if he finds out I suggested that...

 :o

Major Cooke

  • Achiever
  • Sapling
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 57
Re: Custom sound definitions for LUA
« Reply #5 on: April 04, 2010, 06:25:28 AM »
I say "DEW EET" because it's an epic idea.

Alex

  • Administrator
  • Ent
  • *****
  • Thank You
  • -Given: 3
  • -Receive: 15
  • Posts: 1,035
Re: Custom sound definitions for LUA
« Reply #6 on: April 06, 2010, 06:00:25 PM »
Anything people want to do with the game is good info - I've started the thread

Rudolf

  • Administrator
  • Old Oak
  • *****
  • Thank You
  • -Given: 5
  • -Receive: 13
  • Posts: 669
  • Eufloria: Yes
Re: Custom sound definitions for LUA
« Reply #7 on: April 06, 2010, 09:08:34 PM »
Anything people want to do with the game is good info - I've started the thread

Dude... put the knife away...

Alex

  • Administrator
  • Ent
  • *****
  • Thank You
  • -Given: 3
  • -Receive: 15
  • Posts: 1,035
Re: Custom sound definitions for LUA
« Reply #8 on: April 07, 2010, 01:19:49 AM »
It's not a 'knife', it's a scalpel.

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 5
  • Posts: 1,809
Re: Custom sound definitions for LUA
« Reply #9 on: April 07, 2010, 01:33:54 AM »
Perhaps a scalpel for taking flower cuttings..? :>