ZenHAX
https://zenhax.com/

Ice Age Village (*.LANG internally)
https://zenhax.com/viewtopic.php?f=12&t=14270
Page 1 of 1

Author:  LolHacksRule [ Sat Oct 17, 2020 4:30 am ]
Post subject:  Ice Age Village (*.LANG internally)

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 9 times
File comment: APK
IceAgeVillageFinalBaseTextFiles_AND.zip [1.26 MiB]
Downloaded 8 times

Author:  Shokoniraya [ Sat Oct 17, 2020 5:30 am ]
Post subject:  Re: Ice Age Village (*.LANG internally)

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

Author:  LolHacksRule [ Sat Oct 17, 2020 8:03 pm ]
Post subject:  Re: Ice Age Village (*.LANG internally)

Thank you so much.

Author:  LolHacksRule [ Sat Oct 17, 2020 8:32 pm ]
Post subject:  Re: Ice Age Village (*.LANG internally)

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

Author:  Shokoniraya [ Sun Oct 18, 2020 1:58 am ]
Post subject:  Re: Ice Age Village (*.LANG internally)

test it again

Author:  LolHacksRule [ Sun Oct 18, 2020 4:19 am ]
Post subject:  Re: Ice Age Village (*.LANG internally)

Thanks but would it be possible to dump string IDs along with the strings?

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/