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 » 11 Aug 2011, 17:16

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)
0 x

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

Re: Can't Get Unit To Speak

Post by knorke » 12 Aug 2011, 07:32

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.
0 x

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

Re: Can't Get Unit To Speak

Post by Machinesrocks » 12 Aug 2011, 22:24

Thanks a bunch, it works.

How would I raise its volume though?
0 x

User avatar
Cheesecan
Posts: 1571
Joined: 07 Feb 2005, 21:30

Re: Can't Get Unit To Speak

Post by Cheesecan » 19 Dec 2011, 11:41

Dabo, zugzug
0 x

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

Re: Can't Get Unit To Speak

Post by knorke » 19 Dec 2011, 17:23

Machinesrocks wrote:How would I raise its volume though?
http://springrts.com/wiki/Units-UnitDefs#sounds
see methode 3
0 x

User avatar
Beherith
Moderator
Posts: 4934
Joined: 26 Oct 2007, 16:21

Re: Can't Get Unit To Speak

Post by Beherith » 19 Dec 2011, 18:53

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?
0 x

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

Re: Can't Get Unit To Speak

Post by knorke » 19 Dec 2011, 18:57

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

Post Reply

Return to “Sound Effects & Music”

cron