Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

.bin Graphic File (Help)

Featured Replies

  • Author
  • Localization

artbarot, posted Wed Feb 12, 2020 2:49 pm (53959)


Hello everyone

I need help with the extraction and convertion of this file "COIN.BIN".

https://mega.nz/#F!pIswUAjZ!SI_ZLhtU7Kmo1sOFt2K9pA

I believe you use use a BMS script(choro.BMS) to split "COIN.BIN" into 1 and 2, which are model information in 1.dat and texture information on 2.dat. I request help on figuring out 2.dat.

thank you in advance

eddit 2: Thank you so much allen

Trying to understand 3 files left .E3d (2 files) and title.GSL
  • Author
  • Localization

Allen, posted Fri Feb 21, 2020 4:18 am (54130)


Received your email. I checked the file. Actually 1.dat contains some textures. I didn't find any textures in 2.dat. 2.dat should be a model file with a lot of floating point numbers in it.
Then I found out that textures are not fixed in a certain file. There is a sign that identifies it.

This is a Noesis script.

UPD: Add support 0x1040,0x1087
UPD2:Optimize the code

tex_RoadTripAdventure_ps2_dat.zip

  • Author
  • Localization

artbarot, posted Fri Feb 21, 2020 2:15 pm (54135)


This is amazing, thank you! I was almost losing motivation and going with a emulator ripping way but this changed it.

Are you sure about the comment for the 1 and 2.dat? https://imgur.com/a/9y8iMSa

"I found out that textures are not fixed in a certain file" do you mean they always start after some constant value ~(tim header)?
if idstring!=0x1012:
  • Author
  • Localization

Allen, posted Fri Feb 21, 2020 2:57 pm (54137)


artbarot wrote:
This is amazing, thank you! I was almost losing motivation and going with a emulator ripping way but this changed it.

Are you sure about the comment for the 1 and 2.dat? https://imgur.com/a/9y8iMSa

"I found out that textures are not fixed in a certain file" do you mean they always start after some constant value ~(tim header)?
if idstring!=0x1012:

After analyzing the current sample, yes.
This is an improved script that helps you identify textures (_tex) when extracting bin files.
Code:
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

get BIN_SIZE asize
get FOLDER basename
math i = 1
for i
   get OFFSET long
   savepos TMP
   if OFFSET == BIN_SIZE
      break
   endif
   get NEXT_OFFSET long
   xmath SIZE "NEXT_OFFSET - OFFSET"
   math tempOfs = OFFSET
   math tempOfs 2
   goto tempOfs
   get type SHORT
   If type == 0x1012
      string NAME p "%s\%d_tex.dat" FOLDER i
   #You can continue to add other types here, according to your needs.
   #Elif type == 0x1000
   #   string NAME p "%s\%d_xxx.dat" FOLDER i
   #Elif type == 0xXXXX
   #   string NAME p "%s\%d_xxxx.mod" FOLDER i     
   Else
      string NAME p "%s\%d.dat" FOLDER i
   Endif
   log NAME OFFSET SIZE
   goto TMP
next i
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.