I was able to identify the source of the issue...
You must put ALL sound files used in your game into your game's Audio folder (in the corresponding subfolders - BGM, BGS, ME or SE), even the ones from the RTP.
The script reads only the game's folders, and NOT the RTP folders, that's why you get an error.
This error happens if you did not install the RTP to it's default folder (something like: CommonProgramFiles/Enterbrain/ somewhere on your windows partition). Can also happen on different versions of windows, since the default install directory is not the same for all version of windows, but the code for reading the RTP is hard-coded, and uses the above folder destination only.
I did not install to that location either, so the only way of getting the script to work is to copy all the used audio files from the RTP to the game's audio folder.
Well, you should do this anyway before you release your game, right?
And wow, some BGM sound so much better with this script than without, but some SE in my project can not be heard at all... I wonder what's up with the SEs... >.>
Edit:
So, I found a way to enter your own path to the RTP.
Search this line in the script:
def self.pathsIn this definition, you will see this line:
Code:
common = File.join(ENV['CommonProgramFiles'], 'Enterbrain')
That is the first line you need to edit.And a bit further down, you will see this line:
when 2 then File.join(common, 'RGSS3', 'RPGVXAce')That is the second line to edit.I will use an example to demonstrate what will you need to do:
My RTP is installed here: "D:\RPG Maker VX Ace\RTP Resources\RPGVXAce".
So, I changed the above lines to these:
Line 1:
common = File.join('D:', 'RPG Maker VX Ace')Line 2:
Code:
when 2 then File.join(common, 'RTP Resources', 'RPGVXAce')
This solved the issue for me, because now it reads from the correct RTP path.I suppose you could simply add a new line after the 'end' line which comes after the 2nd mentioned line (when 2 ...).
That would look like this:
common = "D:\RPG Maker VX Ace\RTP Resources\RPGVXAce\"So that you overwrite the 'common' variable which holds the path to the RTP with the correct path.I did not test this method, so I don't know if this works or not.
But no matter what I do, SEs will not play at all with this script, which kinda sucks...
Nevermind my ranting about SEs. It turns out, I needed a codec for .ogg files, which is weird, because any other player plays .ogg files just fine without any additional codecs installed. Ohh, well, it didn't hurt me to install that codec so far, so it's fine, but the handling of .ogg files with this script is terrible... It slows down the game for a few seconds every time an .ogg file is played, and if an audio fade effect is still ongoing when a BGM change took place, it will fade out both the old and the new BGMs resulting in a deadly silent room after a map transfer, for example...
This script got some potential, but it is far from being perfect. Too many bugs and slowdowns makes it impossible to use it in any real project.
Good luck with using this for your project! Maybe you will get better results from it than me.