![]() |
maddox.sound runtime error
Can any of the coding guru's suggest why the code below fails with a 'sound not part of maddox' runtime error when I run this script with a mission. Seems like the compiler doesn't recognise that maddox.sound is referenced in my project (but it is). No errors show up in C# express.
code removed by author |
//$reference parts/core/sound.dll
didn't work? BTW The "new" soundengine is in fmodex.dll and fmod_event.dll, it's from a 3rd party developer http://www.fmod.org/ may be this is the problem. |
The sound.dll is already referenced, and yes, it didn't work. I'll try the FMOD components instead. Thankyou
|
New (similar) problem :( I can reference the FMOD namespace in my project, and use it's classes & methods without any apparent error in C# express. However, I get a "the namespace FMOD could not be found" console error when the mission runs. I tried to add a reference to fmodex in the c# project but that "could not be added". Help!
code removed by author UPDATE: Fmod is unmanaged C++ and thus can't be referenced directly into .Net. You have to use the FMOD wrapper. Now I'm looking for the wrapper. UPDATE: Found the wrapper, imported the cs files into my project, but now there is an 'incompatible' error between FMOD for CLOD & the fmodex classes in the wrapper :( Is there a way to reference FMOD in C# express projects? |
Bump
|
If you are trying to play a non standard sound on the client (player's) machine, I'm afraid that will not work.
You will end up with the sound being played on the server which, if running on your machine, will make you thing is coming from the client. |
All times are GMT. The time now is 10:50 PM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.