ZenHAX

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

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Attack on titan (text)
PostPosted: Tue Dec 15, 2020 7:51 am 

Joined: Wed Jun 17, 2020 1:12 pm
Posts: 70
Is there a way to edit these ?


Attachments:
0000000000000c1b.dat [4.77 KiB]
Downloaded 45 times
Top
   
PostPosted: Tue Dec 15, 2020 5:26 pm 

Joined: Sun Nov 08, 2020 1:07 pm
Posts: 26
yusuf2020 wrote:
Is there a way to edit these ?

here 2 script I created for export and import text for your file
before start anything test it
For Export
Code:
get text_num long
get NAME basename
STRING NAME + ".txt"
for i = 0 < text_num
   get OFFSET long
   get SIZE long
   math SIZE - 1
   Slog NAME OFFSET SIZE
next i

For Import
Code:
open FDDE "dat" 1
get text_num long 1
math OFFSET_ADD = 0
for i = 0 < text_num
   savepos befor_check 1
   get OFFSET long 1
   if OFFSET != nex_offset
      if SIZE < new_size
         xmath OSIZE "new_size - SIZE"
         math OFFSET_ADD + OSIZE
      elif SIZE > new_size
         xmath OSIZE "SIZE - new_size"
         math OFFSET_ADD - OSIZE
      endif
   endif
   math OFFSET + OFFSET_ADD
   get SIZE long 1
   get Tline line
   goto OFFSET 1
   savepos offset_new 1
   PutCT Tline string -1 1
   put 0x00 byte 1
   savepos nex_offset 1
   xmath new_size "nex_offset - OFFSET"
   goto befor_check 1
   put offset_new long 1
   put new_size long 1
next i

Export your dat file with Export script
For Import text back you need to run Import script with -w (for enable the write mode) commend in QuickBMS and select txt file (its overwrite original dat file)
If you don't know how to do it, use this bat file for import:
Code:
quickbms.exe -G -w


Attachments:
AttackOnTitan_import.bms [620 Bytes]
Downloaded 25 times
AttackOnTitan_export.bms [181 Bytes]
Downloaded 29 times
Top
   
PostPosted: Tue Dec 15, 2020 5:50 pm 

Joined: Wed Jun 17, 2020 1:12 pm
Posts: 70
Thanks!
Now, I will try to import this to bin file back.


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