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.
Zero Tolerance for Disrespect

Need Help – Atlas Fallen: Extracting and Repacking .toc / .dat Files

Featured Replies

Solved by Ekey

  • Localization
  • Solution
# Atlas Fallen (Fledge Engine)
# script for QuickBMS http://quickbms.aluigi.org

comtype lz4f
open FDDE "toc"
get DUMMY long
get SOME_CRC long
callfunction GET_INFO 1
get SIZE long
endian big

get SOME_CRC long
callfunction GET_INFO 1

get SOME_CRC long
callfunction GET_INFO 1

callfunction GET_INFO 1
get DUMMY byte  # 1
get DUMMY byte  # 1
get DUMMY byte  # 1
get DUMMY long  # 1
get FILES long

string NAME p "%s_%d.dat" NAME 0
open FDSE NAME 1

for i = 0 < FILES
    get SOME_CRC long
    callfunction GET_INFO 1
    get OFFSET longlong
    get ZSIZE long
    get SIZE long
    get DUMMY long
    get DUMMY long
    get DUMMY short
    clog NAME OFFSET ZSIZE SIZE 1
next i

startfunction GET_INFO
    get ZERO long
    get DUMMY long
    savepos TMP
    get NAMESZ long
    if NAMESZ & 0x80000000
        math NAMESZ & 0x7fffffff
    endif
    getdstring NAME NAMESZ
    padding 4 0 TMP
endfunction

 

On 11/6/2025 at 6:10 PM, Ekey said:
# Atlas Fallen (Fledge Engine)
# script for QuickBMS http://quickbms.aluigi.org

comtype lz4f
open FDDE "toc"
get DUMMY long
get SOME_CRC long
callfunction GET_INFO 1
get SIZE long
endian big

get SOME_CRC long
callfunction GET_INFO 1

get SOME_CRC long
callfunction GET_INFO 1

callfunction GET_INFO 1
get DUMMY byte  # 1
get DUMMY byte  # 1
get DUMMY byte  # 1
get DUMMY long  # 1
get FILES long

string NAME p "%s_%d.dat" NAME 0
open FDSE NAME 1

for i = 0 < FILES
    get SOME_CRC long
    callfunction GET_INFO 1
    get OFFSET longlong
    get ZSIZE long
    get SIZE long
    get DUMMY long
    get DUMMY long
    get DUMMY short
    clog NAME OFFSET ZSIZE SIZE 1
next i

startfunction GET_INFO
    get ZERO long
    get DUMMY long
    savepos TMP
    get NAMESZ long
    if NAMESZ & 0x80000000
        math NAMESZ & 0x7fffffff
    endif
    getdstring NAME NAMESZ
    padding 4 0 TMP
endfunction

 

Ekey can I show something, please, about the script you wrote? The script works well for exporting, but when importing a larger file, the game breaks. Could you please fix it?

Create an account or sign in to comment

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.