Quote:
Originally Posted by SkyBaron
EDIT: I finally figured out how to do it. Never thought of looking at the .ini files, that was the problem. Now when I try to use Menu.PlaySound("sh.sdl sound name") I get this error:
If I use GetTDWSound().PlaySound everything works fine. Since I will probably make this compatible with the NewUI only, I'd rather use your sound library to avoid compatibility issues with some other mod's sh.sdl. 
|
You'd have to send me your files so I can see what you did to get the error. Did you add the required entry(ies) in the Sh.sdl file?
Of course my library function will work! It doesn't depend on the game in any way! I play sounds through my own method that doesn't require them to be registered with Sh.sdl
The only problem with trying to make something compatible with my files is you'll have to update them everytime I change a file you used. A real PITA! It's best to create your own .py and .ini file and add the required entry(ies) to the main menu file and then hook into the game messages so you can play your sound when a message comes you are looking for