This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: MPQ Editing - Instance Music?  (Read 4376 times)

Tuskeh

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 17
    • View Profile
MPQ Editing - Instance Music?
« on: February 08, 2014, 07:30:04 pm »
Hey guys, quick - and probably stupid - question.

I'm trying to edit some music for my 3.3.5a Arcemu server, and for all of the outside zones I'm having no issues. However, I want to start editing music for instances - specifically, the Sunken Temple. I can't seem to find an MPQ file containing the music I want to edit. Any suggestions? Thanks!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Milly

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 503
    • View Profile
Re: MPQ Editing - Instance Music?
« Reply #1 on: February 08, 2014, 09:12:27 pm »
You're probably having trouble with Sunken Temple because it is a WMO. It has its own music rather than inheriting the zone music. I don't know how to change this though. I tried hex edit and a notepad search and couldn't find anything related to .mp3, .ogg, or .wav in the WMO file. I imagine the music might be designated in another file but I"m not sure.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Tuskeh

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 17
    • View Profile
Re: MPQ Editing - Instance Music?
« Reply #2 on: February 09, 2014, 12:51:36 am »
Quote from: "Xapzi"
You're probably having trouble with Sunken Temple because it is a WMO. It has its own music rather than inheriting the zone music. I don't know how to change this though. I tried hex edit and a notepad search and couldn't find anything related to .mp3, .ogg, or .wav in the WMO file. I imagine the music might be designated in another file but I"m not sure.

Thanks for the response. I've started looking through DBC files for anything that might help, but so far I've had no luck. Even if I found something suggesting a Sunken Temple sound file in the DBCs, I'm not sure what I could do to edit it. I'm not the most experienced tinkerer out there, but I'd have thought that the actual music files for WMOs would be in some sort of MPQ file.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Milly

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 503
    • View Profile
Re: MPQ Editing - Instance Music?
« Reply #3 on: February 09, 2014, 04:58:33 am »
You should be able to find the sound files in the MPQs if you know what the names are. But Idk how to find that out.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Filipsons

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 220
    • View Profile
Re: MPQ Editing - Instance Music?
« Reply #4 on: February 09, 2014, 05:07:23 am »
Check AreaTable.DBC (export from enUS/enGB locate.mpq)
more info about this DBC here: http://www.wowdev.wiki/index.php ... aTable.dbc
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: MPQ Editing - Instance Music?
« Reply #5 on: February 09, 2014, 06:14:45 am »
You also have to edit this table.
http://www.wowdev.wiki/index.php ... aTable.dbc
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: MPQ Editing - Instance Music?
« Reply #6 on: February 09, 2014, 06:17:05 am »
Quote from: "Filipsons"
Check AreaTable.DBC (export from enUS/enGB locate.mpq)
more info about this DBC here: http://www.wowdev.wiki/index.php ... aTable.dbc
No, it won't work. All the DBCs should be exported from the last locale file. If you have 3.3.5a it should be patch-enGB-3.mpq to export from.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Milly

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 503
    • View Profile
Re: MPQ Editing - Instance Music?
« Reply #7 on: February 09, 2014, 06:47:10 am »
Quote from: "Skarn"
You also have to edit this table.
http://www.wowdev.wiki/index.php ... aTable.dbc
I actually checked that table, and found the IDs for Sunken Temple. There are no sound entries in there. It's all 0's
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Tuskeh

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 17
    • View Profile
Re: MPQ Editing - Instance Music?
« Reply #8 on: February 09, 2014, 07:54:55 am »
Thanks for all of the responses.

I've extracted the areatable from patch-enUS-3.MPQ, and I've found the Sunken Temple (and the Temple of Atal'hakkar, which is its name in-game). According to the posted link to the AreaTable.dbc, columns 9 and 10 are the zone music and zone intro music.

However, these do not pertain to any specific files - in the case of the Sunken Temple, Column 9 is "3" and Column 10 is "0". I don't really have much experience in editing DBC files (I can, naturally, convert them to and from CSV and change some zone names, but that's about it), so do you guys have any suggestions for how to change the music?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: MPQ Editing - Instance Music?
« Reply #9 on: February 09, 2014, 09:27:28 am »
It can be an iRefID (ID from another DBC file) from ZoneMusic.dbc or something else. But I guess you need not just AreaTable.dbc but WMOAreaTable.dbc (http://www.wowdev.wiki/index.php ... aTable.dbc) because SunkenTemple map doesn't have any adts (it consists only of one wmo model). So, it cannnot have the usual AreaID (I doubt now because you had found some entrys on that, but I have some ideas how it can work). That's why you also have to look at WMOAreaTable.dbc (Coloumn 11 is an iRefID to AreaTable.dbc (now we know what was stored in that table in SunkenTemple string). Coloumns 8 and 9 there are the IDs of ZoneIntro music and ZoneMusic iself. So, you have to take these IDs and look to the following DBC files to learn filenames: http://www.wowdev.wiki/index.php ... cTable.dbc  and http://www.wowdev.wiki/index.php ... eMusic.dbc These files contain iRefIDs to SoundEntries. dbc (http://www.wowdev.wiki/index.php ... ntries.dbc). Here you can finally get your filenames.  :)  Sorry, the post is a bit messy and can be wrong in some aspects. I'm not a very good DBC editor :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Milly

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 503
    • View Profile
Re: MPQ Editing - Instance Music?
« Reply #10 on: February 09, 2014, 10:35:09 am »
While yes, your method does lead to the track that plays on the Sunken Temple map (109), it still doesn't explain the separate tracks that play throughout the WMO instance in different locations. Using your method, there's only one iRefID to be found in WMOAreaTable.dbc for Sunken Temple and that is 1477. If traced back to the AreaTable/SoundEntries it all boils down to za_zulaman_amb10.mp3, and that's not the music inside the instance. It only plays on the outside of the instance. For example if I use the .gps and .go commands to teleport outside, that's the only time the music starts to play.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: MPQ Editing - Instance Music?
« Reply #11 on: February 09, 2014, 11:05:13 am »
Please note that a WMO has multiple entries in WMOAreaTable.dbc: One entry with root_id set and group_id being -1 and many entries with root_id and group_id set.
To find out which piece of sound is to be played, the client first looks for (root_id, group_id) of the WMO and group WMO it is in, if there is no entry, it takes (root_id, -1).
Like this, there can be different music per group WMO, explaining why the entry you found is only heard outside of any group WMO (i.e. outside).
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Milly

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 503
    • View Profile
Re: MPQ Editing - Instance Music?
« Reply #12 on: February 09, 2014, 11:27:45 am »
Yeah schlumpf, I noticed there were a lot of duplicate entries. But still they all have the same iRefID in Column 11. =
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: MPQ Editing - Instance Music?
« Reply #13 on: February 09, 2014, 11:12:33 pm »
Yes, because it's their "parent" iRefID from AreaTable.dbc. It will be the same for all entries of this WMO. You should just look to 8 and 9 coloumns of WMOAreaTable.dbc. This way you can track the filenames.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Milly

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 503
    • View Profile
Re: MPQ Editing - Instance Music?
« Reply #14 on: February 09, 2014, 11:55:50 pm »
Quote from: "Skarn"
Yes, because it's their "parent" iRefID from AreaTable.dbc. It will be the same for all entries of this WMO. You should just look to 8 and 9 coloumns of WMOAreaTable.dbc. This way you can track the filenames.

For WMOAreaTable, columns 8 and 9 are empty for me. The WoW dev wki also says they're unknown columns.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »