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

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

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

Postby Leftos on 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.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
I'm The Pipeline, The Pipeline Is Me
NBA 2K Developer
 
Posts: 5223
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

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

Postby Hiteshom on Tue Jun 18, 2013 7:50 am

SICK!!!!!!!!!!!!!!!!!!!! SO PUMPED!!!!!!!
User avatar
Hiteshom
 
Posts: 499
Joined: Mon Jun 25, 2012 9:47 am
Location: Salt Lake City, Utah

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

Postby Gigabyte on 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)

The best of the best — all in ONE roster. Check it out! (Y)

C'mon, click here: viewtopic.php?f=149&t=90375. You know you want to. :cheeky: ;)
User avatar
Gigabyte
 
Posts: 404
Joined: Wed Jan 02, 2013 10:25 pm

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

Postby Leftos on Tue Jun 18, 2013 7:52 am

Well... Why not give a last little gift to the community before joining 2K, eh? :P
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
I'm The Pipeline, The Pipeline Is Me
NBA 2K Developer
 
Posts: 5223
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

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

Postby ILL-Patch guy on 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
User avatar
ILL-Patch guy
 
Posts: 381
Joined: Mon Apr 04, 2011 11:24 pm
Location: Europe

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

Postby Phreezy P on 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.
LA | TO | MIN
User avatar
Phreezy P
Varsity
 
Posts: 1061
Joined: Tue May 29, 2007 7:26 am
Location: Toronto

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

Postby Leftos on 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.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
I'm The Pipeline, The Pipeline Is Me
NBA 2K Developer
 
Posts: 5223
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

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

Postby Gigabyte on 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:

The best of the best — all in ONE roster. Check it out! (Y)

C'mon, click here: viewtopic.php?f=149&t=90375. You know you want to. :cheeky: ;)
User avatar
Gigabyte
 
Posts: 404
Joined: Wed Jan 02, 2013 10:25 pm

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

Postby JaoSming on Tue Jun 18, 2013 8:40 am

for those that need it, maximum song lengths
Code: Select all
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
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

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

Postby Leftos on 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.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
I'm The Pipeline, The Pipeline Is Me
NBA 2K Developer
 
Posts: 5223
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

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

Postby Spandex_ on 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.
"The best has yet to come."


Image
User avatar
Spandex_
Mamba Mentaility
 
Posts: 267
Joined: Sun May 05, 2013 11:27 am
Location: Philippines

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

Postby Spandex_ on 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
"The best has yet to come."


Image
User avatar
Spandex_
Mamba Mentaility
 
Posts: 267
Joined: Sun May 05, 2013 11:27 am
Location: Philippines

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

Postby Leftos on 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.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
I'm The Pipeline, The Pipeline Is Me
NBA 2K Developer
 
Posts: 5223
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

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

Postby Andrew on Tue Jun 18, 2013 10:24 am

Awesome! Great work, guys. (Y)
User avatar
Andrew
Assist Enthusiast
Administrator
 
Posts: 113884
Joined: Thu Aug 22, 2002 8:51 pm
Location: Australia

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

Postby JaoSming on Tue Jun 18, 2013 10:34 am

this is where I'm going with this
Code: Select all
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.
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

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

Postby jaelove on 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
jaelove
 
Posts: 713
Joined: Tue Oct 12, 2010 3:50 am

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

Postby buddaking on 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.
buddaking
 
Posts: 602
Joined: Mon Jan 14, 2013 6:08 am

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

Postby JaoSming on Tue Jun 18, 2013 11:25 am

Here is each song, by the ID from the tool
Code: Select all
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)
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

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

Postby julsnice on 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!
julsnice
 
Posts: 87
Joined: Mon Mar 25, 2013 1:46 am

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

Postby Phreezy P on Tue Jun 18, 2013 12:18 pm

phpBB [video]


my test
LA | TO | MIN
User avatar
Phreezy P
Varsity
 
Posts: 1061
Joined: Tue May 29, 2007 7:26 am
Location: Toronto

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

Postby JaoSming on 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
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

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

Postby ap18 on Tue Jun 18, 2013 1:54 pm

wow thanks you leftos for this tool :)
ALL STEPH CURRY THREE POINTERS IN 2013 SEASON
http://www.youtube.com/watch?v=nnKARZf4ywE&feature=youtu.be
ap18
 
Posts: 437
Joined: Thu Feb 23, 2012 5:25 am

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

Postby Spandex_ on 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.
"The best has yet to come."


Image
User avatar
Spandex_
Mamba Mentaility
 
Posts: 267
Joined: Sun May 05, 2013 11:27 am
Location: Philippines

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

Postby obi1ginobili on Tue Jun 18, 2013 2:20 pm

wow so no hex editing is needed for this??

and this works for 2k12 as well right??
obi1ginobili
 
Posts: 28
Joined: Tue Sep 11, 2012 11:53 am
Location: Buenos Aires, Argentina

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

Postby JaoSming on Tue Jun 18, 2013 2:44 pm

no hex editing required
only 2K13 music right now, hopefully other stuff soon.
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Next

Return to NBA 2K13 Modding

Who is online

Users browsing this forum: No registered users and 8 guests