ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sat Nov 16, 2019 9:28 pm

All times are UTC




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Fri Apr 26, 2019 7:13 pm 
User avatar

Joined: Fri Apr 20, 2018 12:41 am
Posts: 372
I want to view the XLC file from Angry Birds: Transformers (I don't have a sample from ABGO), but it's mostly binary with plaintext values, how to edit and/or convert to plaintext and back?


Attachments:
File comment: Remove .txt.
locdb.xlc.txt [1.68 MiB]
Downloaded 34 times


Last edited by LolHacksRule on Thu Aug 15, 2019 4:21 am, edited 2 times in total.
Top
   
PostPosted: Wed Jun 05, 2019 10:37 pm 

Joined: Thu Oct 16, 2014 4:39 pm
Posts: 204
You can unpack it with this Quickbms script.
Code:
goto 8
get unk long
get files long
xmath pos "24 + unk * 4"
goto pos
xmath offset "files * 8 + 24 + unk * 4"
for i = 1 to files
get size long
get unk long
log "" offset size
math offset += size
next i


Text are null terminated, so replace 0x00 with 0x0d0a, then back if you finish.
For unicode files 0x0000 with 0x0d000a00.
Keep size same or less, so you can reimport.

_________________
Texttool sources: viewtopic.php?f=12&t=645


Last edited by swuforce on Sun Jun 09, 2019 2:56 pm, edited 2 times in total.

Top
   
PostPosted: Thu Jun 06, 2019 9:47 pm 
User avatar

Joined: Fri Apr 20, 2018 12:41 am
Posts: 372
THANK YOU SO MUCH! That makes it more easier to be able to datamine these files! I'll also credit you for the script on my Angry Birds Modding Hub Discord when it eventually comes out! I'll try ABGO's XLC later and see if that works. I analyzed this file's binary data before, I already knew the nulls split data. UPDATE: ABGO's works fine too!, next is ABT (China), there's an issue with that one, the files outputted are incomplete or wrongfully split and QuickBMS threw this error:
Code:
  offset   filesize   filename
--------------------------------------
  00000070 240526     00000000.dat
  0003abfe 97580      00000001.dat
  0005292a 269542     00000002.dat
  00094610 277392     00000003.dat
  000d81a0 263742     00000004.dat
  001187de 133806     00000005.dat
  0013928c 260982     00000006.dat
  00178e02 250242     00000007.dat
  001b5f84 271090     00000008.dat
  001f8276 4522070    00000009.dat

Error: incomplete input file 0: abtchina\locdb.xlc
       Can't read 396926 bytes from offset 002173f8.
       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    99%   2192348    2192376    . offset 002173f8

Last script line before the error or that produced the error:
  8   log "" offset size


When looking at the file, it has null bytes after a single text character meaning it is a Unicode version of the file!


Attachments:
ExtractedFiles.zip [516.25 KiB]
Downloaded 18 times
File comment: Here's the file.
locdb_ABTCHINA.xlc.txt [2.09 MiB]
Downloaded 21 times
Top
   
PostPosted: Sun Jun 09, 2019 2:56 pm 

Joined: Thu Oct 16, 2014 4:39 pm
Posts: 204
Try now.

_________________
Texttool sources: viewtopic.php?f=12&t=645


Top
   
PostPosted: Sun Jun 09, 2019 4:02 pm 
User avatar

Joined: Fri Apr 20, 2018 12:41 am
Posts: 372
00000002.dat, 00000008.dat, 00000006.dat have garbage outputted, the new script kinda worked though...


Attachments:
ExtDATs.zip [479.42 KiB]
Downloaded 22 times
Top
   
PostPosted: Mon Jun 10, 2019 9:20 am 

Joined: Thu Oct 16, 2014 4:39 pm
Posts: 204
If you can't force unicode encoding to them, just insert 0xFFFE before these files.
But don't forget to remove, when reimport.

_________________
Texttool sources: viewtopic.php?f=12&t=645


Top
   
PostPosted: Mon Jun 10, 2019 5:30 pm 
User avatar

Joined: Fri Apr 20, 2018 12:41 am
Posts: 372
Ok then, thanks so much.


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