[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: 5285
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: 489
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: 5285
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: 383
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: 1057
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: 5285
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.
Right Click Loop
phpBB [video]

https://www.youtube.com/playlist?list=PL8ozxhwwmz4LJzpGAj22T5qa0ZVFBJ3yw

User avatar
JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29836
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: 5285
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

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

Postby byronray14 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


Image


2013 - 2014 Roster for NBA 2k10 Thread, Click Here to visit.
User avatar
byronray14
NBA 2k10 Graphics and Roster Modder
 
Posts: 251
Joined: Sun May 05, 2013 11:27 am
Location: Philippines

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

Postby byronray14 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


Image


2013 - 2014 Roster for NBA 2k10 Thread, Click Here to visit.
User avatar
byronray14
NBA 2k10 Graphics and Roster Modder
 
Posts: 251
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: 5285
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)
NLSC Webmaster/Administrator
Image
Contact: Email | Twitter
Release Threads: NBA Live 08 | NBA Live 07 | NBA Live 06 | NBA Live 2005 | NBA Live 2004
Story Threads: NBA 2K13 | NBA Live 06 (Part 2) | NBA Live 06 (HOF) | NBA Live 2004 (HOF)
NLSC: Podcast | The Friday Five | Monday Tip-Off | Wayback Wednesday | 20th Anniversary of NBA Live | Facebook | Twitter | YouTube


Support The NLSC Hosting Fund: Patreon | GoFundMe

Image
Like my work? Want to help out with the NLSC Hosting Fund? Please consider leaving a tip!
User avatar
Andrew
That's a bad luck number.
Administrator
 
Posts: 101830
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.
Right Click Loop
phpBB [video]

https://www.youtube.com/playlist?list=PL8ozxhwwmz4LJzpGAj22T5qa0ZVFBJ3yw

User avatar
JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29836
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: 787
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: 432
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.
Right Click Loop
phpBB [video]

https://www.youtube.com/playlist?list=PL8ozxhwwmz4LJzpGAj22T5qa0ZVFBJ3yw

User avatar
JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29836
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: 1057
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.
Right Click Loop
phpBB [video]

https://www.youtube.com/playlist?list=PL8ozxhwwmz4LJzpGAj22T5qa0ZVFBJ3yw

User avatar
JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29836
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: 466
Joined: Thu Feb 23, 2012 5:25 am

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

Postby byronray14 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


Image


2013 - 2014 Roster for NBA 2k10 Thread, Click Here to visit.
User avatar
byronray14
NBA 2k10 Graphics and Roster Modder
 
Posts: 251
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: 30
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.
Right Click Loop
phpBB [video]

https://www.youtube.com/playlist?list=PL8ozxhwwmz4LJzpGAj22T5qa0ZVFBJ3yw

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

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

Postby melomanu20 on Tue Jun 18, 2013 2:48 pm

Image

im gettin this message everytime i try installing this
melomanu20
 
Posts: 156
Joined: Tue Aug 14, 2012 10:11 pm
Location: Chicago, IL

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

Postby melomanu20 on Tue Jun 18, 2013 2:56 pm

jaelove wrote:Wow does NBA 2k12 share the same format?


nesa24 wrote:yep
2k11/12/13


i thought this meant its compatible with 2k12 too??

Or is it just that the tool is only compatible with 2k13?? If that's the case im hoping there's a tool in the works for 2k12 :cheeky:

2k12 isnt completely dead as many of us still play it do to the great UBR.. im sure hawk would love to change some 2k12 songs :mrgreen: (Y)
melomanu20
 
Posts: 156
Joined: Tue Aug 14, 2012 10:11 pm
Location: Chicago, IL

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

Postby NIB on Tue Jun 18, 2013 2:57 pm

1st) Leftos,

2K Sports acquire a dedicate professional with knowledge and experience round this NLSC Forum. A smart, fast and splendid worker, whom always seek for help users developing their own experiences, i sincerely hope you stay with us for the coffee break and give us shots throughout the 2K experience period.

Thank you. And as racers say: "I HOPE YOU BREAK A LEG!" - So God helps you and good luck man! :applaud:

2nd) Nesa,

NLSC have great, maybe the best patchers world ever known, BUT UNDENYABLE, YOU ARE ONE OF THE BESTS EVER! :bowdown: :crazyeyes: :bowdown2:

Thank you for your hard working philosophy. A remarkable achievement!

Let's get ready to RUUUUMBLEEEEEEEEE!!!! :mrgreen:
ATECUBANOS...
Yesterday... Carried the Piano - Today, Right Now... Playing the Piano - Tomorrow... Will Listen the Piano.

Working Here, Working There... Working Everywhere!

"Michael, you're not doing today! You ain't go doing today!!" - Dennis Rodman
User avatar
NIB
 
Posts: 941
Joined: Wed Aug 15, 2012 2:36 am
Location: Rio - Brasil / Gabriela, Eu te Amo meu Amor!

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

Postby Leftos on Tue Jun 18, 2013 3:09 pm

melomanu20, the tool won't work on Windows XP. I'm starting to make use of technologies in .NET Framework 4.5, and I guess that doesn't support Windows XP. I'm sorry for that. You'll need Windows Vista, 7 or 8 to run any of my tools that use these technologies, and most of them will be migrated to them soon (NBA Stats Tracker has already switched, for example, and others will follow).

As for 2K11/2K12 compatibility and compatibility with other audio .bin files, I'll work on that today. I think I've found the magic strings I need to detect chunks and files, so I'll see if I can automate this.
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: 5285
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

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

Postby Hiteshom on Tue Jun 18, 2013 3:29 pm

I've begun and it works PERFECTLY!
User avatar
Hiteshom
 
Posts: 489
Joined: Mon Jun 25, 2012 9:47 am
Location: Salt Lake City, Utah

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

Postby jaelove on Tue Jun 18, 2013 3:31 pm

Oh how I pray you can get the 2k12 chunks broken down for the ingame and pre game music
jaelove
 
Posts: 787
Joined: Tue Oct 12, 2010 3:50 am

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

Postby nesa24 on Tue Jun 18, 2013 4:05 pm

jaelove wrote:Oh how I pray you can get the 2k12 chunks broken down for the ingame and pre game music



i have broken them down
at my topic post from 15/05/2013

UPDATE

2k12/2k13 sections are same
69A1BED202000000CD0500000A00000044AC
2k11 isnt
69A1BED202000000CF050000020000002256
All men dream: but not equally.
Those who dream by night in the dusty recesses of their minds wake in the day to find that it was vanity: but the dreamers of the day are dangerous men, for they may act their dreams with open eyes, to make it possible.
This I did.
User avatar
nesa24
 
Posts: 313
Joined: Sun Mar 04, 2012 3:43 am

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

Postby melomanu20 on Tue Jun 18, 2013 4:34 pm

wow that sucks for me :|

so how do i go about getting windows vista, 7, and or 8??

and about how much will it cost me??
melomanu20
 
Posts: 156
Joined: Tue Aug 14, 2012 10:11 pm
Location: Chicago, IL

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

Postby Leftos on Tue Jun 18, 2013 5:04 pm

melomanu20, unfortunately I can't help you with that. You'll have to ask your local computer stores.
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: 5285
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

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

Postby Leftos on Tue Jun 18, 2013 5:07 pm

Sometimes it just takes a good night's sleep before you're back, kicking. And kick I did.

v0.2 has been released!

- Addition: All NBA 2K BIN Audio files that are of similar format are now compatible
- Addition: Ability to save and load descriptions for audio segments
- Addition: Added button to clear song cache
- Improvement: Various minor improvements and fixes

How about ALL NBA 2K BIN AUDIO FILES being editable? Not just jukeboxmusic.bin, ALL BIN FILES. The tool will now automatically detect files and chunks inside any NBA 2K BIN Audio file you give it, as long as it uses the format we've researched. My tests show that it can open all NBA 2K12 and 2K13 audio files, and I replaced one of 2K12's songs with one of my own already.

So have at it, and have fun!
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: 5285
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

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

Postby Leftos on Tue Jun 18, 2013 5:52 pm

v0.3 has been released!

- Addition: Ability to export audio segments from BIN files (for backup purposes, or to copy/move a segment to another part of the file)
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: 5285
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

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

Postby vadimibr1 on Tue Jun 18, 2013 5:55 pm

This is really awesome! Oh my God!!!! Thank you Leftos and nesa24!!!! :bowdown: :bowdown: :bowdown: :bowdown: :bowdown:
vadimibr1
 
Posts: 49
Joined: Thu Feb 28, 2013 6:36 pm

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

Postby ILL-Patch guy on Tue Jun 18, 2013 7:31 pm

Awesome work! Is there anyway to export a song in an mp3 format from the .bin file?
User avatar
ILL-Patch guy
 
Posts: 383
Joined: Mon Apr 04, 2011 11:24 pm
Location: Europe

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

Postby nhalt42 on Tue Jun 18, 2013 8:13 pm

There are 3 .bin files that (I believe) are used in blacktop mode? Which one is used for music? I would think one of them is used for the announcer.

aistreet.bin
aostreet.bin
asstreet.bin
nhalt42
 
Posts: 35
Joined: Wed Dec 14, 2011 3:33 pm

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

Postby JaoSming on Tue Jun 18, 2013 9:23 pm

Leftos wrote:v0.3 has been released!

- Addition: Ability to export audio segments from BIN files (for backup purposes, or to copy/move a segment to another part of the file)

BOOM

anyway you could take it one step further and make it a playable audio file, even an export all? Then we could know which commentary/environment segment we are editing/replacing, rather than trial and error.
Opinions are my own.
Right Click Loop
phpBB [video]

https://www.youtube.com/playlist?list=PL8ozxhwwmz4LJzpGAj22T5qa0ZVFBJ3yw

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

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

Postby Lean on Tue Jun 18, 2013 9:30 pm

Nice job you guys. Now I can add more Jay-Z songs in the game.

Can I get a wha-wha-wha-wha-what?
User avatar
Lean
The Artist Formerly Known as Crappystuff
NLSC Team Member
 
Posts: 7338
Joined: Mon Nov 13, 2006 8:49 pm
Location: Pilipinas

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

Postby nesa24 on Tue Jun 18, 2013 9:32 pm

also since its asf type you can use
wmplib to play http://www.youtube.com/watch?v=2hGsv4Cths8
and WindowsMediaEncoder lib to cut/edit songs
http://www.experts-exchange.com/Microso ... 02347.html

For anyone intersted, here's how you do it.

Go to microsoft and download the Windows Media Encoder SDK.
Add a reference to WMEncoderLib.dll

WMEncBasicEdit BasicEdit = new WMEncBasicEdit();
BasicEdit.MediaFile = "source.wma";
BasicEdit.OutputFile = "destination.wma";
BasicEdit.MarkIn = 1200 // time in miliseconds
BasicEdit.MarkOut = 18000 //time in miliseconds
BasicEdit.Start();

That's it. It's that simple.



create a basic header :cheeky:
insert dat at end
play/copy/cut...
All men dream: but not equally.
Those who dream by night in the dusty recesses of their minds wake in the day to find that it was vanity: but the dreamers of the day are dangerous men, for they may act their dreams with open eyes, to make it possible.
This I did.
User avatar
nesa24
 
Posts: 313
Joined: Sun Mar 04, 2012 3:43 am

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

Postby Leftos on Tue Jun 18, 2013 10:03 pm

nesa24, I don't think it works that way. There's no "basic header" for those files AFAIK, because every file after being encoded with xWMAEncode has a different header, specifically their dpds section which takes care of seeking are different both in length and content. I'll try, but I have my doubts.

Have you managed to get any .DAT file to play by inserting a basic xWMA header?

JaoSming, what I said above is what's stopping me from making the exported files playable. I'll see if I can whip up a header that works on all segments.

EDIT: In order for those files to be playable/convertable, we need to rebuild their dpds table. I studied two xWMAencode'd files in Hex On Steroids and I saw that the dpds table consists of 32-bit integers, each denoting how much data will have been decoded after each xWMA data packet has been processed. Unfortunately, these are non-standard, and there's no way for me to be able to predict them. The other way would be to figure out how the game plays them, which would probably take a managed wrapper of XAudio2 or something... and, yeah, that seems like a lot.

In any case, I'll do Export All.
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: 5285
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

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

Postby Magic Tmac1 on Tue Jun 18, 2013 10:07 pm

Thank you very much Leftos and Nesa for creating this tool! Now I'll try to create an italian customized commentary with other friends... Thanks again!
From Italy, Romagna rulez!!!
User avatar
Magic Tmac1
 
Posts: 49
Joined: Tue Aug 02, 2011 7:23 pm
Location: Romagna, Italy

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

Postby nesa24 on Tue Jun 18, 2013 10:41 pm

Leftos wrote:nesa24, I don't think it works that way. There's no "basic header" for those files AFAIK, because every file after being encoded with xWMAEncode has a different header, specifically their dpds section which takes care of seeking are different both in length and content. I'll try, but I have my doubts.


trust me it will work
generic header + .dat ( striped data )
when i have time i will explain

it worked for me yesterday on my home pc
when i get home and find some hexing time i will demonstrate how i did it (hex + c# code for writing/playing)
All men dream: but not equally.
Those who dream by night in the dusty recesses of their minds wake in the day to find that it was vanity: but the dreamers of the day are dangerous men, for they may act their dreams with open eyes, to make it possible.
This I did.
User avatar
nesa24
 
Posts: 313
Joined: Sun Mar 04, 2012 3:43 am

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

Postby yeltrah123 on Tue Jun 18, 2013 10:58 pm

Hey Lefos, and JaoSming I go the tool and imported the default jukebox nba2k13 media sounds and it look like this:C:\Program Files (x86)\2K Sports\NBA 2K13\jukeboxmusic.bin. Then I hit the browse tab next to song file and renamed it to 0.mp3 and got error when i loaded it..? Can you help me? How do you make the backup so i can overwite the file?
User avatar
yeltrah123
 
Posts: 62
Joined: Tue Jun 18, 2013 10:55 pm

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

Postby Leftos on Tue Jun 18, 2013 11:03 pm

yeltrah123, can't help you if you don't tell me what error you got.

nesa24, okay, when figure out how to build a generic header, let me know. I'll code it into the tool ASAP.

EDIT: Done with export all and some other enhancements, such as improved loading speed and the ability to load huge files like lines*.bin fast. I'm waiting for nesa24 to help me in order to make the exported files playable and even play segments from inside the tool, and I'll release the new version.
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: 5285
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

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

Postby likwidsneyk on Wed Jun 19, 2013 1:20 am

working! thanks for this Leftos and Nesa24! Mabuhay!
likwidsneyk
 
Posts: 44
Joined: Mon Jul 11, 2011 1:05 am

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

Postby Angelo on Wed Jun 19, 2013 1:31 am

Holy smokes this is a great breakthrough for 2k patching hats off to both of you Leftos and nesa24 (Y)
Image
User avatar
Angelo
Holy Tits
NLSC Team Member
 
Posts: 5901
Joined: Fri Nov 03, 2006 1:40 am
Location: Philippines

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

Postby mr24yoso on Wed Jun 19, 2013 1:33 am

sir what is this error. every time i click the apply in the nba 2k aduio editor it goes with this error. any solutions for this stuff. thanks in advance.
You do not have the required permissions to view the files attached to this post.
User avatar
mr24yoso
 
Posts: 2
Joined: Wed Jun 19, 2013 1:22 am

Next

Return to NBA 2K13 Modding

Who is online

Users browsing this forum: No registered users and 5 guests