OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Serial Killer 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..
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:
Config: '\' encountered instead of ','
Can you fix that config for me..?
-
Try this one:
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
-
It's working :D I'll put your name on Special Thanks slot on my addon's readme, ok? ;)
-
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?
-
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
-
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\..." :)