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

Sacred Legend Online

Featured Replies

  • Author
  • Localization

CriticalError, posted Mon Aug 25, 2014 1:47 pm (286)


Image
Image

Hello, well as far remember aluigi do this unpacker for IDX files, so my question is if possible update it? the new files no work with this old bms script, maybe can take a look into this files to update this old bms script? well I hope yes many thanks to all community for all support and in special to aluigi for this fully support.

Quote:
#quickbms sript
#???? Online
#http://ff.x-legend.com.tw/#
open FDSE pkg.idx
get files asize
math files - 0x124
math files / 0x250
goto 0x124
for i = 0 get FILENUM long
get OFFSET long
get unk02 long
get ZSIZE long
get unk04 long
get unk05 long
get unk06 long
get unk07 long
get unk08 long
get unk09 long
get unk10 long
get unk11 long
get unk12 long
get unk13 long
get SIZE long
getdstring file 0x104
getdstring NAME 0x108
string NAME file
get packfile long
get unk15 long
if packfile set pname 0x3030
string pname = pname
string pname packfile
set var string "pkg"
string var pname
string var ".pkg"
open FDSE var 1
elif packfile set pname 0x30
string pname = pname
string pname packfile
set var string "pkg"
string var pname
string var ".pkg"
open FDSE var 1
elif packfile set pname ""
string pname packfile
set var string "pkg"
string var pname
string var ".pkg"
open FDSE var 1
endif
if ZSIZE != SIZE
clog NAME OFFSET ZSIZE SIZE 1
else
log NAME OFFSET ZSIZE 1
endif
next i


Samples

http://puu.sh/b7ghw/5ea9eb7339.7z
  • Author
  • Localization

aluigi, posted Mon Aug 25, 2014 3:39 pm (288)


That IDX doesn't contain information about the PKG data files you provided.
For example the first packfile is 9 inside the IDX.
Anyway I see no problems in that script, the OFFSET, ZSIZE and SIZE fields seem correct.
  • Author
  • Localization

aluigi, posted Mon Aug 25, 2014 4:55 pm (291)


Ok it helps.

In my opinion the KFM files are encrypted/obfuscated.
I have checked it and from offset 0x38FB6D of package 323 there is no zlib data, so more than half archive is probbaly encrypted.

I leave here a script that does the same things of the one you posted but is lot shorter, just in case someone wants to edit it:
Code:
math OFFSET = 0x124
open FDSE pkg.idx
get files asize
math files - OFFSET
math files / 0x250
goto OFFSET
math MYPACKFILE = -1
for i = 0 < files
    get FILENUM long
    get OFFSET long
    get unk02 long
    get ZSIZE long
    getdstring DUMMY 40
    get SIZE long
    getdstring file 0x104
    getdstring NAME 0x108
    string NAME file
    get packfile long
    get unk15 long

    if PACKFILE != MYPACKFILE
        string PCK p= "pkgd.pkg" PACKFILE
        open FDSE PCK 1
        math MYPACKFILE = PACKFILE
    endif
    if ZSIZE != SIZE
        clog NAME OFFSET ZSIZE SIZE 1
    else
        log NAME OFFSET ZSIZE 1
    endif
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.