Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Combining ATES with Ryex's Dynamic
#1
hello!  Laughing Laughing Laughing Laughing Laughing
How are you all doing?
I'm always busy... work doesn't set me free... Feeling sick


I recently realized that BGS doesn't play at the same time... Shocked

I have an ATES (Advanced Time and Environment System) weather and time script that I love. For a bit more realism here, I tried to use a dynamic sound where the BGS sounds depending on the distance.
Yes, BGS does not work at the same time in the program...

I carefully wondered if I could use BGS at the same time if I use DerVVulfman's Audio Module Rewrite mcisendstring. But I don't even know where to start doing this. Happy with a sweat Happy with a sweat

To recap, I wish ATES and Ryex's Dynamic Sounds would work at the same time.
To hear the sound of rain when it rains, and at the same time to hear the sound of a campfire when you are near a campfire... that would be fantastic

The sweltering heat has arrived... Be careful of heat stroke and stay healthy.




This is an example file.

https://drive.google.com/file/d/1akWS1bG...sp=sharing


Credits are below.


((Related article)) [Image: sweat.gif]

Audio Module Rewrite mcisendstring : https://www.save-point.org/thread-3981.h...hlight=BGS

Advanced Time and Environment System (ATES) : https://forum.chaos-project.com/index.php/topic,12869.0
Heretic's Collection of Art and 100% Compatible Scripts : https://forum.chaos-project.com/index.ph...682.0.html
Reply }
#2
Hrm... a bit of a challenge.  And surprise, I DID use the Audio Module MCISendString system... but not how you expect.

FIRST, the fading flame effect for your campfire works better than the fading SE system in MCISendString... the MCISendString verison is based on an older system.  So use of MCISendString to work with your campfire is a big no.

So that leaves with me focused upon the weather effect.

Now the weather effect in ATES too was using BackgroundSound, this meant to be a looping audio feature.  But there is another looping audio feature, the Background MUSIC.  This does not mean we are eliminating your ability to have background music when playing weather effects.  Nope nope nope.  We are going to use a feature within  MCISendString that will allow the use of default music effects while letting the weather play as well.

MCISendString can allow for 'multiple channels' of audio.  And for this, I set up MCISendString to allow for two BGM channels rather than just one that RPGMaker assumes.  When you use default commands in RPGMaker, the system assumes you play, pause, stop and fade music on the 1st channel.... so I decided to let the 2nd channel of BGM handle the weather bgs files.

Now this meant using MCISendString, but the DynamicSounds script conflicts with the BGS system in MCISendString, so what I provided is a seriously stripped down version... no BGS and no ME support in this edited version of MCISendString.  BUT it does have the BGM system, and I set the BGM system to two channels.

After that, I made a 'patch' which is below ATES.  The patch replaces the six methods that affect the weather audio. And the changes within the patch replaces lines like bgs_play(bgm)  with bgm_play(bgm,2).  Comically, the author had the audio file save to bgm?  It's like HE planned that!

Of some special note, the volume needed to be integer values, so I set them to be fixed integers and not floating point values.  That should not be an issue for you.  Meanwhile, I performed a FIX which you may not have noticed.  The audio fade features were set to adjust time by 40... that was 40fps, and you got a script command making it run at 60fps.  :D  I set it so it didn't care and would auto-adjust.

And here's the DEMO:

.zip   wahaProject2.zip (Size: 306.5 KB / Downloads: 3)

Now, there is something missing in this demo, because I can't attach anything TOO big in here.

Your Weather audio effects must NOW be placed within the Audio/BGM folder.  Yep, put a copy of 002-Wind02.ogg into your project's BGM folder, otherwise you won't hear it.

OH, I assume you're gonna remove that script at the top of your list.  It doesn't play well with the F12 button. Laughing
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
[Image: QrnbKlx.jpg]

Reply }
#3
(07-28-2022, 10:39 PM)DerVVulfman Wrote: Hrm... a bit of a challenge.  And surprise, I DID use the Audio Module MCISendString system... but not how you expect.

FIRST, the fading flame effect for your campfire works better than the fading SE system in MCISendString... the MCISendString verison is based on an older system.  So use of MCISendString to work with your campfire is a big no.

So that leaves with me focused upon the weather effect.

Now the weather effect in ATES too was using BackgroundSound, this meant to be a looping audio feature.  But there is another looping audio feature, the Background MUSIC.  This does not mean we are eliminating your ability to have background music when playing weather effects.  Nope nope nope.  We are going to use a feature within  MCISendString that will allow the use of default music effects while letting the weather play as well.

MCISendString can allow for 'multiple channels' of audio.  And for this, I set up MCISendString to allow for two BGM channels rather than just one that RPGMaker assumes.  When you use default commands in RPGMaker, the system assumes you play, pause, stop and fade music on the 1st channel.... so I decided to let the 2nd channel of BGM handle the weather bgs files.

Now this meant using MCISendString, but the DynamicSounds script conflicts with the BGS system in MCISendString, so what I provided is a seriously stripped down version... no BGS and no ME support in this edited version of MCISendString.  BUT it does have the BGM system, and I set the BGM system to two channels.

After that, I made a 'patch' which is below ATES.  The patch replaces the six methods that affect the weather audio. And the changes within the patch replaces lines like bgs_play(bgm)  with bgm_play(bgm,2).  Comically, the author had the audio file save to bgm?  It's like HE planned that!

Of some special note, the volume needed to be integer values, so I set them to be fixed integers and not floating point values.  That should not be an issue for you.  Meanwhile, I performed a FIX which you may not have noticed.  The audio fade features were set to adjust time by 40... that was 40fps, and you got a script command making it run at 60fps.  :D  I set it so it didn't care and would auto-adjust.

And here's the DEMO:


Now, there is something missing in this demo, because I can't attach anything TOO big in here.

Your Weather audio effects must NOW be placed within the Audio/BGM folder.  Yep, put a copy of 002-Wind02.ogg into your project's BGM folder, otherwise you won't hear it.

OH, I assume you're gonna remove that script at the top of your list.  It doesn't play well with the F12 button. Laughing




Thanks for the reply.  Blushing + Cheery
The crackling sound I hear when the weather changes is also gone. I've always been uncomfortable with this sound. 

However, the sound of the weather also evaporated. 
The campfire sound works well, and the in-game BGS sound is fine, but...
There is no sound effect even though I put the weather audio in the BGM folder. am i missing something?
Reply }
#4
It seems to work for me, though my demo has the  Ogg Vorbis audio files for your weather audio files in the Audio\BGM folder as directed.  I didn't upload it here because the attachment system has a 2MB cap and the demo being uploaded with the audio exceeded that cap.  I couldn't upload it with the audio.

I just added two more attachment types (.z01 and .z02) ... this to allow me to upload file-spanning downloads.  That is, you download all three files, and run the extraction on the main file.

So download all three below, and run extract on wahaProject2.zip

.zip   wahaProject2.zip (Size: 722.65 KB / Downloads: 2)

.z01   wahaProject2.z01 (Size: 768 KB / Downloads: 2)

.z02   wahaProject2.z02 (Size: 768 KB / Downloads: 2)

This will have all the files, and the weather audio... and it does work for me, playing the rain and storm and etc audio effects in tandem with the campfire.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
[Image: QrnbKlx.jpg]

Reply }
#5
I was stupid.... I'm ashamed to even leave a reply.  
After installing opencodecs_0.85.17777, the sound is normally heard.  Shocked Shocked Shocked Shocked
I didn't install opencodecs_0.85.17777 as I knew it was supported by Windows 10 itself... 
Okay, this is the way I wanted it, and it's so innovative and beautiful. 
I'm very sorry to bother you and always appreciate your help.  Blushing + Cheery Grinning
Reply }




Users browsing this thread: