ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sun Oct 22, 2017 1:41 pm

All times are UTC




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Apr 26, 2017 4:09 pm 

Joined: Tue Apr 21, 2015 2:15 pm
Posts: 26
export .msbt files from content\Pack\Bootup_EUen.pack(SARC)

Use this script to export .txt
Code:
endian big
//header 0x20
idstring "MsgStd"
get unk short
get encoding short // feff UTF-16
get unk long
get unk long
get FSIZE long
get unk long
get unk long
get unk short

//ATR1
goto 0x00
FindLoc OFFSET string "ATR1"
goto OFFSET
idstring "ATR1"
get BODYSIZE long
get unk longlong
get count long
get unk long

//LBL1 - file names
goto 0x00
FindLoc OFFSET string "LBL1"
goto OFFSET
idstring "LBL1"
get BODYSIZE long
get unk longlong
get Ecount long

for i = 0 < Ecount
get unk long
get unk long
next i

putarray 0 count 0
for i = 0 < count
get size byte
GetDString FileName size
get IDX long
putarray 0 IDX FileName // 0 - filenames array with correct order
next i

//TXT2 - text
goto 0x00
FindLoc OFFSET string "TXT2"
goto OFFSET
idstring "TXT2"
get BODYSIZE long
get unk longlong

get Tcount long
putarray 1 Tcount 0
for i = 0 < Tcount
get TextOffset long
putarray 1 i TextOffset // 1 - array with text offsets
next i

putarray 1 i BODYSIZE // add end of text offset to math size later

//text
math OFFSET + 0x10
log MEMORY_FILE OFFSET BODYSIZE

//output
for i = 0 < count
get PATH basename
string PATH += /
getarray NAME 0 i
string NAME + .txt
string PATH + NAME
getarray TextOffset 1 i
math i + 1
getarray TextOffset2 1 i
math i - 1
Xmath SIZE "TextOffset2 - TextOffset"

set MEMORY_FILE2 binary "\xfe\xff"
append
log MEMORY_FILE2 TextOffset SIZE MEMORY_FILE
append
get SIZE asize MEMORY_FILE2

log PATH 0 SIZE MEMORY_FILE2

next i


Attachments:
msbt.bms [2.97 KiB]
Downloaded 43 times
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

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