ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Sep 17, 2019 3:31 pm

All times are UTC




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Aug 15, 2019 7:49 am 

Joined: Fri Feb 12, 2016 11:53 am
Posts: 11
Texts are most likely located in the .ff files of "english" folder. There are few examples in the attachments.


Attachments:
english.rar [459.06 KiB]
Downloaded 38 times
Top
   
PostPosted: Mon Aug 26, 2019 10:38 am 

Joined: Thu Oct 16, 2014 4:39 pm
Posts: 201
Try these scripts. Use both on the ff file.
Export
Code:
comtype lz4
get name basename
string name += ".dump"
log name 0 0
goto 56
get asize asize
do
   get zsize long
   get size long
   savepos offset
   append
   clog name offset zsize size
   append
   math offset += zsize
   goto offset
   padding 4
   savepos offset
while offset < asize

Import
Code:
comtype lz4_compress
get name basename
set newname name
string newname += ".new"
string name += ".dump"
open FDSE name 1
log MEMORY_FILE1 0 56
get masize asize MEMORY_FILE1
goto masize MEMORY_FILE1
get asize asize 1
xmath mod "asize%65536"
set odd 0
if mod != 0
set odd 1
endif
xmath files "asize/65536"
set offset 0
for i = 1 to files
   log MEMORY_FILE2 0 0
   clog MEMORY_FILE2 offset 65536 65536 1
   math offset += 65536
   get zasize asize MEMORY_FILE2
   put zasize long MEMORY_FILE1
   put 65536 long MEMORY_FILE1
   get masize asize MEMORY_FILE1
   goto masize MEMORY_FILE1
   append
   log MEMORY_FILE1 0 zasize MEMORY_FILE2
   append
   set pad zasize
   math pad x= 4
   math pad -= zasize
   for p = 0 < pad
      put 0x00 byte MEMORY_FILE1
   next p
next i
if odd == 1
xmath size "asize-offset"
log MEMORY_FILE2 0 0
clog MEMORY_FILE2 offset size size 1
math offset += size
get zasize asize MEMORY_FILE2
put zasize long MEMORY_FILE1
put size long MEMORY_FILE1
get masize asize MEMORY_FILE1
goto masize MEMORY_FILE1
append
log MEMORY_FILE1 0 zasize MEMORY_FILE2
append
set pad zasize
math pad x= 4
math pad -= zasize
for p = 0 < pad
   put 0x00 byte MEMORY_FILE1
next p
endif
get masize asize MEMORY_FILE1
putVarChr MEMORY_FILE1 28 masize longlong
putVarChr MEMORY_FILE1 36 masize longlong
putVarChr MEMORY_FILE1 44 asize longlong
log newname 0 masize MEMORY_FILE1

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


Top
   
PostPosted: Tue Aug 27, 2019 4:11 pm 

Joined: Fri Feb 12, 2016 11:53 am
Posts: 11
Hey, thanks! The export script works, but it exports text with a lot of gibberish parts. (probably normal?)
After editing even a single character and importing it, the game crashes. Do you have any idea?


Top
   
PostPosted: Tue Aug 27, 2019 8:58 pm 

Joined: Thu Oct 16, 2014 4:39 pm
Posts: 201
No i don't. You need to wait other tools.

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


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