Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
no voice

lcm
Registered User
Quote
2022-02-26 15:01:44

Why sometimes my project has no voice?


just_in_case
Moderator
Quote
2022-02-26 20:00:47

Probably because of the change of project directory or the location of the sound files.

Sound files that has been added through the sound node get embedded into the project and sound files that has been uaed by the "play sound" action doesn't get embedded into the project. Its always better to use sound nodes to hold all the sound files and set their playmode to nothing.
And simply change their playmode, during the gameplay to execute the sound effect. That way the sounds file will always be embedded into the scene.

Some sound formats only works in the editor but doesn't play in the final exe, make sure you are working with the correct sound format.

Hope that helps.


Robo
Guest
Quote
2022-03-26 23:58:09

That's good advice from 'just_in_case' for when you only use a limited number of sounds.

For those like me using hundreds of different sounds becomes impractical to do it that way as most sounds might never play as so many variations. In this case just load them as needed and you will need to setup a folder like 'sounds' or something and put all your sounds in there.

For my game - I use separate sound nodes for music, general, ambient, voice, walking and weather and separate folders for each one as want multiple sounds playing at the same time..

The lookup directory will look something like this:

var node = ccbGetSceneNodeFromName("Sound");
var snd = "sounds/robot.ogg";
ccbSetSceneNodeProperty(node, "PlayMode", "nothing");
ccbSetSceneNodeProperty(node, "SoundFileName", snd);
ccbSetSceneNodeProperty(node, "Volume", 80);
ccbSetSceneNodeProperty(node, "PlayMode", "play_once");

// sound volume adjustment optional

You need to reset these common sound nodes each time a sound is played (to 'nothing') else will only play once...


Arcanjo
Guest
Quote
2022-03-28 06:35:41

It's a bug of your version of Coppercube.
There is another bug "lost textures".
Upgrade your Coppercube to new version.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact