The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Emulation & ROM Hacking > Research & Development
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!
New threads in this forum are to be approved by a moderator before they are displayed. The thread revival limit does not apply here.


Reply
 
Thread Tools
  #1    
Old October 18th, 2010, 12:41 PM
koningalex
Beginning Trainer
 
Join Date: Dec 2008
Hey all,

I've fisnished pokemon Black now, and on my second playthrough, I grew really tired of the normal trainer battle bgm. Before I restarted, I tried the battle subway, and I loved the remixed battle tune there, so I decided to starty trying modding a pokemon black/white rom to play the battle subway music as the standard music.

I've googled some things, and found that music in DS games consists of .SSEQ files, .SBNK files and .SWAR files. I've extracted wb_sound_data.sdat, and extracted the sound files for the regular trainer battle and subway battle. I tried replacing the regular trainer battle .SSEQ with the subway battle one, but it wouldn't work, as the subway battle .SSEQ is bigger than the regular one, which of course means that it doesn't fit in the offset.

I overthought this a few times, and I concluded that I should try to accomplish this differently. I read that it is incredibly hard to replace music files with ones that are bigger. But I thought: "When the battle starts, there has to be a certain value that determines and points to the sound file to be played."

So I started thinking. Is it determined by trainer class? Could be, but then explain the classes that have the regular theme in Isshu and the subway theme in the subway. Of course they could've been created twice, once with the regular music, and once with the subway music, but that doesn't seem that logical to me. I'm guessing that there is some kind of value in the trdata.narc, for every trainer, that says which battle theme should be played. I'm willing to analyze the trdata.narc, but I don't have the slightest idea which file in B/W's rom structure contains the trainer data. It was a/0/0/5 and a/0/0/6 in HG/SS, but it isn't anymore in B/W.

Ok, that was quite some text. Please don't tl;dr. I'm hoping the smarter people who have analyzed trainer data structure before can help me a bit. :D
Reply With Quote
  #2    
Old October 21st, 2010, 05:53 PM
Team Fail's Avatar
Team Fail
 
Join Date: May 2009
Age: 18
Gender: Male
Nature: Brave
I took a minute to think about this. What I think it is is that if a specific type of battle is initiated, it plays a certain .sseq. I think that by Hex Editing the game at the address of where a trainer's battle theme is and change it to the Battle Subway theme, it may work.
__________________



Team Fail

Community Supporter Collab
☆ ☆ ☆


Reply With Quote
  #3    
Old October 25th, 2010, 08:35 AM
koningalex
Beginning Trainer
 
Join Date: Dec 2008
I've been trying to do that, but the problem is that the track number (0x86) is really low, which means that there are thousands of variables in the rom to look through. Only thing that could help me right now is somebody stumbling upon the trainer data files..
Reply With Quote
  #4    
Old September 30th, 2011, 04:00 PM
The Author's Avatar
The Author
The Hero of Knothole Glade
 
Join Date: Sep 2011
Location: Knothole Glade
Age: 16
Gender: Male
Nature: Quiet
I've really wanted to mess around with BW music! You're brilliant!
__________________
The Disciple
The Poet
The Leader
The Musician
The Transcendentalist

The Author
The Philosopher
The Architect
The Psychologist
The Artist
Reply With Quote
Reply
Quick Reply

Sponsored Links


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 01:54 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.