Help with .DAT file

Discussion in 'Sony Programming and Development' started by emuler, Jul 10, 2014.

  1. emuler

    emuler Rising Member

    Joined:
    May 23, 2014
    Messages:
    68
    Likes Received:
    12
    Good days to everyone! I'm dealing with this file wich seems to store all the game data.
    Textures and sounds is what I'm looking for. Here some pics from Hex editor.

    root.gif screen1.gif screen2.gif

    The .FAT one seems to content some textures too but don't know for sure.

    My intention is to correct one of the most awfully racist thing I've ever experienced in a videogame:
    Sometimes, game distributors think occidentals aren't prepared for a videogame with a full
    japanase cast and do weird things like re-texturing ALL characters with blond hair on NTSC-U
    and PAL versions. Yes, you read well, english dub isn't enough so let's decolorate their hairs...
    this makes the innocent xmas party from opening looks like arian nations celebrating the 4th Reich arrival,
    a genetically modified people convention or something like that.
    So I need help for unpacking/packing this file to import Zettai Zetzumei's textures to Raw Danger!
    This way we could have a director's cut version and in a better and easiest way than make a
    translation from the japanese game.

    By the way, and sorry for double-theme the thread:
    Would like to enhance textures a little but seems to come in TM2 format. Any progress in edit this files? I've been able to view some
    Claire from Code Veronica textures in Game Graphic Studio but success to edit them. All I found over the net is a photoshop and 3dMaya plugin, but you must sign as Sony Developer.(http://www.webtech.co.jp/eng/istudio/ps2/tim2.html) also found this



    Any hint will be much appreciated.
     
    Last edited: Jul 10, 2014
  2. pool7

    pool7 Site Supporter 2014

    Joined:
    Mar 4, 2008
    Messages:
    1,268
    Likes Received:
    134
    Regarding TIM2 files, I haven't used it, but v3.12 of OptPix Image Studio was leaked... you can google for it and see if it allows you to do what you're looking for :)
     
  3. krat0s

    krat0s Member

    Joined:
    Jun 1, 2014
    Messages:
    14
    Likes Received:
    1
    @emuler , A tim file can be opened from Game Graphic Studio , and from PS2 Studio as well. I would reccomend PS2 studio, it can saves regular images directly into TIM2 files. As for extraction it seems that you have a table file. DATA.FAT(File allocation Table perhaps?, although there isn't any point in munge files extension. Any chance that you can post a img of DATA.FAT? The file contains the offsets all the files. I have messed with Japanese games, before, and with their munge, I can take a look ifyou want. If you can share the two files, Or at least a part of them.
    Cheers.
     
  4. emuler

    emuler Rising Member

    Joined:
    May 23, 2014
    Messages:
    68
    Likes Received:
    12
    Really? This is good to hear! Can you believe it just now my Hex workshop expired [-_-]* but I can upload it. I'll need to do the same thing to the NTSC-U or PAL .DAT/.FAT, if not abusing too much I would need your help. I might have a Hex Editor and be able to see something, but this is the much I get by the moment.

    Thanks in advance for your help.
     

    Attached Files:

  5. krat0s

    krat0s Member

    Joined:
    Jun 1, 2014
    Messages:
    14
    Likes Received:
    1
    The structure is really easy tbh. The .FAT file has the header which is quite long. The nr of files in the archive is 5776.
    Start_offset_of_the_file_in_ROOT.DAT File_size Offset_of_the_name_in_ROOT.FAT

    Thats the structure. I may be able to make a quickbms script to make this extract all the files.
    Cheers.
     
    Last edited: Jul 10, 2014
  6. emuler

    emuler Rising Member

    Joined:
    May 23, 2014
    Messages:
    68
    Likes Received:
    12
    @Pool7 @Krat0s:
    Seriously, you're the best. Two simple post (well, not that simple) and two big solutions. Thanks to Pool7 we get the TIM2/TM2 plugin (if some moderator read me, may I have your permission to make public this PS2 propietary format, PM if needed). and Krat0s your words make me scrumble... i never imagined someone will spent his time in doing the WHOLE WORK for me and so quickly. I'm astounded.
     
  7. krat0s

    krat0s Member

    Joined:
    Jun 1, 2014
    Messages:
    14
    Likes Received:
    1
    I will post the script here tomorrow, t is late here and I have to sleep. The TIM2 files are not actually propertiary. The best program would be Optix game studio , you can actually rip them manually, they start with TIM2 header.
    Cheers.
     
  8. SILENT_Pavel

    SILENT_Pavel Gutsy Member

    Joined:
    Jun 23, 2012
    Messages:
    417
    Likes Received:
    163
    Nice game, nice thread! I love Raw Danger back in those days with ps2. Little tip for OP - name thread with game name, not "dat", dat is so damn popular in many games, so...
    Anyway here is known method to unpack SLUS_215.01 version, process similar to quickbms but with GUI:

    You can use Xpert2 + PS2_Raw_Danger_fat_dat.epi - plugin
    download here: http://www.mediafire.com/download/de6qchz05am4iyr/Xpert2_186_Plugins.7z
    how to use it here: https://web.archive.org/web/2010022...om/expert_tool/DVD5_ISO_Shrinker_Tutorial.htm

    So open Xpert, you can unpack two archive, this is several files (for USA version):
    ROOT.DAT
    ROOT.FAT
    Dat - archive, Fat - table, offsets, names possible
    [​IMG]
    After unpacking you can browse folder named "@ROOT.DAT" and search for needed files inside. Then you can edit any files, that you want (edit it correct) and rebuild archive with Xpert tool functionality (modded file must be not bigger size, then original) or just use HEX with ISO or archive editing if you good with it and no compression methods used in game. Textures in the folder called "TEX" and this is TIM2 format, you can use "OPTPiX iMageStudio for PS2" for it and edit as well. attached screens
     

    Attached Files:

    Last edited: Jul 11, 2014
  9. krat0s

    krat0s Member

    Joined:
    Jun 1, 2014
    Messages:
    14
    Likes Received:
    1
    @SILENT_Pavel , there was a Xpert plugin? Thanks for posting it, I was having problems with my quickbms script. @OP , have fun.
    Cheers.
     
  10. SILENT_Pavel

    SILENT_Pavel Gutsy Member

    Joined:
    Jun 23, 2012
    Messages:
    417
    Likes Received:
    163
    Yep, my backups, plugin was made by someone in 2006-2008 years, i think. It was posted on alucard.cc forums, which is totally dead now, so sadly - no full backup on archive.org or anywhere else.

    ---
    btw some textures inside still have ps2 standart texture swizzling, it can be solved, modded and repacked with this tool:
    http://dageron.com/?page_id=2535&lang=en
     
  11. krat0s

    krat0s Member

    Joined:
    Jun 1, 2014
    Messages:
    14
    Likes Received:
    1
    Yep, sadly Alucard is down now, but I have a partial backup. As for the plugins I have 71 of them. Can you please share other plugins/stuff you have?
    Any chance of a tut on how to make Xpert plugins?
    Cheers.


    And you can use webarchive, but the thing is that you can' download unless you login , which we know it is impossible.
     
    Last edited: Jul 11, 2014
  12. SILENT_Pavel

    SILENT_Pavel Gutsy Member

    Joined:
    Jun 23, 2012
    Messages:
    417
    Likes Received:
    163
    I have fresh backup of only one download section from last working site, called "PS2-Tutorials" here: http://www.mediafire.com/?awe94gravdc75ov
    In Xpert archive (link upper) there is about 186 plugins already inside (this is not full list, cos there is actually were Xpert3 new plugins and stuff, but no public release of last one)

    I'm not sure about this, if read here: https://archive.org/about/faqs.php
     
    Last edited: Jul 11, 2014
  13. krat0s

    krat0s Member

    Joined:
    Jun 1, 2014
    Messages:
    14
    Likes Received:
    1
    Thanks mate. Funny because I have the PS2 tutorials backup too. Anyway maybe yours is newer, will give it a try. Thanks for the Xpert3 info.
    Regarding the webarchive download, the problem is not it, but the Alucard site itself. It requires you to login when you try to access the download section.
    Cheers.



    OMG!!!! Detective Conan, is there. I am translating this game, and I spent an entire week to get the file structure and write a proper QuickBms script, ahhhh, wish I had the full pack earlier.
    Thanks a lot matey.
    Cheers.
     
    Last edited: Jul 11, 2014
  14. emuler

    emuler Rising Member

    Joined:
    May 23, 2014
    Messages:
    68
    Likes Received:
    12
    Sorry for not attending today, had some mad day but at least it seem this thread made it!

    @Kratos: Don't worry mate, I thank you a lot for your intention and effort for real. It isn't usual those hard days. Do you have some good tutorial
    for scripting? there's too much info chaos on xentax... Hope you have succes with Detective Conan!

    @SILENT_Pavel: you let me wordless, this is very useful! as it were made for me... hummm. I already knew Xpert (I shrinked 4gb iso Kenka Banchou
    to not much than 1gb with it) but never found plugins for it. Any way to do the same thing to the NTSC-J version for simple file swap? if not don't worry
    because as i said at first post, have interest in edit textures so i can change blond hairs instead. I recently got Optpix image studio (3.12a) and the tm2 files
    but didn't managed to open tm2 yet, how annoying i was like "finally!"... I don't even have the windows with the "search TEX" string from your last photo attachmet. I have it as compatible format in open file, but failed to read with RE:Outbreak/Code Veronica/Winning11 TM2. I know i'm doing something wrong, maybe this weekend have time to read well the help files, etc instead of crying here ;). There's a youtube video for indexing with Optix that may be the solution.

    And thanks again to the nice people who came to help me with this.

    PD: You're right with the title chosen for this thread, newbie mistake. Love this game and the first one too (wich have a weird file structure), there are so many
    good japan-only games, we were lucky that those came out to this side of the planet (not the 3rd release, for PSP).

    EDIT: have read well the last posts and saw the console texture explorer and some more info. Sorry it's late here, better to
    sleep and approach to this again tomorrow more relaxed.
     
    Last edited: Jul 11, 2014
  15. SILENT_Pavel

    SILENT_Pavel Gutsy Member

    Joined:
    Jun 23, 2012
    Messages:
    417
    Likes Received:
    163
    I'm too have video tutorial on youtube about TIM2 editing in GTA VCS on PS2, maybe will be helpful, take a look (will show how to work with ps2 studio under win 7):

     
    Last edited by a moderator: May 25, 2015
  16. emuler

    emuler Rising Member

    Joined:
    May 23, 2014
    Messages:
    68
    Likes Received:
    12
    YAY! Everything working now. The problem was i tried to load .bin multi-tm2 containers as raw tm2, and didn't pressed the button "Scan" `[facepalm]

    @Silent_Pavel: The plugin works flawlessly with ntsc-j too! it even extract other .dat files inside disc, allowing me reach all textures ingame. Thank you for all the tutorials, if you don't mind send you a PM about LBA when read it well.

    BTW, the japan version has a lot of unused content, even videos and scenes. Will be posting here, later.


    Regards.
     
    Last edited: Jul 13, 2014
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page