View topic - Can't Get Unit To Speak



All times are UTC + 1 hour


Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Can't Get Unit To Speak
PostPosted: 11 Aug 2011, 16:16 
User avatar

Joined: 10 Aug 2011, 19:35
Location: EVERYWHERE
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:
sounds = {
select = {
    { file = 'Gt_SEL_3.wav', volume = 2.0 },
  },
}


This is within my unitdefs.

Thanks for your time. 8)


Top
 Offline Profile  
 
PostPosted: 12 Aug 2011, 06:32 
Moderator
User avatar

Joined: 22 Feb 2006, 01:02
Location: cheap kitchen
This works for me, in the unitDef:
Code:
  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.


Top
 Offline Profile  
 
PostPosted: 12 Aug 2011, 21:24 
User avatar

Joined: 10 Aug 2011, 19:35
Location: EVERYWHERE
Thanks a bunch, it works.

How would I raise its volume though?


Top
 Offline Profile  
 
PostPosted: 19 Dec 2011, 11:41 
User avatar

Joined: 07 Feb 2005, 21:30
Location: Cheese factory
Dabo, zugzug


Top
 Offline Profile  
 
PostPosted: 19 Dec 2011, 17:23 
Moderator
User avatar

Joined: 22 Feb 2006, 01:02
Location: cheap kitchen
Machinesrocks wrote:
How would I raise its volume though?
http://springrts.com/wiki/Units-UnitDefs#sounds
see methode 3


Top
 Offline Profile  
 
PostPosted: 19 Dec 2011, 18:53 
Moderator
User avatar

Joined: 26 Oct 2007, 15:21
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?


Top
 Offline Profile  
 
PostPosted: 19 Dec 2011, 18:57 
Moderator
User avatar

Joined: 22 Feb 2006, 01:02
Location: cheap kitchen
Last visited: Thu Nov 10, 2011
But he/they have a site http://dev.wiredforwar.org/ with links to svn & youtube.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.