Home   Help Search Login Register  

Author Topic: Sound section in config...  (Read 1552 times)

0 Members and 1 Guest are viewing this topic.

Serial Killer

  • Guest
Sound section in config...
« on: 10 Apr 2005, 15:07:01 »
I've almost done that Volcano addon, but there's a little problems with sound section in config. Here's that section..

Code: [Select]
class CfgSounds
{
    class start
    {
        sound[] = {""\Volcano\sounds\start.ogg"",db1.0,1.000000};
        name = "start.ogg";
        titles[]={};
    };
    class volcano
    {
        sound[] = {""\Volcano\sounds\volcano.ogg"",db1.0,1.000000};
        name = "volcano.ogg";
        titles[]={};
    };
};

When I start the game, then comes an error message:

Code: [Select]
Config: '\' encountered instead of ','
Can you fix that config for me..?


« Last Edit: 10 Apr 2005, 15:07:54 by Serial Killer »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Sound section in config...
« Reply #1 on: 10 Apr 2005, 15:12:38 »
Try this one:

Code: [Select]
class CfgSounds
{
    class start
    {
        sound[] = {"\Volcano\sounds\start.ogg",db1.0,1.000000};
        name = "start.ogg";
        titles[]={};
    };
    class volcano
    {
        sound[] = {"\Volcano\sounds\volcano.ogg",db1.0,1.000000};
        name = "volcano.ogg";
        titles[]={};
    };
};


Planck
I know a little about a lot, and a lot about a little.

Serial Killer

  • Guest
Re:Sound section in config...
« Reply #2 on: 10 Apr 2005, 15:20:46 »
It's working :D I'll put your name on Special Thanks slot on my addon's readme, ok? ;)

Serial Killer

  • Guest
Re:Sound section in config...
« Reply #3 on: 10 Apr 2005, 15:25:23 »
Strange.. Game starts succesfully, but the sounds aren't working :-\ It says that sound cannot be found. Here's ALL the config...

class CfgPatches
{
     class Volcano
     {
         units[] = {Volcano};
         weapons[] = {};
         requiredVersion = 1.40;
     };
};

class CfgVehicles
{

     class All {};
     class AllVehicles: All {};
     class Land: AllVehicles {};
     class Static : Land {};
     class Building : Static {};
     class NonStrategic : Building {};
     class House: NonStrategic {};
     class Volcano: House
     {

         scope=2;
         vehicleClass="Serial Killer's stuff";
         side=TCivilian;
         cost=1;
         mapSize=1;
         displayName="Volcano";
         icon="unknown_move";
         model=\Volcano\Volcano;
     };
};

class CfgSounds
{
    class start
    {
        sound[] = {"\Volcano\sounds\start.ogg",db1.0,1.000000};
        name = "start.ogg";
        titles[]={};
    };
    class volcano
    {
        sound[] = {"\Volcano\sounds\volcano.ogg",db1.0,1.000000};
        name = "volcano.ogg";
        titles[]={};
    };
};

I try to activate them by playSound "\Volcano\sounds\sound" etc. etc. What should I do?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Sound section in config...
« Reply #4 on: 10 Apr 2005, 15:36:35 »
Are you sure you have a sounds folder inside your addon folder.

And start.ogg and volcano.ogg are inside it?

If this is all correct you should be able to use them.



Planck
I know a little about a lot, and a lot about a little.

Serial Killer

  • Guest
Re:Sound section in config...
« Reply #5 on: 10 Apr 2005, 15:38:35 »
Yes, all the sounds are inside of that addon folder

EDIT: Found the problem.. Sounds must be activated by playSound "sound" etc. no playSound "\Addon folder\..." :)


« Last Edit: 10 Apr 2005, 15:42:38 by Serial Killer »