IFFset ~ iff Extractor & Importer

Resources for NBA 2K9.

Re: IFFset ~ iff Extractor & Importer

Postby Eich on Tue Jan 06, 2009 12:17 am

Great then why everyone is saying just install "C++"...
ok great, I'll wait when its available on Vista.
User avatar
Eich
 
Posts: 479
Joined: Fri Aug 10, 2007 5:16 am
Location: Latvia

Re: IFFset ~ iff Extractor & Importer

Postby MacGyver666 on Wed Jan 07, 2009 9:26 am

So, anybody had success extracting the "global.iff"?? More than that, anybody had success repacking a file into global.iff??? Here it always crashes, and always says "invalid iff file" when repacking... Smaller files works perfectly.

Any idea?
cheers
Image
User avatar
MacGyver666
 
Posts: 205
Joined: Wed Aug 20, 2008 10:54 am
Location: Brazil

Re: IFFset ~ iff Extractor & Importer

Postby deepinto on Thu Jan 08, 2009 5:02 am

any idea on how the fonts + colour and size (including numbers) are implemented ?
deepinto
 
Posts: 82
Joined: Mon Nov 10, 2008 5:20 am

Re: IFFset ~ iff Extractor & Importer

Postby 1veritas4 on Fri Jan 09, 2009 7:21 am

When i extract court IFF files using IFFSet only the floor alpha texture and other non image files extract before an error occurs...anyone have any ideas about how to fix this?
Image
i have xp so it shouldn't be C++ problem
1veritas4
 
Posts: 21
Joined: Tue Nov 18, 2008 10:30 am

Re: IFFset ~ iff Extractor & Importer

Postby JaoSming on Fri Jan 09, 2009 8:37 am

iffset cant edit the courts/stadiums
Opinions are my own.

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

Re: IFFset ~ iff Extractor & Importer

Postby crippknottick on Fri Jan 09, 2009 9:41 am

It crashes with all .iff files for me. I am using Windows 2000 Professional w/SP4 and every other update MS and a few third parties had available. I have installed the Visual C++ runtime package.

If it worked on Windows XP (NT 5.1) then it should work on Windows 2000 Pro (NT 5.0), right? Most every other XP-only application runs fine on 2000, so I hope this utility doesn't rely on the use of one of XP's obscure services. The difference of Win2K & WinXP is like the difference of Win98 to WinME. There is hardly a difference. They run the same engine underneath the hood.

Hopefully, this isn't the reason why I can't get this nifty little app to work. It has so much potential, but I am powerless to tap into it.
crippknottick
 
Posts: 34
Joined: Fri Jan 09, 2009 9:23 am
Location: Orlando, FL

Re: IFFset ~ iff Extractor & Importer

Postby JaoSming on Fri Jan 09, 2009 10:20 am

no idea, but it looks like youre proof that anything besides XP won't work.
Opinions are my own.

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

Re: IFFset ~ iff Extractor & Importer

Postby crippknottick on Fri Jan 09, 2009 10:44 am

JaoSming wrote:no idea, but it looks like youre proof that anything besides XP won't work.

My intentions was not to present the situation as proof. I apologize if it was. I am just curious to find out if maybe IFFset was coded to specifically use one of XP's proprietary services or features to do the function it performs. If it's a for sure yes, then I won't have a problem installing XP on another partition.

The problem is that I don't have XP. And before I drop $100.00 USD in buying another OS for one program I would like to know if it is an absolute necessity.

To sum up what I am trying to explain: The difference between Win98 and Win2000 is a difference of DOS (16-bit) and NT(32-bit). Programs that run on DOS generally don't run on NT and vise-versa. The difference between 2000 and XP is just a minor revision and some auxiliary features, nothing big enough to effect the running status of a program built for one of the two.

If I had the source code then I wouldn't be bothering for help. Once again, I apologize if it appeared that I came off as rude. From the what I've seen on these boards you must be used to rude treatment.
crippknottick
 
Posts: 34
Joined: Fri Jan 09, 2009 9:23 am
Location: Orlando, FL

Re: IFFset ~ iff Extractor & Importer

Postby JaoSming on Fri Jan 09, 2009 11:03 am

Im sick, sorry if it was rude, was not my intention at all


Dont buy XP for this. Hopefully another program will come out.

What do you mean by if you had the source code?
Opinions are my own.

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

Re: IFFset ~ iff Extractor & Importer

Postby crippknottick on Fri Jan 09, 2009 11:13 am

The source code is the inner workings of the program in a readable text format. That code can be compiled into an application (.exe, .com .dll, etc..) through use of an Integrated Development Environment (IDE), such as Microsoft Visual Studio/Basic (super expensive, $1200 or more to buy), Bloodshed DevC++ (freeware) and other IDE's specific to the type of code (C, C++, Java, Basic, etc...) they can compile.

With the code I can:
1. Fix problems with IFFset.
2. Improve on IFFset's functionality like being able to import/extract new data we have not tapped into yet.
3. Maybe even add a GUI (graphical user interface) with shiny buttons and everything to make modding smoother and more reliable.

It's up to Santa to release the source code.
crippknottick
 
Posts: 34
Joined: Fri Jan 09, 2009 9:23 am
Location: Orlando, FL

Re: IFFset ~ iff Extractor & Importer

Postby JaoSming on Fri Jan 09, 2009 11:25 am

My guess is that santa just leaked it and doesnt have the source code.


Do you think you could do anything with this?

viewtopic.php?p=996980#p996980

Code: Select all
TITLE: Structure of NBA2K9 IFF
AUTHOR: hades
DATE: 2008-12-19,22:36
LINK: http://hades.net.cn/post/nba2k9_iff_format.html

typedef struct {
IFF_HEADER iffHeader;
IFF_MAINDATA iffHadesData[dwDataFileCount];
} IFF_FILE;

typedef struct {
DWORD dwMagic;
DWORD dwSize;
DWORD dwFileLen;
DWORD dwReserve;
DWORD dwDataFileCount;
DWORD dwUnknow1;
DWORD dwSubFileCount;
DWORD dwUnknow2;
IFF_HEADER_DATA ihdData[dwDataFileCount];
DWORD dwSubFile[dwSubFileCount];
IFF_HEADER_SUB ihdSub[dwSubFileCount];
} IFF_HEADER;

typedef struct {
DWORD dwName;
DWORD dwType;
DWORD dwUnknow1;
DWORD dwUnCompressLen;
DWORD dwUnknow2;
DWORD dwStartOffset;
DWORD dwCompressLen;
DWORD dwReserve;
} IFF_HEADER_DATA;

typedef struct {
DWORD dwName;
DWORD dwType;
DWORD dwSubCount;
DWORD dwOffset[dwSubCount];
} IFF_HEADER_SUB;

typedef struct {
DWORD dwFlag;
DWORD dwUnCompressLen; //reverse
DWORD dwCompressLen; //reverse
DWORD dwUnknow1;
DWORD dwHades;
BYTE btData[dwCompressLen-20];//compressed
} IFF_MAINDATA;

by hades(hades.net.cn)
Opinions are my own.

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

Re: IFFset ~ iff Extractor & Importer

Postby crippknottick on Sat Jan 10, 2009 4:38 am

It's a start.

My wireless connection was not very stable last night so I am sorry it took me this long to reply. I was getting frustrated trying to figure out what iffHadesData was. With the internet not available I was not able to check that link you gave, which explained it was just a variable.

I've twiddled with the code for few hours but have not come up with anything yet. I'll have to dedicate some more time to work on it after work. See ya soon, hopefully I will have some kind of results.
crippknottick
 
Posts: 34
Joined: Fri Jan 09, 2009 9:23 am
Location: Orlando, FL

Re: IFFset ~ iff Extractor & Importer

Postby bigball12 on Sat Jan 10, 2009 2:25 pm

Hey I'm new to this. what is so much better about these iff's then the tpf's? What's the main difference?
Image
User avatar
bigball12
 
Posts: 230
Joined: Fri Nov 25, 2005 4:21 am

Re: IFFset ~ iff Extractor & Importer

Postby JaoSming on Sat Jan 10, 2009 2:48 pm

with the iff files, we are modifying the actual game files and not intercepting + replacing them. Improves performance and wont produce the glitches that texmod can provide when you use it with a lot of patches
Opinions are my own.

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

Re: IFFset ~ iff Extractor & Importer

Postby bigball12 on Sun Jan 11, 2009 12:41 am

^ Oh I see. But won't that replace the actual files themselves? the thing that I like about texmod is that tit isn't permanent. Because when that Euroleague 2k9 patch comes out, I won't want it to be European teams forever.
Image
User avatar
bigball12
 
Posts: 230
Joined: Fri Nov 25, 2005 4:21 am

Re: IFFset ~ iff Extractor & Importer

Postby bazelos13 on Mon Jan 12, 2009 2:39 am

is this one still doesnt work on vista
User avatar
bazelos13
 
Posts: 513
Joined: Tue Dec 04, 2007 7:18 am
Location: Greece

Re: IFFset ~ iff Extractor & Importer

Postby JaoSming on Mon Jan 12, 2009 2:41 am

right, this one doesnt work with vista, im sure once it does someone will post it
Opinions are my own.

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

Re: IFFset ~ iff Extractor & Importer

Postby Patr1ck on Mon Jan 12, 2009 5:28 am

Anybody try compatability mode in Vista for XP?
Patr1ck
Administrator
Administrator
 
Posts: 13323
Joined: Thu May 19, 2005 5:54 pm
Location: Pasadena, California, US

Re: IFFset ~ iff Extractor & Importer

Postby M1GHTY M4VS on Mon Jan 12, 2009 7:42 am

Pdub wrote:Anybody try compatability mode in Vista for XP?

No Luck for me
Image
User avatar
M1GHTY M4VS
 
Posts: 124
Joined: Mon Dec 01, 2008 1:44 am

Re: IFFset ~ iff Extractor & Importer

Postby LiLwAyNe on Mon Jan 12, 2009 8:55 am

MAN , i cant wait for it to be realesed on vista ill be patching shoes and players (mj :mrgreen: )
( i changed my user from RayAllen20 to LiLwAyNe )
User avatar
LiLwAyNe
 
Posts: 115
Joined: Wed Nov 12, 2008 12:34 am
Location: Waynes World , Carter-Fornia

Re: IFFset ~ iff Extractor & Importer

Postby tdking on Sat Jan 17, 2009 2:33 am

when i import it's crash,can you fix?
tdking
 
Posts: 12
Joined: Fri Dec 05, 2008 10:54 pm

Re: IFFset ~ iff Extractor & Importer

Postby retroman on Sat Jan 17, 2009 11:42 pm

can't convert the iff file after making my edit, i type iffset -p XXXX.iff AE2D486A_DXT5.dds and it doesn't make the change ?
retroman
 
Posts: 976
Joined: Fri Apr 30, 2004 1:34 am
Location: USA

Re: IFFset ~ iff Extractor & Importer

Postby Patr1ck on Sun Jan 18, 2009 5:51 am

Are you sure XXXX.iff is the correct name of the iff file? :lame:

Is the DDS file in the same directory as iffset? Did you make sure to save it with the DXT5 format with all generated mipmaps and of the same resolution?
Patr1ck
Administrator
Administrator
 
Posts: 13323
Joined: Thu May 19, 2005 5:54 pm
Location: Pasadena, California, US

Re: IFFset ~ iff Extractor & Importer

Postby retroman on Sun Jan 18, 2009 11:01 am

yes, i believe the the right one!

start with say kobe bryant's face is png195.iff

type: iffset -x png195.iff ENTER

Results: a folder of png195 with it contents in the folder, i make my edit of the face files AE2D486A_DXT5.dds
then i save them by just SAVE button. everythings OK, next is too convert it back type: iffset -p png195.iff AE2D486A_DXT5.dds is there something
missing in what i'm doing ?
retroman
 
Posts: 976
Joined: Fri Apr 30, 2004 1:34 am
Location: USA

Re: IFFset ~ iff Extractor & Importer

Postby Patr1ck on Sun Jan 18, 2009 11:39 am

As long as you saved the DDS file in DXT5 format with all mipmaps generated, you should be fine. Do you get any errors?

Try putting iffset, the dds file, and the iff file in the same directory as the extracted files. I thought somebody said they did that and it worked.
Patr1ck
Administrator
Administrator
 
Posts: 13323
Joined: Thu May 19, 2005 5:54 pm
Location: Pasadena, California, US

PreviousNext

Return to NBA 2K9 Tutorials & FAQs

Who is online

Users browsing this forum: No registered users and 1 guest