Can't Get Unit To Speak

Can't Get Unit To Speak

Discuss sound effects, game music, and the creation thereof.

Moderator: Moderators

Post Reply
User avatar
Machinesrocks
Posts: 37
Joined: 10 Aug 2011, 20:35

Can't Get Unit To Speak

Post by Machinesrocks »

I've encountered another problem that I cannot move past. My unit won't play the sounds I tell it to. First of all, my sound is in the correct directory, "sounds." Second, I'm not sure if I should have done this, but I have also tried putting the sound in "sounds.lua." Here is my current code for the sound:

Code: Select all

sounds = {
select = {
    { file = 'Gt_SEL_3.wav', volume = 2.0 },
  },
}
This is within my unitdefs.

Thanks for your time. 8)
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Can't Get Unit To Speak

Post by knorke »

This works for me, in the unitDef:

Code: Select all

  sounds			= {
	  select = {
	"yea", --this is sounds\yea.wav
	},
	  ok = {
	"samples/fire.ogg", --this is sounds\samples\fire.ogg
	},
  },
Did not need to use sounds.lua for that.
User avatar
Machinesrocks
Posts: 37
Joined: 10 Aug 2011, 20:35

Re: Can't Get Unit To Speak

Post by Machinesrocks »

Thanks a bunch, it works.

How would I raise its volume though?
User avatar
Cheesecan
Posts: 1571
Joined: 07 Feb 2005, 21:30

Re: Can't Get Unit To Speak

Post by Cheesecan »

Dabo, zugzug
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Can't Get Unit To Speak

Post by knorke »

Machinesrocks wrote:How would I raise its volume though?
http://springrts.com/wiki/Units-UnitDefs#sounds
see methode 3
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Can't Get Unit To Speak

Post by Beherith »

How is the Machines port coming along? Are you using the original models (I'll admit, I tried to rip them from its binary, with 0 success :( ) or remakes?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Can't Get Unit To Speak

Post by knorke »

Last visited: Thu Nov 10, 2011
But he/they have a site http://dev.wiredforwar.org/ with links to svn & youtube.
Post Reply

Return to “Sound Effects & Music”