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.

Bioshock 2

Featured Replies

  • Author
  • Localization

InKviZ, posted Tue Oct 27, 2015 12:37 pm (8978)


Hello. Help unpack and pack lbf archive the Bioshock 2.
  • Author
  • Localization

aluigi, posted Tue Oct 27, 2015 1:46 pm (8981)


I can give you 2 scripts that do the same but the first dumps the data "as-is" (suggested) while the second one converts unicode to utf8:

Code:
set MEMORY_FILE binary "\xff\xfe"
get LBF_SIZE asize
for OFFSET = 0 < LBF_SIZE

    get DATASZ variable2
    math DATASZ * 2
    getdstring DATA DATASZ
    set DATA unicode DATA
    set NAME string DATA

    get DATASZ variable2
    math DATASZ * 2
    savepos OFFSET

    log NAME 0 0
    append
    log NAME 0 2 MEMORY_FILE
    math DATASZ - 2
    log NAME OFFSET DATASZ
    math DATASZ 2
    append

    math OFFSET DATASZ
    goto OFFSET
next


Code:
get LBF_SIZE asize
for TMP_OFF = 0 < LBF_SIZE
    callfunction GET_DATA 1
    set NAME string DATA
    callfunction GET_DATA 1
    savepos TMP_OFF

    log MEMORY_FILE 0 0
    putct DATA string -1 MEMORY_FILE
    get SIZE asize MEMORY_FILE
    log NAME 0 SIZE MEMORY_FILE
next

startfunction GET_DATA
    get DATASZ variable2
    math DATASZ * 2
    getdstring DATA DATASZ
    set DATA unicode DATA
endfunction
  • Author
  • Localization

InKviZ, posted Tue Oct 27, 2015 3:56 pm (8989)


Thank you for help. But somehow the scripts are not working.
  • Author
  • Localization

InKviZ, posted Tue Oct 27, 2015 4:07 pm (8990)


On the internet I found unrollers for the first part, and the unpacked archive. There was one file. Now we need someone to help export and import text from a file. Text file attached.
  • Author
  • Localization

aluigi, posted Tue Oct 27, 2015 7:44 pm (8999)


Open it with a hex editor and add the bytes 0xff 0xfe at the beginning.
The first script I pasted does this operation automatically when extracting the files.
  • Author
  • Localization

Graveyard, posted Fri Mar 30, 2018 10:19 am (33665)


solution to reimport files?
  • Author
  • Localization

Hexaae, posted Thu Feb 28, 2019 1:17 pm (45384)


.
How to rebuild original .lbf from extracted files?
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.