Author Topic: Tekken 2 BNS Extraractor: A tool to extract TEKKEN2.BNS...  (Read 3156 times)

Leo2236

  • Administrator
  • Sr. Member
  • *****
  • Posts: 284
  • Location: Athens, Greece
Tekken 2 BNS Extraractor: A tool to extract TEKKEN2.BNS...
« on: March 01, 2015, 11:14:26 pm »
-Tekken 2 BNS Extraractor v0.2b-   Release Date:  3/27/2015
-Tekken 2 BNS Extraractor v0.1b-   Release Date:  3/1/2015

About: It's an extractor for TEKKEN2.BNS that contains game sound, textures, 3D models, and so on. The tool doesn't extract files with their real name but numerically, hope in the next version I'll fix that :)

Note: I've only test it with SLUS_002.13 so I'm not sure if it'll work with other regions as well  ???

Thanks: @kamilm122 for inspiration! :)

Screenshot Tekken 2 BNS Extraractor v0.2b:


Screenshot Tekken 2 BNS Extraractor v0.1b:


Tekken 2 BNS Extraractor v0.2b.zip (351.38 KB)

Tekken 2 BNS Extraractor v0.1b.zip (347.5 KB)
« Last Edit: March 10, 2017, 01:11:53 am by Leo2236 »
<a href="http://edmullen.net/flash/clock8.swf" target="_blank" rel="noopener noreferrer" class="bbc_link bbc_flash_disabled new_win">http://edmullen.net/flash/clock8.swf</a>

MartinBiohazard

  • Newbie
  • *
  • Posts: 23
Wow! very interesting! Tekken 2 is one from my favorite PSX games of my childhood!

Thanks Leo!

You never cease to amaze me, friend!

Abohack

  • Newbie
  • *
  • Posts: 26
Wooowwww

You are Great LEO

dxp

  • Newbie
  • *
  • Posts: 14
This hit me right in the nostalgia xD awesome work on this tool dude!

Leo2236

  • Administrator
  • Sr. Member
  • *****
  • Posts: 284
  • Location: Athens, Greece
Thanks for the support guys I really appreciate it! :)

By the way I think I've got enough information to start writing an 3D model viewer for Tekken, I'll probably will create a topic for in which I'll show progress with the tool ;)
<a href="http://edmullen.net/flash/clock8.swf" target="_blank" rel="noopener noreferrer" class="bbc_link bbc_flash_disabled new_win">http://edmullen.net/flash/clock8.swf</a>

CraZyEddy2010

  • Newbie
  • *
  • Posts: 48
  • Check out my Instagram EET_THE_FUKING_FUK
  • Location: is somewhere I belong
Can someone please test if it works with japanese Version?  And maybe with tekken 3? I dunno if Tekken 3 has the same file Format. I first need to dump my tekken 3 NTSC-J Version. And right now I haven't bot the time for it.
EET_THE_FUKING_FUK

Leo2236

  • Administrator
  • Sr. Member
  • *****
  • Posts: 284
  • Location: Athens, Greece
Just have test it with Japanese version and it seems that it work, I've test it with SLPS-003.00. As about Tekken 3 the tool will not work with it, cause it store differently it's data rather than Tekken 2 do...
« Last Edit: March 04, 2015, 01:41:12 pm by Leo2236 »
<a href="http://edmullen.net/flash/clock8.swf" target="_blank" rel="noopener noreferrer" class="bbc_link bbc_flash_disabled new_win">http://edmullen.net/flash/clock8.swf</a>

CraZyEddy2010

  • Newbie
  • *
  • Posts: 48
  • Check out my Instagram EET_THE_FUKING_FUK
  • Location: is somewhere I belong
Awesome Leo! Thank You for testing it with japanese Version. And yeah about tekken 3 that was what I was thinking. Anyway thank you friend!
EET_THE_FUKING_FUK

kamilm122

  • Newbie
  • *
  • Posts: 20
Damn! Leo! I'm very glad that you've read my message and even wrote an application to rip stuff from that game! I'm really impressed by your work. I was struggling to "bite" that game for like a year, and you've made that app in like a week! HOLY SH*T!
By the way, while you were looking at the file, you should notice that in ps-exe file [that main one] (in my case european version - SCES_002.55) has foler listings at the certain offsets:
00041BB8,
0004A740,
0004DFBC
Try to insert them to your results, and by that name them properly (?).
Also, my main interest behind the geometry, are files which are containg animations for each model. Maybe these are hidden in some other form, because some characters have the same punches/kicks, so maybe its per object [like hand / both hands / leg(s) ?].
I'm watching that topic carefully.



THANK YOU :)

Leo2236

  • Administrator
  • Sr. Member
  • *****
  • Posts: 284
  • Location: Athens, Greece
Actually to make this tool took me a day or something along with the spending time to locate offsets  ;D

As about folders and files list yeah I saw it(I've mention it HERE you probably missed that out) but I don't know yet how to use it, not that I've looked in to the issue deeply cause right now my main priority is documenting Tekken 2 characters 3D format in which I've advanced a lot and understand most of it already  :)

I haven't looked at the animations yet cause I think it would be wise to done with the models first so I can't say anything about it right now, but one  thing is certain to me that animation are not storing with 3D models.

Anyway I'll keep working on Tekken 2 and if I'll find something I'll let you and others know HERE ;)

« Last Edit: March 06, 2015, 12:10:44 pm by Leo2236 »
<a href="http://edmullen.net/flash/clock8.swf" target="_blank" rel="noopener noreferrer" class="bbc_link bbc_flash_disabled new_win">http://edmullen.net/flash/clock8.swf</a>

kamilm122

  • Newbie
  • *
  • Posts: 20
Leo,

If i may ask you. -HOW- did you learn that? Or how do you prepare to check these files, and take stuff that you are interested in?
I've just postead that i found some list and thats all i know. Also i tried to use no$psx and psX debugger to find [in previous case] TMDs like searching for 0x41.
I didn't found that of course. no$psx has nice tool to view actual rendered scene and user's able to point at certain TRAINGLE! By clicking on some element on the list, which is always on the right, you also see small few-line info, with the addresses.

I tried to locate models in T2 and T3 by "locating" first triangle of the character, and the find hex value in the real file [with Hex editor], but the thing is that it couldn't be fin or at least with totally messed values instead [not the same which were written in no$psx].

Along with T3 and T2 there are many games i'd love to rip off but by myself, to try my own possibilities, but actually i have lack of knowledge.

Could you please say how did you get that experience? What was your first game and how did you find out how to properly take out ie. models from that game :) I'd be really glad and interested.


BTW: I can post that pic from no$psx graphic debugger if you don't know what i mean.

Leo2236

  • Administrator
  • Sr. Member
  • *****
  • Posts: 284
  • Location: Athens, Greece
Quote from: @kamilm122
Leo,

Quote from: @kamilm122
If i may ask you. -HOW- did you learn that? Or how do you prepare to check these files, and take stuff that you are interested in?
I've just postead that i found some list and thats all i know. Also i tried to use no$psx and psX debugger to find [in previous case] TMDs like searching for 0x41.
I didn't found that of course. no$psx has nice tool to view actual rendered scene and user's able to point at certain TRAINGLE! By clicking on some element on the list, which is always on the right, you also see small few-line info, with the addresses.
The procedure I use to locate needed data is following:

1) I use ePSXe to make a quick save in game at some point where interesting me 3D model(for example) is present, then I use ePSXeSStateManager to quickly locate needed quick save.



2) Then I decompress quick save using small tool that I wrote, the tool allows to open an quick save and decompress it somewhere then I can open it in hex to search for needed value once I locate the possible value I change it, then I simply click compress in the tool after that I do quick load in ePSXe to see what happening and make my conclusions. 

That's how more or less my desktop looks when I'm trying to document some file(usually 3D models),that method may look primitive but I get use to it and most of the time if not always I get what I want...


The very first thing I do when I'm documenting some 3D model is locating vertexes, if you'll look closely to image bellow you'll see that every 6 bytes(X, Y, Z) there's 2 bytes that are usually zero, and if you see many that kind of structure then most likely you've found some model vertexes. Then you looking for other structures like triangles, quads, UV's, etc... Also observing the right side of an hex editor will help you to speed up a lot the whole process.


I also use a lot TIM tool to see how's the tim's are placed in PSX VRAM, that helps a lot when I wring some 3D viewer, and for the same reason I use psx emulator to see in real time VRAM which is helpful too...


That's what more or less I do to find needed information, it may look like a very slow process but if you get practices with it you'll see that the spending time will  reduce continuously as you gathering experiences.

As about no$psx I never used it before nor I hear of it(I think), but I'll definitely will look into it deeply to see how it can help me. Thanks for mention it ;)
 
Quote from: [member=21
kamilm122[/member]]Along with T3 and T2 there are many games i'd love to rip off but by myself, to try my own possibilities, but actually i have lack of knowledge.
I got many useful information from [ur=http://psx.rules.org/gpu.txt]THIS[/url] documentation, and some other documentation for TMD and TIM but you probably already know about them.


Quote from: @kamilm122
Could you please say how did you get that experience? What was your first game and how did you find out how to properly take out ie. models from that game :) I'd be really glad and interested.
If I'm mistaking Chess Master 2 GLU Viewer was first or one of the first tool that wrote without using other's peoples infos but only info that I've found, the tool could view/edit game avatars and players descriptions that storing in *.GLU. I found infos for that game using the method that I described above except that I was editing game CD image and not the quick save of ePSXe to see the changes :)




Quote from: @kamilm122
BTW: I can post that pic from no$psx graphic debugger if you don't know what i mean.
No need I get the picture ;)
« Last Edit: March 08, 2015, 10:21:32 am by Leo2236 »
<a href="http://edmullen.net/flash/clock8.swf" target="_blank" rel="noopener noreferrer" class="bbc_link bbc_flash_disabled new_win">http://edmullen.net/flash/clock8.swf</a>

Leo2236

  • Administrator
  • Sr. Member
  • *****
  • Posts: 284
  • Location: Athens, Greece
Have update the tool and now it extract every character data's in it's own folder.

*.BGG - Stage geometry.
*.BGT - Textures for stage geometry.
*.NLZ - Compessed sprite animation(effect).
*.TAD - Animation data.
*.TMC - 3D model data.
*.TTC - Texture for model.
*.VB(or *.VAB) - sound effect
*.VH - Header for *.VAB

There's also UNKNOW folder with 24 files, I'll will describe them later ;)
« Last Edit: March 29, 2015, 04:44:58 am by Leo2236 »
<a href="http://edmullen.net/flash/clock8.swf" target="_blank" rel="noopener noreferrer" class="bbc_link bbc_flash_disabled new_win">http://edmullen.net/flash/clock8.swf</a>