ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Jan 26, 2021 10:54 am

All times are UTC




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Dec 01, 2020 2:17 am 
User avatar

Joined: Fri Apr 20, 2018 12:41 am
Posts: 753
The format is super simple. Language separation is internallly called though...

Code:
Repeating per text
1byte: 00
2byte: Bytesize of text
?bytes: UTF-8 text


Oh and I kinda wrote a script that eventually dies, can someone fix it if possible?

Code:
get NAME basename
string NAME + ".txt"
get asize asize

savepos curr

for curr = curr < asize
   # Dump the strings
   get dummy byte
   get strSize byte
   if strSize >= 128
      get strSize2 byte
      xmath strSize "strSize + (strSize2 - 1) * 128"
   endif
   savepos curr
   slog NAME curr strSize
   getdstring temp strSize
   savepos curr
next


Attachments:
l.bin [119.34 KiB]
Downloaded 28 times

_________________
Hacking Angry Birds since 2016
Top
   
PostPosted: Tue Dec 01, 2020 11:07 am 

Joined: Mon Mar 09, 2020 3:14 pm
Posts: 21
Big Endian
Code:
get NAME basename
string NAME + ".txt"
get asize asize
endian big
savepos curr

for curr = curr < asize
   # Dump the strings

   get strSize short

   savepos curr
   slog NAME curr strSize
   getdstring temp strSize
   savepos curr
next


Top
   
PostPosted: Tue Dec 01, 2020 5:06 pm 
User avatar

Joined: Fri Apr 20, 2018 12:41 am
Posts: 753
Thanks, it works perfectly.

_________________
Hacking Angry Birds since 2016


Last edited by LolHacksRule on Wed Dec 02, 2020 5:16 pm, edited 1 time in total.

Top
   
PostPosted: Wed Dec 02, 2020 5:13 am 
User avatar

Joined: Fri Apr 20, 2018 12:41 am
Posts: 753
13 *: in bytes are internally indicators for the below. Replace "*" with the number.
"1:" appears to be black (plain) text.
"2:" appears to be bold text.
"3:" appears to be the header (?), similar to "2".
"4:" appears to be the pink bold.

_________________
Hacking Angry Birds since 2016


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