MaximF_ 0 Posted January 25 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
pierremgi 3281 Posted January 25 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
MaximF_ 0 Posted January 25 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
pierremgi 3281 Posted January 25 How do you call your sound (the entire line of script, not the command)? Share this post Link to post Share on other sites
MaximF_ 0 Posted January 25 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
pierremgi 3281 Posted January 25 58 minutes ago, MaximF_ said: I just do playSound, say3D, etc. up to you Share this post Link to post Share on other sites
major-stiffy 221 Posted January 25 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
MaximF_ 0 Posted January 25 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
major-stiffy 221 Posted January 25 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
MaximF_ 0 Posted January 25 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