Download
(24Kb)
Download
Updated: 01-14-21 07:27 AM
Compatibility:
Shadowlands patch (9.0.2)
Updated:01-14-21 07:27 AM
Created:09-06-12 04:08 PM
Downloads:3,585
Favorites:7
MD5:
Categories:RolePlay, Music Mods, Mounts & Pets

Pet Battle Music

Version: 1.9
by: Choonstertwo [More]

Description
This AddOn simply plays custom music (like Pokemon music) during pet battles. To add tracks, follow the instructions in music.lua.

For copyright reasons I can't distribute any Pokemon music with this AddOn, but if you know of some suitable music with a permissive licence (or in the public domain), just leave a comment on Curse or WoW Interface and I'll see if I can package it with future releases.

CAUTION: The included Populate_Music scripts will completely overwrite your existing music.lua file! Make sure you back up any manual changes you make.

Both the Windows and Unix scripts require the ogginfo program from the vorbis-tools package.

On Windows, download vorbis-tools-win32-bin.7z from here, unpack it and copy ogginfo.exe, libogg.dll and libvorbis.dll into the Interface\AddOns\PetBattleMusic\ogginfo folder.

On Mac OSX, you can install vorbis-tools from Homebrew (you don't need to put ogginfo in the AddOn folder like on Windows). On other Unix-like systems, you can probably install it from your package manager.

The Unix script also requires mp3info, available from Homebrew or your package manager.

Alpha Versions, API and Source Code
For the latest alpha versions, check CurseForge. API documentation for AddOn authors can be found here.

The source code is now available on GitHub.

1.9
  • Bump TOC Interface version to 9.0
  • Fix PopulateMusic_Windows PowerShell script

1.8
  • Bump TOC Interface version to 8.0
  • Add .travis.yml file and TOC properties for the BigWigs packager script
    • https://www.wowinterface.com/forums/showthread.php?t=55801

1.7.1
  • Add missing changelog for 1.7

1.7
  • Update to 7.0

1.6
  • Update Windows scripts to work with Windows 10
    • Thanks to badjujumojo of Curse for the index
  • Update to 6.2

1.5
  • Stop mute timer when starting a new battle before the previous battle's victory/defeat music has finished
    • Fixes music stopping completely and game music being left off in the middle of a battle

1.4
  • Change PopulateMusic_Windows to use ogginfo for Ogg files
  • Update unsupported OS message in Windows scripts

1.3
  • Update to 6.0
    • Replace animation timers with new C_Timer system
  • Add Windows 8.1 support to PopulateMusic_Windows scripts
  • Add pause to end of shell script
  • Replace %d with %.0f in format patterns
    • ogginfo can return non-integer file lengths, which don't work with %d.
  • Stop using -r option to sed
    • -r is a GNU extension, not portable to all platforms
  • Add option to use backslashes in PM_Unix.sh
    • Move then and do to same line as if and for
  • Change PopulateMusic_Windows.js to compare file types instead of file extensions (which are only included in the name when they're shown in Windows explorer).
    • Move file type checks into the isAudioFile function to make the logic easier to change in future.
  • Replace all == with === in PM_Windows.js
  • Add a missing backslash in the main comment of ScriptParts\music_part0.lua and music.lua

1.2
  • Victory/defeat music will now stop playing when you enter a new battle.
  • Updated music.lua with the new instructions.
  • Removed libraries from TOC/.pkgmeta
    • We're using animation objects instead of AceTimer now
  • Added support for Ogg files to the scripts.
  • Replaced README.txt with README.md (for GitHub)
  • Updated TOC Interface number.
  • Added support for separate music tables
    • Most public API functions now take a music table name as their first argument.
    • The script part files are now numbered to support easy construction of music.lua using for loops.
  • Moved settings from core.lua to a new config.lua file.
    • Added a :GetOptionValue() method to the API to get the value of options set in config.lua
  • More documentation changes
  • Changed .docmeta format

1.1
  • Added manual LICENCE.txt output
  • Re-added the .docmeta and .pkgmeta files
  • Added public API, removed debugging code
  • Commented out CVar stuff
Optional Files (0)


Post A Reply Comment Options
Unread 12-18-12, 05:57 PM  
Choonstertwo
A Chromatic Dragonspawn
 
Choonstertwo's Avatar
AddOn Author - Click to view AddOns

Forum posts: 194
File comments: 105
Uploads: 34
Re: Re: Re: Very nice Addon

Originally Posted by ZeroEdgeir
Given I think Blizzard even has it setup now to use certain tracks of their music for Tamer/Hard battles vs wild battles, and it has it's own victory music track (even if it is only about 2-3 seconds long), everything seems to exist.

Maybe make it so we can make the editable choice of 1 or more tracks for each situation.
I've already got an update with separate music for most different battle types in the works. It's mostly done, I just need to finish testing it.
Report comment to moderator  
Reply With Quote
Unread 12-18-12, 10:58 AM  
ZeroEdgeir
A Defias Bandit

Forum posts: 3
File comments: 15
Uploads: 0
Re: Re: Very nice Addon

Originally Posted by Choonstertwo
Originally Posted by Tonyleila
Is there any way to enable the music if its disable in ingame options? I only want pet battle music no wow music

Also Victory music and different music for battles against trainers or wild pets woud be nice!
I use this Pokemon sounds maybe this will help you
http://downloads.khinsider.com/game-...und-collection
Victory music should definitely possible, as should using a different sound channel to play the music on. Different music for wild/trainer battles may be possible.

Would you want randomised victory music or just a single track?
Given I think Blizzard even has it setup now to use certain tracks of their music for Tamer/Hard battles vs wild battles, and it has it's own victory music track (even if it is only about 2-3 seconds long), everything seems to exist.

Maybe make it so we can make the editable choice of 1 or more tracks for each situation.
Report comment to moderator  
Reply With Quote
Unread 10-25-12, 11:36 AM  
Estelyen
A Kobold Labourer

Forum posts: 0
File comments: 37
Uploads: 0
Battle Music just goes on forever

If I get a dungeon invite while in the middle of a pet battle, the normal background music for the instance will play once and then the game changes back to the Pet Battle Music. Even if I leave the instance, the pet battle music will "butt in" again and again when a normal background music track ends.
Report comment to moderator  
Reply With Quote
Unread 10-09-12, 12:00 PM  
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 758
File comments: 2021
Uploads: 37
Re: Re: Very nice Addon

Originally Posted by Choonstertwo
Originally Posted by Tonyleila
Is there any way to enable the music if its disable in ingame options? I only want pet battle music no wow music

Also Victory music and different music for battles against trainers or wild pets woud be nice!
I use this Pokemon sounds maybe this will help you
http://downloads.khinsider.com/game-...und-collection
Victory music should definitely possible, as should using a different sound channel to play the music on. Different music for wild/trainer battles may be possible.

Would you want randomised victory music or just a single track?
just a single track woud be great
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
Report comment to moderator  
Reply With Quote
Unread 10-05-12, 06:55 AM  
Choonstertwo
A Chromatic Dragonspawn
 
Choonstertwo's Avatar
AddOn Author - Click to view AddOns

Forum posts: 194
File comments: 105
Uploads: 34
Re: Very nice Addon

Originally Posted by Tonyleila
Is there any way to enable the music if its disable in ingame options? I only want pet battle music no wow music

Also Victory music and different music for battles against trainers or wild pets woud be nice!
I use this Pokemon sounds maybe this will help you
http://downloads.khinsider.com/game-...und-collection
Victory music should definitely possible, as should using a different sound channel to play the music on. Different music for wild/trainer battles may be possible.

Would you want randomised victory music or just a single track?
Report comment to moderator  
Reply With Quote
Unread 09-30-12, 08:00 PM  
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view AddOns

Forum posts: 758
File comments: 2021
Uploads: 37
Very nice Addon

Is there any way to enable the music if its disable in ingame options? I only want pet battle music no wow music

Also Victory music and different music for battles against trainers or wild pets woud be nice!
I use this Pokemon sounds maybe this will help you
http://downloads.khinsider.com/game-...und-collection
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
Last edited by Tonyleila : 09-30-12 at 08:06 PM.
Report comment to moderator  
Reply With Quote
Unread 09-26-12, 05:32 AM  
Mittparadox
A Deviate Faerie Dragon
 
Mittparadox's Avatar
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 19
Uploads: 4
Thanks. now i can have my epic Final Fantasy music when fighting with pets.

best song for this: http://ge.tt/4mhf3gP/v/1

should have victory music to, so i can add this: http://ge.tt/1bIRzOG/v/0

__________________
(¯`·. "How do you prove that you exist... ? .·´¯)
(¯`·._.·[ Mabe we don't exist ... " ]·._.·´¯)
Report comment to moderator  
Reply With Quote
Unread 09-07-12, 06:24 PM  
Choonstertwo
A Chromatic Dragonspawn
 
Choonstertwo's Avatar
AddOn Author - Click to view AddOns

Forum posts: 194
File comments: 105
Uploads: 34
1.1

I've just released version 1.1, which removes the debugging code and adds a new public API for AddOn developers.

See the changelog on Curse for more detail.
Report comment to moderator  
Reply With Quote
Unread 09-07-12, 11:26 AM  
Choonstertwo
A Chromatic Dragonspawn
 
Choonstertwo's Avatar
AddOn Author - Click to view AddOns

Forum posts: 194
File comments: 105
Uploads: 34
Originally Posted by Nidra
I love this addon <3
However, you should have the prints in chat off if you start a fight.
--print(debugprofilestop(), "Event:", event)
--print(debugprofilestop(), "PBM: TimeDiff", diff)
--print(debugprofilestop(), "PBM: PlayMusic", trackInfo[1], trackInfo[2])
Yeah, I forgot to remove the debugging code before uploading it. I'm releasing a new version very soon with a few minor fixes, including the removal of the debugging code.
Report comment to moderator  
Reply With Quote
Unread 09-07-12, 01:50 AM  
Nidra
A Kobold Labourer

Forum posts: 0
File comments: 36
Uploads: 0
I love this addon <3
However, you should have the prints in chat off if you start a fight.
--print(debugprofilestop(), "Event:", event)
--print(debugprofilestop(), "PBM: TimeDiff", diff)
--print(debugprofilestop(), "PBM: PlayMusic", trackInfo[1], trackInfo[2])
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: