Author Topic: PlaySound plugin - Plays a sound of your choice on events (Game Start/Join game)  (Read 8224 times)

Offline fois

  • Grunt
  • ***
  • Posts: 230
  • Chicken
    • View Profile
This plugin will play a sound of your choice on certain events. e.g. the host just started the game or someone joined your game. It's useful in case your game is minimized and you don't want to miss the game start or you want to hear when someone joined your game.


You can replace the .wav files with any sounds you want, I got the ones that are included from here: https://www.soundjay.com/

If you only want to get notified about a game start but you don't want to get notified about someone joining a game then just delete the matching .wav files.



Filenames: JoinGame.wav, StartGame.wav, LeaveGame.wav, Message.wav, PrivateMessage.wav, GameEnd.wav, Kicked.wav

Example:
Use "JoinGame.wav" if you want the sound to play no matter if the game window got the focus or not.

Use "JoinGameNoFocus.wav" if you only want the sound to play if the game doesn't have the focus / is minimized (Make sure you don't have "JoinGame.wav" in the folder)

Use "JoinGameFocus.wav" if you only want the sound to play if the game is active and got the focus (Make sure you don't have "JoinGame.wav" in the folder)


Download Here


« Last Edit: April 04, 2020, 07:44:44 PM by fois »

Offline Tolean

  • Axe Thrower
  • ****
  • Posts: 458
    • View Profile
Cool!

Offline shesycompany

  • Death Knight
  • *********
  • Posts: 3587
  • retired, be in music section
    • View Profile
wow nice! mp3 soundtrack plugin?

Offline Lambchops

  • Ogre Mage
  • ********
  • Posts: 1541
    • View Profile
Nice one  :thumbsup:
its gooder to hax hard and NEVER get caught!

Offline fois

  • Grunt
  • ***
  • Posts: 230
  • Chicken
    • View Profile
wow nice! mp3 soundtrack plugin?

I think windows vista and above can play mp3 files, but windows xp can't... so maybe it's possible :D



Update:

Just updated the plugin, there is now a new sound included that will trigger when the host is starting the game so you don't miss the game start anymore

Offline iL

  • Administrator
  • Ogre Mage
  • *****
  • Posts: 1650
    • View Profile
Just updated the plugin, there is now a new sound included that will trigger when the host is starting the game so you don't miss the game start anymore
Nice idea! That's what i thought about: these 5 beeps are not being played then your are in alt-tab, very unlikely. Great if you can listen the game being started.
Need help to translate War2Combat to German, French, Italian, Polish or another language: http://forum.war2.ru/index.php/topic,4728.0.html
Please, contact me if you are interested in that.

Offline (PLS DELETE MY ACC)

  • Axe Thrower
  • ****
  • Posts: 439
    • View Profile
This plugin will play a sound of your choice on certain events. e.g. the host just started the game or someone joined your game. It's useful in case your game is minimized and you don't want to miss the game start or you want to hear when someone joined your game.

Put PlaySound.w2p and the Sounds folder into your plugin folder and that's it. If you don't have a plugin folder then install combat 45 standard or full.

You can replace the .wav files with any sounds you want, I got the ones that are included from here: https://www.soundjay.com/

If you only want to get notified about a game start but you don't want to get notified about someone joining a game then just delete the matching .wav files.



Got any more ideas of any sounds we need in case the game is minimized or windowed? Post here...

NOICE. I ACTUALLY HAD THE SAME IDEA AND EVEN USED IT FOR A PERIOD OF TIME YEEEEEARZ AGO. NOBODY WAS INTERESTED THEN // NO1 TRUSTED ME ENOUGH TO USE IT
http://www.youtube.com/watch?v=_LC4YCh9Hg0
TOTALLY UNBIASED CHOP VIDEO

NOTHING (EXCEPT FOR A SUPER FRESH ADMIN) CAN STOP THE VANIMAL!

Offline Player

  • Axe Thrower
  • ****
  • Posts: 481
    • View Profile
This is cool, but I don't hear anything when I'm on my desktop and war2 is minimized.  Is it me or is that how the plug in is at this time?

Offline fois

  • Grunt
  • ***
  • Posts: 230
  • Chicken
    • View Profile
This is cool, but I don't hear anything when I'm on my desktop and war2 is minimized.  Is it me or is that how the plug in is at this time?


What windows do you have?

Did you try to install war2 combat 46 (it has everything properly set up and works fine)?

And just to make it clear, the game will still turn the sound off when you minimize it, the plugin just plays 2 sounds you can hear when the game is minimized (when someone joined a game or the host started the game)
« Last Edit: December 12, 2019, 11:55:23 AM by fois »

Offline fois

  • Grunt
  • ***
  • Posts: 230
  • Chicken
    • View Profile
Update:

StartGame sound is now the same one the game is using (2 beeps instead of 5 though) and only plays if the game is minimized or doesn't have the focus

Offline Available

  • Global Moderator
  • Grunt
  • *****
  • Posts: 180
  • We're smarter than you.
    • View Profile
Is it possible to hear when someone sends messages in lobby and/or leaving?

here two "soundpacks" that may be useful. (external 'sound' folder works for countdown, etc)

Offline fois

  • Grunt
  • ***
  • Posts: 230
  • Chicken
    • View Profile
Is it possible to hear when someone sends messages in lobby and/or leaving?

here two "soundpacks" that may be useful. (external 'sound' folder works for countdown, etc)

nice!

Yeah I can add that tomorrow.

What's going on with that sound folder? Does that already work or you want me to do something with that one too?


Offline Player

  • Axe Thrower
  • ****
  • Posts: 481
    • View Profile
This is cool, but I don't hear anything when I'm on my desktop and war2 is minimized.  Is it me or is that how the plug in is at this time?


What windows do you have?

Did you try to install war2 combat 46 (it has everything properly set up and works fine)?

And just to make it clear, the game will still turn the sound off when you minimize it, the plugin just plays 2 sounds you can hear when the game is minimized (when someone joined a game or the host started the game)

Ignore me, it works fine.  I just wasn't listening.

Offline fois

  • Grunt
  • ***
  • Posts: 230
  • Chicken
    • View Profile
Here is a test version that supports more sounds and lets you choose if a sound should always play or not.

Filenames: JoinGame.wav, StartGame.wav, LeaveGame.wav, Message.wav, PrivateMessage.wav

Example:
Use "JoinGame.wav" if you want the sound to play no matter if the game window got the focus or not.

Use "JoinGameNoFocus.wav" if you only want the sound to play if the game doesn't have the focus / is minimized (Make sure you don't have "JoinGame.wav" in the folder)

Use "JoinGameFocus.wav" if you only want the sound to play if the game is active and got the focus (Make sure you don't have "JoinGame.wav" in the folder)


Edit: Download in first post updated

« Last Edit: December 22, 2019, 03:26:41 AM by fois »

Offline Available

  • Global Moderator
  • Grunt
  • *****
  • Posts: 180
  • We're smarter than you.
    • View Profile
What's going on with that sound folder? Does that already work

Yes it will work simply placed in war2 folder (with saved directories structure)