sorry for necroposting this old thread.
But! I like this script and thought that it's pretty sad that it's not compatible to SwapXT.
With the initial version you can specify footstep sounds which are then played on all maps.
But what if you swapped your tilesets? And now you've got a stone tile where the RMVX standard tileset had a grass tile.
Walking about the stone and then hearing the sound of you walking over grass? Sounds stupid, right? Well I thought that myself and changed this script so that it now supports a configuration file where you can specify which footstep-sounds you want to have played on which map.
Explanations on how to do this is provided in the script. If you don't have the configuration file this still works because it fails back to the default footstep sounds provided by DeadlyDan in the initial script. These however are only for the standard tilesets and may sound strange on swapped ones as mentioned above.Update:
So far you had to create a block for every map. But I thought that it would be stupid to create a new block for every map even if the tiles are the same on them. Eg. I'm using a custom tileset for a lot of maps. Now it's possible to use a single block for as many maps as you want. I updated the documentation in the script and attached the new version to this posting.Update 2:
I had a small bug in there which prevented playing the layer 1 sounds. It's fixed now. I updated the attached version.Update 3:
The game crashed if you didn't have a config file. Now it works as promised without a file and uses default sounds.
This is the first thing I wrote in Ruby/RGSS2. But since Ruby's syntax is almost identical to Perl (I am a Perl programmer.) I didn't have that much trouble as soon as I figured out how to access the game's objects/classes without crashing the game.
If there's any trouble with this please don't hesitate to ask me. I'm open for suggestions as well of course! There are probably better ways on how to access the variables but using global variables was the only thing I could come up with.
If you find the whole configuration file thingie too much of a hassle to do yourself... I'm thinking about writing a little program (in compiled Perl of course
) that does this for you. But so far it's not available and I don't know when I'll be able to write this. I'm still working on my own first RMVX game at the moment.
If you're planning to use this please give credit to DeadlyDan and me.
The newest version of this script can always be found here: http://www.digioso.org/DeadlyDan_Footsteps
This post has been edited by Digioso: Nov 8 2011, 05:23 AM