ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Thu Oct 29, 2020 8:07 pm

All times are UTC




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Sat Oct 17, 2020 4:30 am 
User avatar

Joined: Fri Apr 20, 2018 12:41 am
Posts: 698
Gameloft's LZMA archives got a recent tool a while back after most of Sonic Unleashed's data was figured out, so I attempted to use it on Ice Age Village, but it didn't work, I then used the LZMA QuickBMS script to get a mess of data and eventually got these binary localization data files. I attempted to crack the binary format, if anyone wants to write a script, please do so, repacking is still going to be a pain.

Code:
STRING ID DATA:
1byte: 00
?bytes: String ID bytesize
?bytes: String ID
1byte: 00
TEXT DATA:
?bytes: Text string bytesize
?bytes: Text string

Eventually ends with 0000001C


Attachments:
File comment: CDN/EXTDATA
IceAgeVillageFinalCDNTextFiles_AND.zip [4.97 MiB]
Downloaded 23 times
File comment: APK
IceAgeVillageFinalBaseTextFiles_AND.zip [1.26 MiB]
Downloaded 22 times

_________________
Hacking Angry Birds since 2016
Top
   
PostPosted: Sat Oct 17, 2020 5:30 am 
User avatar

Joined: Sat Sep 15, 2018 5:22 am
Posts: 335
here a script
Code:
get FILE_NAMER filename
string FILE_NAMER + ".txt"
endian big
for i
savepos CURRENT_LOCATION
get OVER_SIZE asize
xmath REST_SIZE "OVER_SIZE - CURRENT_LOCATION"

if REST_SIZE < 4
cleanexit
endif

get ID_TEXT_LENGTH short
getdstring ID_TEXT ID_TEXT_LENGTH

get TEXT_LENGTH short
savepos TEXT_OFFSET
slog FILE_NAMER TEXT_OFFSET TEXT_LENGTH
getdstring TEXT TEXT_LENGTH

get SECTION_NUMBER long
next i


Last edited by Shokoniraya on Sun Oct 18, 2020 2:00 am, edited 2 times in total.

Top
   
PostPosted: Sat Oct 17, 2020 8:03 pm 
User avatar

Joined: Fri Apr 20, 2018 12:41 am
Posts: 698
Thank you so much.

_________________
Hacking Angry Birds since 2016


Top
   
PostPosted: Sat Oct 17, 2020 8:32 pm 
User avatar

Joined: Fri Apr 20, 2018 12:41 am
Posts: 698
UPDATE: Minor problem with CDN (ENGLISH). Please double check unless you don't plan to fix.

Code:
Error: incomplete input file 0: C:\Users\LolHacksRule\Desktop\Android\Apps\Gameloft\IceAgeVillage\assets_ext\22000\00000000.dat
       Can't read 2 bytes from offset 00101c72.
       Anyway don't worry, it's possible that the BMS script has been written
       to exit in this way if it's reached the end of the archive so check it
       or contact its author or verify that all the files have been extracted.
       Please check the following coverage information to know if it's ok.

  coverage file 0   151%   1599157    1055858    . offset 00101c72

Last script line before the error or that produced the error:
  5   get ID_TEXT_LENGTH short

_________________
Hacking Angry Birds since 2016


Top
   
PostPosted: Sun Oct 18, 2020 1:58 am 
User avatar

Joined: Sat Sep 15, 2018 5:22 am
Posts: 335
test it again


Top
   
PostPosted: Sun Oct 18, 2020 4:19 am 
User avatar

Joined: Fri Apr 20, 2018 12:41 am
Posts: 698
Thanks but would it be possible to dump string IDs along with the strings?

_________________
Hacking Angry Birds since 2016


Top
   
PostPosted: Fri Oct 23, 2020 9:31 am 
User avatar

Joined: Sat Sep 15, 2018 5:22 am
Posts: 335
LolHacksRule wrote:
Thanks but would it be possible to dump string IDs along with the strings?

quickbms is not a xml importer or ini importer, it just export and import raw text


Top
   
PostPosted: Fri Oct 23, 2020 5:56 pm 
User avatar

Joined: Fri Apr 20, 2018 12:41 am
Posts: 698
Dang that works then I guess

_________________
Hacking Angry Birds since 2016


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 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