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.

Agarest: Generations of War 2 (PC, 2015) - *.bra

Featured Replies

  • Author
  • Localization

AlphaTwentyThree, posted Mon Mar 02, 2015 3:37 pm (3572)


Hi!

Just wrote a little script for the game's archives that I want to share with you. :)

Code:
# extracts the *.bra archives from "Agarest: Generations of War 2 (PC, 2015)"
# (c) 2015-03-02 by AlphaTwentyThree of ZenHax
# script for QuickBMS http://quickbms.aluigi.org

comtype deflate
idstring "PDA"
goto 0x8
get INFO long
get SIZE asize
math SIZE -= INFO
   putVarChr MEMORY_FILE SIZE 0
   log MEMORY_FILE 0 0
   append
   log MEMORY_FILE INFO SIZE
   append
   get FOLDER basename
   get FSIZE asize MEMORY_FILE
goto 0 MEMORY_FILE
do
   get UNK longlong MEMORY_FILE # crc/md5?
   get CSIZE long MEMORY_FILE
   get SIZE long MEMORY_FILE
   get NAMEL short MEMORY_FILE
   get UNK short MEMORY_FILE
   get OFFSET long MEMORY_FILE
   getDstring NAME NAMEL MEMORY_FILE
   math CSIZE -= 0x10
   math OFFSET = 0x10
   savepos MYOFF MEMORY_FILE
   math MYOFF x= 4
   goto MYOFF MEMORY_FILE
   string NAME p= "%s/%s" FOLDER NAME
   if   SIZE == CSIZE
      log NAME OFFSET CSIZE
   else
      clog NAME OFFSET CSIZE SIZE
   endif
while MYOFF
  • Author
  • Localization

Ponkoz, posted Thu Mar 24, 2016 7:36 am (12225)


Thx to AlphaTwentyThree
I can extract .bra files of the way of samurai 3 published Ghostlight:)
But I need repack files to Bra container. if have any idea, it`ll help us :oops:
  • Author
  • Localization

Savage, posted Thu Mar 24, 2016 4:25 pm (12237)


For me the .bra are a ofuscated zips, what we need is a zip2bra, the main .exe checks the files .bra and the crc of the .bra, i tried a simple method creating a zip and renamed to .bra of course didn't worked.

If you try to modify the main exe (to bypass the .bra check) it crashes, well, it crashed to me.

The bms doesn't worked for me to reimport data
  • Author
  • Localization

Ponkoz, posted Fri Mar 25, 2016 3:14 am (12247)


Thank for giving advise Savege.

Just as you say, I rewrite the main .exe binary even a little, it crash.
So I'm trying replacing the contents of the file .bra.
In my opinion, the main .exe doesn't check the crc of the .bra, only existence of the files.

The bms written by AlphaTwentyThree work definitely the .bra files of the way of samurai 3.
& extract enormously many files about 5500. :oops:

It's difficult to re-compression the .bra `cause "ofuscated" compression.
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.