ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Mon Aug 26, 2019 7:35 am

All times are UTC




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed May 15, 2019 1:07 pm 

Joined: Sat Dec 22, 2018 10:03 am
Posts: 35
It looks like PC tools and bms script are not 100% compatible with Switch archives (it can only read name of first file).
Uploaded one of archives.

Can someone check what needs to be modified?


Attachments:
vehicles_preload.zip [2.31 MiB]
Downloaded 10 times
Top
   
PostPosted: Sat Jun 01, 2019 9:58 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10569
It's not so simple because:
- OFFSET and ZSIZE fields (probably SIZE too) aren't exact, it's necessary to make some math operations on them
- it's not a correct zlib compression

Currently I leave here my work-in-progress script in case someone has more information:
Code:
goto 0x154
get FILES long
get ARCHIVE_SIZE long
get INFO_SIZE long
get NAMES_SIZE long
get DUMMY long
get DATA_SIZE long
padding 0x800
savepos INFO_OFF
xmath NAMES_OFF "INFO_OFF + INFO_SIZE"
math NAMES_OFF x 0x800
xmath BASE_OFF  "NAMES_OFF + NAMES_SIZE"
math BASE_OFF x 0x800
for i = 0 < FILES
    get NAME_OFF long
    get ZERO long
    get ZERO long
    get OFFSET long
    get SIZE long
    get ZSIZE long
    get ZERO long
    get ZERO long

    savepos TMP
    math NAME_OFF + NAMES_OFF
    goto NAME_OFF
    get NAME string
    goto TMP

    math ZSIZE + 5  # necessary but doesn't have sense...

    math OFFSET >> 2
    math OFFSET + BASE_OFF
    clog NAME OFFSET ZSIZE SIZE
next i


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited