Main Site | Forum | Rules | Downloads | Wiki | Features | Podcast

NLSC Forum

A hub for everything related to NBA 2K13 modding. Releases, previews, requests, and other modding discussion belongs here.
Post a reply

[Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 7:44 am

NBA 2K Audio Editor
by Lefteris "Leftos" Aslanoglou and nesa24

Quick Notes
With the amazing research and perseverance shown by nesa24 from the NLSC forums in figuring out NBA 2K's audio format, I was able to build this tool to allow us to edit the audio files of NBA 2K.


Features
- Allows users to edit all NBA 2K BIN Audio files as long as they're in the 2K11/2K12/2K13 format
- Automatically encodes MP3 and WAV files to the right format
- Only allows the user to replace songs that are longer than the user-selected song; any remaining duration is automatically filled with silence


FAQ
Q: After my imported song/audio file ends, the game doesn't switch to the next one. How do I fix this?
A: Make sure that the file you're importing is only shorter than the original file by a few seconds, 2 at most. If it's not, use Audacity's Generate > Silence... to extend the song until its duration is 1 or 2 seconds less than the file you're trying to replace.


Disclaimer
As with any editing tool, you should always keep backups of any files you edit. There might be bugs I am not aware of, and new features might bring new bugs of their own. So always, always keep backups. I will not be held responsible for any corruption caused to your files.


Download
Binary 7z: NBA 2K Audio Editor
Source Code: https://github.com/leftos/nba-2k-audio

You'll need the .NET Framework 4 to run this tool. You can get it here:
http://www.microsoft.com/en-us/download ... x?id=17851


Development Credits
- Uses the LumenWorks Framework
(http://www.codeproject.com/Articles/925 ... CSV-Reader)
- Uses the Sox sound processing application under the GPL v2 license
(http://sox.sourceforge.net/)


Credits
- nesa24, for his research and his dedication to getting the information required for this project to become a reality
- All of the NLSC community, especially users that helped ness24 with the research, and everyone that keeps supporting the modders and tool developers


License
Copyright 2013 Eleftherios Aslanoglou & nesa24

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Re: [Tool] NBA 2K Audio Editor (Leftos & ness24)

Tue Jun 18, 2013 7:50 am

SICK!!!!!!!!!!!!!!!!!!!! SO PUMPED!!!!!!!

Re: [Tool] NBA 2K Audio Editor (Leftos & ness24)

Tue Jun 18, 2013 7:51 am

WOAH. And I thought the great Leftos was out for good. :| Thank you for this, sir! You're awesome. :cheeky: (Y)

Re: [Tool] NBA 2K Audio Editor (Leftos & ness24)

Tue Jun 18, 2013 7:52 am

Well... Why not give a last little gift to the community before joining 2K, eh? :P

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 8:14 am

Just tried it a little bit and it works just fine :) Great job!
There's indeed some 2 sec skipping in the replaced song, but I guess it's fine and I really think you guys will find a solution :D

Re: [Tool] NBA 2K Audio Editor (Leftos & ness24)

Tue Jun 18, 2013 8:15 am

AMAZING!!! Just tried it! The only problem is minor skipping, it happened like twice in a song, but it is still a breakthrough nonetheless.

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 8:23 am

Yep, the skipping is a known issue. Hopefully nesa24 or I will figure it out sooner or later.

Re: [Tool] NBA 2K Audio Editor (Leftos & ness24)

Tue Jun 18, 2013 8:27 am

Leftos wrote:Well... Why not give a last little gift to the community before joining 2K, eh? :P

Still pure greatness, nonetheless. :bowdown2:

Now, if only we could replace the intro video as well... :cheeky:

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 8:40 am

for those that need it, maximum song lengths
Code:
3:36
4:36
2:36
3:54
3:12
2:00
4:36
4:00
3:36
2:40
3:30
4:24
5:18
4:42
4:00
3:42
5:00
4:06
6:24
4:42
4:12
4:18
5:06
1:54

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 8:42 am

Fun fact: Once you select which song you want to import, the list gets limited to only the songs that fit your song by length. So there's no way to replace a song that's shorter than the one you're trying to import by accident.

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 8:58 am

Leftos wrote:Fun fact: Once you select which song you want to import, the list gets limited to only the songs that fit your song by length. So there's no way to replace a song that's shorter than the one you're trying to import by accident.


Wow, Thank You Leftos and nesa24. You guys are geniuses with all those chunks and unhumane talking you did. I felt like an idiot reading your comments but AM proud to see that it's finally done and Leftos helped us all throughout. I hope you won't leave us Leftos. You are the BEST of the BEASTS.

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 9:16 am

Here's a song that would fit the Audio Editor. I'm going to edit songs and add the 90's songs so that it would fit the songs in the audio editor.

Roundball Rock Theme Song:

http://www.youtube.com/watch?v=fZKX-cf_p90

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 9:26 am

It doesn't have to fit exactly by the way. If it's shorter, the tool will fill the ending with silence.

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 10:24 am

Awesome! Great work, guys. (Y)

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 10:34 am

this is where I'm going with this
Code:
Gorillas - Army of the Pharaohs (Live 07)
Hip Hop Hooray - Naughty By Nature (Live 2000)
I'm the Greatest Player - Lil' Flip (Live 2004)
Ride - Zion I (2K6)
Don't Step On My Sneakers - The Beatards (Backbreaker)
Giant - Ostrich Head (O-Header)
I'm On It - Big Boi (Pdub Classic)
Jump Around (Remix) - House of Pain (Street vol 3)
The Choice is Yours - Black Sheep (Street vol 2)
The Way I Are - Timbaland (Live 08)
Playas and Shortys - SK ft. C-Dell (Street vol 2)
Heart Shaped Box - The Crest (2K7)
Shoot for Thrill - AC/DC (Rock)
Shut 'Em Down (Remix) - Public Enemy (HT Street)
Who I Be - YP (Live 13)
We Can Do It Now - Common (NCAA 2K11)
Sunshine - Ostrich Head (No-Betta)
Back Again - Dilated Peoples (Fight Night R3)
Brain Washers - Blackalicious (Song Length)
Flow On (Remix) - Lords of the Underground (HT Street)
Fast Lane - Eminem & Royce Da 5'9” (NBA 2K12)
Champion - Flipsyde (Live 09)
Return of the Crooklyn Dodger - Jeru the Damaja (Jao Vids)
Let's Go - Just Blaze (Live 2003)

Based solely on song length....missing a lot of favorites, but I'll stop being lazy and edit them down to the length I'm sure.


Tutorial for those that need it (hell, for publicity maybe a tie in with the RED MC english.iff editing) later.

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 11:08 am

Hawk is gonna be ecstatic to hear that this has been modded a NBC on NBC mod is needed for his 2k12 ultimate roster but you guys are amazing hats off to all of you

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 11:20 am

Wow, i got it to work as well, but there a small problem, everytime i start the game up. it cut right back off. i will have to right click and run a troubleshoot compatibility in order for the game to actually start up, other than that everything else is fine.

One last question. can the music be play during gameplay?.. like for an example when you call a timeout or the intro is being shown? i only heard the song that i replaced in the main menu.

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 11:25 am

Here is each song, by the ID from the tool
Code:
0   Kanye West   -   Mercy (Feat. Big Sean, Pusha T, 2 Chainz)
1   The Hours   -   Ali in the Jungle
2   Too $hort   -   Blow the Whistle
3   Eric B. & Rakim   -   I Ain't No Joke
4   Phoenix   -   1901
5   Jay Z   -   Pump It Up (Freestyle)
6   Puff Daddy & The Family   -   Victory (Feat. The Notorious B.I.G. And Busta Rhymes)
7   Daft Punk   -   Around the World (Radio Edit)
8   U2   -   Elevation
9   Santigold   -   Shove It (Feat. Spank Rock)
10   Kanye West   -   Amazing (Feat. Young Jeezy)
11   Jay Z   -   Run This Town (Feat. Rihanna and Kanye West)
12   Dirty Projectors   -   Stillness is the Move
13   Nas   -   The World is Yours
14   Coldplay   -   Viva La Vida
15   Roy Ayers   -   We Line in Brooklyn, Baby
16   Justice   -   Stress
17   Jay Z   -   The Bounce
18   Kanye West   -   We Major (Feat. Nas & Really Doe)
19   Mobb Deep   -   Shook Ones, PT. II
20   Meek Mill   -   IMA Boss (Feat. Rick Ross) [Instrumental]
21   Jay Z   -   On to the Next One (Feat. Swizz Beatz)
22   Jay Z & Kanye West   -   H.A.M. [Instrumental]
23   Jay Z   -   Public Service Announcement (Interlude)

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 12:10 pm

HOLY BEJEESUS I THINK I JUST CRAPPED MY PANTS!!

If this actually works, like if we can hear the new songs during gameplay in the arenas....I swear I will kiss my TV screen right where the NLSC logo is!!

You guys rock beyond belief! I been hella busy lately so haven't even been following the mod scene as much; last time I had checked the audio format 2K encodes in had been semi-cracked.....and now to see this?
AMAZING!

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 12:18 pm

phpBB [video]


my test

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 1:01 pm

http://www.youtube.com/watch?v=dG2DkEwE8sY
phpBB [video]


Made a tutorial thread too - viewtopic.php?f=150&t=91784

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 1:54 pm

wow thanks you leftos for this tool :)

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 2:09 pm

JaoSming wrote:http://www.youtube.com/watch?v=dG2DkEwE8sY
phpBB [video]


Made a tutorial thread too - viewtopic.php?f=150&t=91784


Sir, there's a bug. ID number 17 doesn't work.

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 2:20 pm

wow so no hex editing is needed for this??

and this works for 2k12 as well right??

Re: [Tool] NBA 2K Audio Editor (Leftos & nesa24)

Tue Jun 18, 2013 2:44 pm

no hex editing required
only 2K13 music right now, hopefully other stuff soon.
Post a reply