[Tool] Miracle My Jersey/Stadium 0.2.1

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

[Tool] Miracle My Jersey/Stadium 0.2.1

Postby Leftos on Fri Jan 06, 2012 7:36 pm

Prologue

Since I got JoeJames' permission to apply this year's Miracle shading on his jersey textures, I started thinking how I could go around doing this easily. First thought would be to use a hex editor that has scripting support (such as XVI). But then I thought, why not make this even easier for newbie modders or for users that grab mods that don't have the shaders applied?

So I made my decision. I'm going to make an easy-to-use tool, that will apply the lighting changes you want to any jersey file. It will include Jao's Miracle lighting profiles by default, but it will allow you to change the values to whatever you want, and allow you to keep different profiles for home and away jerseys. It will have jersey auto-detection (whether it is home or away based on the filename), it will have batch processing (so that you don't have to go through each file one by one), and will keep automatic backups if something goes wrong.

If we discover more lighting values later on or new tricks, or get some new good lighting profiles, I will make sure to add them in the tool.


Release

Miracle My Jersey is ready! The second tool by me, Leftos, is finally here to help you get the Miracle Jersey effect (or any lighting effect you discover for that matter) on any jersey you want, from any modder, without any manual editing! You just select the jersey, or the folder that contains the jerseys you want to modify, click on Do Magic, and you're done! The tool even detects which jerseys are home and which are away, and has different preset profiles for each one. It also comes with 2K's presets for lighting, in case you don't like the effect or just want to get the jersey back to its original state.

Since v0.2, the tool supports stadium files (s###.iff) and allows you to apply edits to the shaders easily.


Disclaimer

The tool is still in beta. I've tested it in my environment, added the lighting effects to all 30 teams on JoeJames' updates, and went into the game to test that they work. Your mileage should be good, but may vary until I iron out any bugs. I do need your help in testing this tool as well. If something goes wrong, you can always revert the jersey to its original state, by using 2K's profiles, which are provided with the tool.


Screenshots

Image
The tool's main window, showing the different profiles and the settings you can alter.

Image
The tool's Batch Processing window ("Do Folder") which allows you to apply the lighting edits to all jerseys inside a folder with a single click.

Image
2K's default Pistons away uniform, color corrected and with Miracle Jersey lighting effects ("away" profile).

Image
JoeJames' updated uniforms with MIracle Jersey lighting settings ("home" and "away" profiles)


Image
Screenshot after applying the shadow stadium profile on the Pistons court. Further edits were done using the Global Editor.


Download
Latest version
  • Installer

    Version History
    • 0.2 - Feb 29
      • Added support for stadium shaders
    • 0.1 - Jan 6
      • Initial release


Donate and support my work
If you enjoy using my tools and want to show your appreciation, all you have to do is say a hello and a thank you in a reply here. If, however, you want to show a little more appreciation, you can always consider making a small donation towards my everyday and studies expenses. Any donation, no matter the amount, will give me even greater incentive to develop these tools and helping the community.

Click here to donate!
Last edited by Leftos on Fri Mar 02, 2012 9:28 am, edited 14 times in total.
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] [Preview] Do Miracles on my Jersey!

Postby dbzx on Fri Jan 06, 2012 8:27 pm

great idea, will be waiting for the tool.
dbzx
 
Posts: 345
Joined: Fri Jun 04, 2010 7:58 am

Re: [Tool] [Preview] Do Miracles on my Jersey!

Postby JaoSming on Fri Jan 06, 2012 10:11 pm

Great idea! :applaud:

Like I said before, I used mouse macros to do my mass edits. So to get each value the same for all the uniforms, I would have the macro run a find command for the header, then down arrow 3 times, left arrow 4 times, then delete 4 times, type the new value, then down arrow....etc etc etc. Then after each uniform had the same values I was then able to run a find/replace macro which was even quicker (hence v2/3 coming out so quickly).

A program for editing this stuff would be awesome, just know that all the uniforms (decompressed, you might want a dialog reminding the user to decompress the uniform first) runs about 2gigs, so I dont know if backups are a wise thing to implement. Maybe have an option for that, or have the default values stored in the program.
Opinions are my own.

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

Re: [Tool] [Preview] Do Miracles on my Jersey!

Postby Leftos on Fri Jan 06, 2012 10:30 pm

Thanks for the suggestions. I'll have a "revert to default" implemented. How should I go about detecting if the uniform's compressed? Any specific bytes I need to check for?
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] [Preview] Do Miracles on my Jersey!

Postby JaoSming on Fri Jan 06, 2012 10:45 pm

nothing too specific, when looking at a compressed uniform file you can see a list of names at the bottom of the file, but you wont be able to search for "00000000B82DF3F6" in a compressed file

check out your ud###.iff files, they should be the only compressed ones you have left (from the not-included dunk contest)



and btw, search for "00000000B82DF3F6" not "B82DF3F6DF29" since some uniforms had the DF29 part of that changed.
Opinions are my own.

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

Re: [Tool] [Preview] Do Miracles on my Jersey!

Postby Leftos on Sat Jan 07, 2012 1:13 am

Okay, thanks. The program already checks if it can find that hex inside the jersey before loading it or allowing you to do any changes to it. But thanks for the updated hex, this should make the check more accurate.
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] [Preview] Do Miracles on my Jersey!

Postby chicagoRAW on Sat Jan 07, 2012 2:11 am

Great idea, maybe an easier way to edit courts tool will be your next project. :cheeky: After learning how to edit courts with hex its not that hard its just really annoying. But great work Leftos all your tools really help alot!
Image
User avatar
chicagoRAW
 
Posts: 2289
Joined: Mon Dec 20, 2010 8:04 am
Location: Chi Town

Re: [Tool] Miracle My Jersey 0.1.1 RELEASED

Postby Leftos on Sat Jan 07, 2012 3:39 am

v0.1 released.

More information in the revamped first post.

===================================================

v0.1.1 released.

Quick fix to the ambient lighting value for the default JaoSming profiles. Switched from -0.75 to -0.1 which ended up being his final value for the AmbientLighting.
If you had 0.1 previously installed
1. Click on the "home" profile in the main window.
2. Click Delete.
3. Click on the "away" profile.
4. Click Delete.
5. Re-select any of the above profiles.
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] Miracle My Jersey 0.1.1 RELEASED

Postby nba2kway on Sat Jan 07, 2012 4:33 am

Excellent tool (Y)
User avatar
nba2kway
 
Posts: 310
Joined: Fri Oct 16, 2009 4:56 am
Location: Argentina

Re: [Tool] Miracle My Jersey 0.1.1 RELEASED

Postby JaoSming on Sat Jan 07, 2012 4:34 am

niceness, I'll get the Tools sticky updated asap and get a front page news article up.


BTW, the uniforms I released were "open source" so anyone can edit/reupload, do whatever they want with them, so dont feel shy about making your own complete packs using all the decompressed uniforms in my download!
Opinions are my own.

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

Re: [Tool] Miracle My Jersey 0.1.2 RELEASED

Postby Leftos on Sat Jan 07, 2012 4:44 am

v0.1.2 released.

This update adds an indication next to the lighting value boxes which convert the hex value inside the boxes to decimal, so that you know what value you're actually entering without using a separate converter. It should help experimenting with the hex values a lot.

I know this is still not as easy as actually allowing the user to enter a decimal value, but it's on my ToDo list.
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] Miracle My Jersey 0.1.2 RELEASED

Postby jaelove on Sat Jan 07, 2012 5:48 am

does this work on 64 bit systems?
jaelove
 
Posts: 713
Joined: Tue Oct 12, 2010 3:50 am

Re: [Tool] Miracle My Jersey 0.1.2 RELEASED

Postby Leftos on Sat Jan 07, 2012 5:58 am

It should, no reason it shouldn't.
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] Miracle My Jersey 0.1.2 RELEASED

Postby tatlopuyo on Sat Jan 07, 2012 6:49 am

does this work on nba 2k11 too?
User avatar
tatlopuyo
 
Posts: 768
Joined: Thu May 19, 2011 6:20 pm

Re: [Tool] Miracle My Jersey 0.1.2 RELEASED

Postby Leftos on Sat Jan 07, 2012 6:54 am

Nope, I'd have to make another version for 2K11, matching the hex editing patterns for jersey lighting of that version. Don't think I'll get around to that soon, but I may, in the future.

If, however, someone with .NET experience wants to fork this and make a 2K11 version, PM me. The tool is written in C#, using WPF, and targeting .NET 4 Client Profile.
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] Miracle My Jersey 0.1.2 RELEASED

Postby tatlopuyo on Sat Jan 07, 2012 7:10 am

oic..anyways thank you for this tool..awesome job bro!
User avatar
tatlopuyo
 
Posts: 768
Joined: Thu May 19, 2011 6:20 pm

Re: [Tool] Miracle My Jersey 0.1.2 RELEASED

Postby Sixers85 on Sat Jan 07, 2012 7:22 am

wow,great tool leftos (Y)
User avatar
Sixers85
Contributor
Contributor
 
Posts: 1555
Joined: Tue Oct 26, 2010 5:19 pm
Location: Italia, Sardinia

Re: [Tool] Miracle My Jersey 0.1.2 RELEASED

Postby Andrew on Sat Jan 07, 2012 9:50 am

Awesome work! :)
User avatar
Andrew
Retro Basketball Gamer
Administrator
 
Posts: 114919
Joined: Thu Aug 22, 2002 8:51 pm
Location: Australia

Re: [Tool] Miracle My Jersey 0.1.2 RELEASED

Postby Jayson Silverio on Sat Jan 07, 2012 12:02 pm

nice job sir using it already :applaud:
Image
User avatar
Jayson Silverio
 
Posts: 494
Joined: Fri May 14, 2010 5:50 pm
Location: Quezon City, Philippines

Re: [Tool] Miracle My Jersey 0.1.2 (add shading to any jerse

Postby Mythbuster on Sat Jan 07, 2012 1:24 pm

Whoa, thank you very much for this Leftos! Saves more time for me :bowdown2: :bowdown:
Trying my best to get better.
Like the Facebook page: http://www.facebook.com/Mythbuster2KX/


Please donate, would be a big help for me, my mods and my PC. Thanks!
Image

My 2k14 Thread-Mythbuster
My 2k13 Thread-Mythbuster
My 2k12 Thread-Mythbuster
My 2k11 Thread-GS6CAR7/Mythbuster

http://www.youtube.com/user/Manaphy756
User avatar
Mythbuster
Extremely Addictive
Contributor
 
Posts: 1167
Joined: Thu Nov 04, 2010 11:47 am
Location: España

Re: [Tool] Miracle My Jersey 0.1.2 (add shading to any jerse

Postby Angelo on Sat Jan 07, 2012 3:28 pm

Nice tool man
Image
User avatar
Angelo
Holy Tits
NLSC Team Member
 
Posts: 5898
Joined: Fri Nov 03, 2006 1:40 am
Location: Philippines

Re: [Tool] Miracle My Jersey 0.1.2 (add shading to any jerse

Postby chicagoRAW on Sat Jan 07, 2012 6:07 pm

Leftos do you know how to edit numbers and names on jerseys? If so can you fix the pink numbers and names on Bulls and also Magic need fixing.
Image
User avatar
chicagoRAW
 
Posts: 2289
Joined: Mon Dec 20, 2010 8:04 am
Location: Chi Town

Re: [Tool] Miracle My Jersey 0.1.2 (add shading to any jerse

Postby Leftos on Sat Jan 07, 2012 7:45 pm

Nope, I only made this tool based on the standard hex editing procedure for the lighting effects, based on JaoSming's tutorial. If a similar tutorial is created for other parts of the jersey (or the game in general) and it's something that can be automated by code, I'll do it.

Thanks for your kind words everybody, I hope it saves you a lot of time.

I'll be uploading v0.1.2 to NLSC as well, forgot to do that yesterday after 8 hours of coding. :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] Miracle My Jersey 0.1.2 (add shading to any jerse

Postby dbzx on Sat Jan 07, 2012 9:27 pm

awesome program man, I love it. saves me alot of time from the usual hex editing (i do get pretty lazy when it comes to hex editing)
dbzx
 
Posts: 345
Joined: Fri Jun 04, 2010 7:58 am

Re: [Tool] Miracle My Jersey 0.1.2 (add shading to any jerse

Postby gamez on Sat Jan 07, 2012 9:44 pm

Great tool Leftos!
Do you think you could do a tool to do some basic roster editing? I am not talking about a new REDitor but a program that could do very basic team editing, for example, since we couldn't edit team tab in the free version of REDitor, it would be great to have a tool that could change team type, jerseys or court for a team in the roster (that way, everyone could create their own team -especially retro ones- with court and jerseys associated).
User avatar
gamez
 
Posts: 91
Joined: Thu Feb 26, 2009 1:18 am

Next

Return to NBA 2K12 Modding

Who is online

Users browsing this forum: No registered users and 1 guest