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.

[Need Help] Repack/rebuild sfc file with lz4 compress

Featured Replies

  • Author
  • Localization

nguyennk91, posted Sat Jan 28, 2023 1:50 pm (75190)


Hi team, I'm trying to write a rebuild/repack script to help with localization a qq game (Moonlight Blade).
I was able to unpack them, translate them, and now just need to repack since reimport will not work due to filesize different (Chinese is way shorter compare to Eng translated)
Would appreciate all the help I can get to get started.

Here is the script I used to unpack, not sure if that will help with creating the rebuild script or not
Code:
comtype lz4
idstring "SFC\x1a"
get VER long
get SFC_SIZE asize
for
    savepos TMP
    if TMP >= SFC_SIZE
        break
    endif
    getdstring DUMMY 8
    get ZSIZE long
    savepos OFFSET
    xmath TMP "OFFSET ZSIZE"
    goto TMP
    get SIZE long
    clog "" OFFSET ZSIZE SIZE
next
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.