[ANY GAME] Tutorial FileResearch = How and What game does with files

Patchmaking tutorials for NBA 2K15.

[ANY GAME] Tutorial FileResearch = How and What game does with files

Postby nesa24 on Thu Nov 06, 2014 1:01 am

This tutorial works on any game/software
Once you got it right you can reverse any game and find out game format

Software used: API MONITOR [http://www.rohitab.com/apimonitor]

Setup

Code: Select all
Start API Monitor v2 64bit [ as administrator ]

In API filter uncheck all
DataAccess and Storage >> Local File Systems >> File Management >> check Kernel32.dll

Save filter


Tracking game

Code: Select all
Go to file >> Monitor new process >> Find NBA2K15.exe [ remember to run STEAM first so game starts up]
Select StaticImport and Click OK

Game will start

Wait until main menu and exit game [F4]

Go to File>Save to save monitoring


Reading results


In middle window there are calls

TO SEE BYTES CLICK PostCall Value under lpBuffer

this is one
# Time of Day Relative Time Thread Module API Return Value Error Duration
280 11:42:58.767 AM 0:00:01:282 1 NBA2K15.exe CreateFileA ( "0B", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL ) 0x0000000000000278 0.0001616


at 280th call game opens OB file [ and all 0x0000000000000278 calls will be for OB ]

# Time of Day Relative Time Thread Module API Return Value Error Duration
281 11:42:58.767 AM 0:00:01:282 1 NBA2K15.exe GetFileSizeEx ( 0x0000000000000278, 0x0000000000b5f310 ) TRUE 0.0000123

at 281 we have that it calls it under 0x0000000000000278 handle


# Time of Day Relative Time Thread Module API Return Value Error Duration
282 11:42:58.767 AM 0:00:01:282 1 NBA2K15.exe ReadFile ( 0x0000000000000278, 0x0000000000b5faa8, 12, 0x0000000000b5f820, 0x0000000000b5f830 ) TRUE 0.0000725
Image
at 282 it reads 12 bytes in big endianorder [and you have them on right side of screen 94ef3bff88000000 ]

# Time of Day Relative Time Thread Module API Return Value Error Duration
283 11:42:58.767 AM 0:00:01:282 1 NBA2K15.exe ReadFile ( 0x0000000000000278, 0x000000000586d54c, 124, 0x0000000000b5f820, 0x0000000000b5f830 ) TRUE 0.0000090
Image
at 283 it reads file info

at 284 it reads 2840314 bytes [ and that is KD boot screen ]
Image
on right side of screen you can see those bytes

So from IFF file size of KD TitleScreen is 2840450 bytes [12+124+2840314 call 282/283/284]
Open 0B with hexeditworkshop and search for bytes

Copy it to new file [2840450 bytes] and you have isolated file to research
This topic was moved by a nonexistent user on Thu Nov 06, 2014 7:35 am.
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: [ANY GAME] Tutorial FileResearch = How and What game does with files

Postby nesa24 on Fri Nov 07, 2014 1:19 am

guess people here aren't researcher or tool making people

just clicking ones
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: [ANY GAME] Tutorial FileResearch = How and What game does with files

Postby JBulls on Fri Nov 07, 2014 1:45 am

nesa24 wrote:guess people here aren't researcher or tool making people

just clicking ones


Unfortunately, programmers seem to be few and far between here, and those that are programmers are already trying to reverse engineer the files like gregkwaste and vladzolajr. But I think you will make a few people curious and intrigued. Thanks for all the great work you have done so far, I remember you were the one that started the audio decryption and leftos joined in on the research, and then they took him from us! :P
User avatar
JBulls
 
Posts: 685
Joined: Tue Oct 09, 2012 2:59 pm
Location: Durham, N.C.

Re: [ANY GAME] Tutorial FileResearch = How and What game does with files

Postby Kevin on Fri Nov 07, 2014 11:43 am

I actually might try this
Rest In Peace Kobe
User avatar
Kevin
Fuck the Celtics
 
Posts: 8041
Joined: Sat Nov 16, 2013 9:47 pm
Location: Staples

Re: [ANY GAME] Tutorial FileResearch = How and What game does with files

Postby Manni Live on Fri Nov 07, 2014 11:31 pm

nesa24 wrote:guess people here aren't researcher or tool making people

just clicking ones


im actually trying to get into programming,thanks for the tutorial ima give this a shot
Image

For all my patches for NBA 2K16 & NBA 2K14 Visit http://mannipatches.blogspot.ca/

Flickr Page https://www.flickr.com/photos/99620982@N03/


If your willing to support feel free to donate :)

Image
User avatar
Manni Live
Y'all spinning around like ballers. Seething with jealousy, I am.
Contributor
 
Posts: 3091
Joined: Wed Feb 22, 2012 12:24 am
Location: Toronto,Canada

Re: [ANY GAME] Tutorial FileResearch = How and What game does with files

Postby A_Armella on Sat Nov 08, 2014 2:28 pm

Just want to jump in this thread too and say thanks. I've been searching the web for a long time trying to figure out how to get into this type of work.

I'm definitely going to give this a try. I may not fully understand the process in time to help figure out 2k15 but seriously, I can't even express how much this helps me, just to get started down the path.

Threads like this are why the NLSC is my "go to" modding site.
Follow me on Twitter @A_Armella for my latest mod releases
A_Armella
 
Posts: 60
Joined: Fri Jul 12, 2013 1:31 pm

Re: [ANY GAME] Tutorial FileResearch = How and What game does with files

Postby A_Armella on Sun Nov 09, 2014 11:57 am

Is Anyone else getting a Steam Error when trying to run the game?

I'm running the 64 bit version of API Monitor v2 as an Administrator.
I'm starting Steam before running the program.
The error only happens if I'm running API Monitor.
I've tried running the game via API Monitor (File --> Monitor new process Attach using Static Import)
And I've tried just starting the game as I normally would.

I'm sure I'm just overlooking something super simple

Image
Follow me on Twitter @A_Armella for my latest mod releases
A_Armella
 
Posts: 60
Joined: Fri Jul 12, 2013 1:31 pm


Return to NBA 2K15 Tutorials & FAQs

Who is online

Users browsing this forum: No registered users and 3 guests