Jump to content
MaximF_

Arma 3 Cfg Sounds is Currently Bugged

Recommended Posts

Recently the same scripts I use for all of my normal user-made missions cfg sound script have suddenly stopped working to a bug. Every time I use playSound or say3D I get this error: Type Object, expected nothing. Yet I can play the same sound with no problems when using the effects section in a trigger. This makes absolutely no sense as this exact script works on other missions I have made but for some reason not any of my recent ones. I seriously want to get a gun and shoot my computer 35 times this shit is so frustrating. Here is my desc.ext:
 

class CfgMusic
{
    sounds[] = {cutscenemusic};
    class music
    {
        name = "cutscenemusic";
        sound[] = {"sound\cutscenemusic.ogg", db+1, 1.0};
        titles[] = {0, ""};
    };
};

class CfgSounds
{
 sounds[] = {};
 class banter1
 {
  name = "banter1";
  sound[] = {"\sound\banter1.ogg", 100,1};
  titles[] = {};
 };
 class scline1
 {
  name = "scline1";
  sound[] = {"\sound\scline1.ogg", 100,1};
  titles[] = {};
 };
 class line3
 {
  name = "line3";
  sound[] = {"\sound\line3.ogg", 100,1};
  titles[] = {};
 };
 class banter4
 {
  name = "banter4";
  sound[] = {"\sound\banter4.ogg", 700,1};
  titles[] = {};
 };
 class banter5
 {
  name = "banter5";
  sound[] = {"\sound\banter5.ogg", 1,1};
  titles[] = {};
 };
};

author="Maxim";
OnLoadName = "The Last War";
OnLoadMission = "This will be the end...";
loadScreen = "images\splash1.jpg"


And beleive me, all of my aspects are correct like my sound folder is not spelt wrong and so on.

Share this post


Link to post
Share on other sites

Perhaps you added an object named banter1, or any other class above, in your scenario.

Share this post


Link to post
Share on other sites
25 minutes ago, pierremgi said:

Perhaps you added an object named banter1, or any other class above, in your scenario.

Nope

Share this post


Link to post
Share on other sites

How do you call your sound (the entire line of script, not the command)?

Share this post


Link to post
Share on other sites
10 hours ago, pierremgi said:

How do you call your sound (the entire line of script, not the command)?

I just do playSound, say3D, etc.

Share this post


Link to post
Share on other sites
58 minutes ago, MaximF_ said:

I just do playSound, say3D, etc.

up to you

Share this post


Link to post
Share on other sites
13 hours ago, MaximF_ said:

class CfgSounds
{
 sounds[] = {};
 class banter1
 {
  name = "banter1";
  sound[] = {"\sound\banter1.ogg", 100,1};
  titles[] = {};
 };

 

Remove the \ in front of sound.

Ex.

class CfgSounds {
	sounds[] = {};
	class serverambient {
		name="serverambient";
		sound[]={sounds\serverambient.ogg, 20, 1, 20}; // filename, volume, pitch, distance
		titles[] = {};
	};	

This works for me:

[serverambient, ["serverambient", 500, 1]] remoteExec ["say3D"];

Share this post


Link to post
Share on other sites
3 hours ago, major-stiffy said:

 

Remove the \ in front of sound.

Ex.


class CfgSounds {
	sounds[] = {};
	class serverambient {
		name="serverambient";
		sound[]={sounds\serverambient.ogg, 20, 1, 20}; // filename, volume, pitch, distance
		titles[] = {};
	};	

This works for me:

[serverambient, ["serverambient", 500, 1]] remoteExec ["say3D"];

I use it without the \ I was just seing if it worked liked that and both versions still don't. Same error. Type Object, expected nothing.

Share this post


Link to post
Share on other sites

I guess you'll have to reexamine things cause it works for me. Tested today in a MP mission I'm making?

 

And you have given variable names on objects to where each sound is to come from?

Type Object, expected nothing sounds like it might be the case?

Share this post


Link to post
Share on other sites
1 hour ago, major-stiffy said:

I guess you'll have to reexamine things cause it works for me. Tested today in a MP mission I'm making?

 

And you have given variable names on objects to where each sound is to come from?

Type Object, expected nothing sounds like it might be the case?

I have gave variable names yes

Share this post


Link to post
Share on other sites
On 1/24/2021 at 11:59 PM, MaximF_ said:

Recentemente, os mesmos scripts que uso para todas as minhas escolhas normais feitas pelo usuário, o script de som cfg, de repente, parou de funcionar para um bug. Sempre que usar playSound ou say3D, recebo este erro: Type Object, nada espero. Ainda assim, posso tocar o mesmo som sem problemas ao usar uma seção de efeitos em um gatilho. Isso não faz absolutamente nenhum sentido, pois esse script exato funciona em outras missões que fiz, mas por algum motivo, nenhuma das minhas recentes. Eu realmente quero pegar uma arma e atirar no meu computador 35 vezes, essa merda é tão frustrante. Aqui está o meu desc.ext:
 

classe CfgMusic
{
    filhos [] = {cutscenemusic};
    aula de música
    {
        nome = "cutscenemusic";
        som [] = {"som \ cutscenemusic.ogg", db + 1, 1,0};
        títulos [] = {0, ""};
    };
};

classe CfgSounds
{
 filhos [] = {};
 classe banter1
 {
  name = "banter1";
  som [] = {"\ som \ banter1.ogg", 100,1};
  títulos [] = {};
 };
 class scline1
 {
  name = "scline1";
  som [] = {"\ som \ scline1.ogg", 100,1};
  títulos [] = {};
 };
 classe linha3
 {
  nome = "linha3";
  som [] = {"\ som \ linha3.ogg", 100,1};
  títulos [] = {};
 };
 classe banter4
 {
  name = "banter4";
  som [] = {"\ som \ banter4.ogg", 700,1};
  títulos [] = {};
 };



  som [] = {"\ som \ banter5.ogg", 1,1};
  títulos [] = {};
 };
};

autor = "Maxim";
OnLoadName = "A última guerra";
OnLoadMission = "Este será o fim ...";
loadScreen = "images \ splash1.jpg"


E acredite em mim, todos os meus aspectos estão corretos, como se minha pasta de som não estivesse escrita incorretamente e assim por diante.

 

did you manage to solve your problem? the same thing is happening to me, I can't use the lines I used on any object, the only thing that works is to "say" without 3D, if I use 3D, the message Type object, I don't expect anything, and it doesn't make sense, I used the same line in another mission and it works, but from 4 days until now it stopped working

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×