When i try to play a custom sound effect, the game wont play it and displays an error window saying:
"directsound errord (dserr_bufferlost)"
thats all, it just wont play the sound, i checked the default sounds and they were .wav so i maded a new one with .wad extension but it still wont budge.
did you just replace the extension by just typing the new one? that doesn't generally work with audio files last i knew, you may need to get something like Audacity and export it as the proper type.
i'm not going to be much help here then, but the last troubleshooting idea i have for you is to make a shorter version of that sound file, and see if it works. at least then you will probably know it's file size.
you could also try importing it properly instead of pasting if that was your way, just in case.
DSERR_BUFFERLOST can have a ton of reasons, including - if I got it correctly - stuff like broken memory or other hardware-errors. But if everything else on your system that uses WASAPI for audio-output works without any problem, it almost surely has to be something with your file.
A few tips to keep filesize small and increase chances of being compatible:
Don't go higher than 44100Hz sampling and 16bit, also MONO is enough for ~most~ sound-effects. And RPG2000/2003 support ADPCM-compression for WAV-files since an update that was released around 19 years ago. SampleGame 花嫁の冠 utilizes this since RPG2000's first re-release for stuffing its 1738[!] top-quality voice-clips into ~130MB.
~炬燵あ