War2.ru Slogan
News: Back by popular demand, the SMF Arcade!!!
PLAY NOW!!!!!!!!!!!!!!!!!!!!!!!!


Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Welcome to the forums! We're glad to have you here! :) You can register your account here, then feel free to introduce yourself in the Server.War2.ru board & let us know who you are on the server.

PlaySound plugin - Plays a sound of your choice on events (Game Start/Join game) 1422  21

Grunt Posts: 122 Karma: +17/-0 Chicken ***

fois

  • Grunt
  • ***
  • *
  • Posts: 122
  • Chicken
    • View Profile
PlaySound plugin - Plays a sound of your choice on events (Game Start/Join game)
« on: December 07, 2019, 10:21:19 AM »
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


Axe Thrower Posts: 458 Karma: +31/-0 ****

Tolean

  • Axe Thrower
  • ****
  • Posts: 458
    • View Profile
Re: PlaySound plugin - Plays a sound of your choice when someone joins your game
« Reply #1 on: December 07, 2019, 10:41:08 AM »
Cool!
Death Knight Posts: 3584 Karma: +91/-3 retired, be in music section *********

shesycompany

  • Death Knight
  • *********
  • Posts: 3584
  • retired, be in music section
    • View Profile
Re: PlaySound plugin - Plays a sound of your choice when someone joins your game
« Reply #2 on: December 07, 2019, 07:13:56 PM »
wow nice! mp3 soundtrack plugin?
Ogre Mage Posts: 1537 Karma: +82/-1 ********

Lambchops

  • Ogre Mage
  • ********
  • *
  • Posts: 1537
    • View Profile
Re: PlaySound plugin - Plays a sound of your choice when someone joins your game
« Reply #3 on: December 07, 2019, 08:28:27 PM »
Nice one  :thumbsup:
Grunt Posts: 122 Karma: +17/-0 Chicken ***

fois

  • Grunt
  • ***
  • *
  • Posts: 122
  • Chicken
    • View Profile
Re: PlaySound plugin - Plays a sound of your choice on events (Game Start/Join game)
« Reply #4 on: December 08, 2019, 12:04:28 AM »
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
Administrator Ogre Posts: 1453 Karma: +141/-9 *****

iL

  • Administrator
  • Ogre
  • *****
  • *
  • Posts: 1453
    • View Profile
*

iL

Re: PlaySound plugin - Plays a sound of your choice on events (Game Start/Join game)
« Reply #5 on: December 08, 2019, 04:41:59 AM »
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.
Axe Thrower Posts: 404 Karma: +25/-3 ****

CLAVV

  • Axe Thrower
  • ****
  • Posts: 404
    • View Profile
Re: PlaySound plugin - Plays a sound of your choice on events (Game Start/Join game)
« Reply #6 on: December 09, 2019, 03:44:29 PM »
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
Axe Thrower Posts: 323 Karma: +43/-2 ****

Player

  • Axe Thrower
  • ****
  • Posts: 323
    • View Profile
Re: PlaySound plugin - Plays a sound of your choice on events (Game Start/Join game)
« Reply #7 on: December 12, 2019, 01:28:05 AM »
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?
Grunt Posts: 122 Karma: +17/-0 Chicken ***

fois

  • Grunt
  • ***
  • *
  • Posts: 122
  • Chicken
    • View Profile
Re: PlaySound plugin - Plays a sound of your choice on events (Game Start/Join game)
« Reply #8 on: December 12, 2019, 09:13:14 AM »
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)
Grunt Posts: 122 Karma: +17/-0 Chicken ***

fois

  • Grunt
  • ***
  • *
  • Posts: 122
  • Chicken
    • View Profile
Re: PlaySound plugin - Plays a sound of your choice on events (Game Start/Join game)
« Reply #9 on: December 12, 2019, 11:04:07 AM »
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
Grunt Posts: 62 Karma: +0/-0 We're smarter than you. ***

Available

  • Grunt
  • ***
  • *
  • Posts: 62
  • We're smarter than you.
    • View Profile
Re: PlaySound plugin - Plays a sound of your choice on events (Game Start/Join game)
« Reply #10 on: December 12, 2019, 03:43:32 PM »
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)
Grunt Posts: 122 Karma: +17/-0 Chicken ***

fois

  • Grunt
  • ***
  • *
  • Posts: 122
  • Chicken
    • View Profile
Re: PlaySound plugin - Plays a sound of your choice on events (Game Start/Join game)
« Reply #11 on: December 12, 2019, 07:33:02 PM »
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?

Axe Thrower Posts: 323 Karma: +43/-2 ****

Player

  • Axe Thrower
  • ****
  • Posts: 323
    • View Profile
Re: PlaySound plugin - Plays a sound of your choice on events (Game Start/Join game)
« Reply #12 on: December 13, 2019, 12:23:47 AM »
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.
Grunt Posts: 122 Karma: +17/-0 Chicken ***

fois

  • Grunt
  • ***
  • *
  • Posts: 122
  • Chicken
    • View Profile
Re: PlaySound plugin - Plays a sound of your choice on events (Game Start/Join game)
« Reply #13 on: December 13, 2019, 09:10:46 AM »
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

Grunt Posts: 62 Karma: +0/-0 We're smarter than you. ***

Available

  • Grunt
  • ***
  • *
  • Posts: 62
  • We're smarter than you.
    • View Profile
Re: PlaySound plugin - Plays a sound of your choice on events (Game Start/Join game)
« Reply #14 on: December 13, 2019, 11:29:53 AM »
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)