Page 2 of 2

Re: [Help] Blades of Time

Posted: Tue May 08, 2012 8:45 am
by lostprophet
swuforce wrote:I think the font file supports many characters, so its not necessary to edit it. http://oi45.tinypic.com/2nvquft.jpg

Btw i cant do anything with the fonts.
It's a bit weird. Last time I got * characters where the รกรบรณ and other foreign characters should be.
Well, I'll try it again, when I get home.

Re: [Help] Blades of Time

Posted: Tue May 08, 2012 8:50 am
by Delacroix
swuforce, what did you use to edit the CSV's and how did you save them? I get a feeling it's all about the coding.

Re: [Help] Blades of Time

Posted: Tue May 08, 2012 9:38 am
by lostprophet
Delacroix wrote:swuforce, what did you use to edit the CSV's and how did you save them? I get a feeling it's all about the coding.
I tried Office 2010, but maybe that's the problem. I never use it, but it's a bit nicer, than to look on endless lines. I'll try it with Notepad++.

Re: [Help] Blades of Time

Posted: Tue May 08, 2012 11:00 pm
by vitoci
swuforce wrote:There is a method to edit the language files

Use Offzip to decompress the bot.vromfs.bin file.
offzip.exe bot.vromfs.bin bot.vromfs.bin.dec 0x10

Unpack the decompressed file with this script(bot.vromfs.bin.dec).

Code: Select all

goto 0x8
get BASE_OFF long
get FILES long
for i = 0 < FILES
get NAMEOFF long
savepos OFF
goto NAMEOFF
get NAME string
goto BASE_OFF
get OFFSET long
get SIZE long
savepos BASE_OFF
log NAME OFFSET SIZE
goto OFF
next i
Keep the language files and delete the others.
Edit the text, but the file size must be equal or less, so i suggest to delete some lines from other langs.
Use quickbms to reimport the edited files to bot.vromfs.bin.dec
Compress the .dec file with zlibc.
zlibc.exe -k bot.vromfs.bin.dec bot.vromfs.bin.cmp

Check the .cmp file size and convert it to hexadecimal. eg use this site
1970886 --> 1E12C6

Open the .cmp and the original .bin with hex editor.
Copy the first 16 bytes from the original file, and paste it at the beginning of the .cmp file.
Edit the compressed size 0xC position, watch the endianess.
Image

Copy .cmp file to gamedir and rename to orig, backup original file.


You can try it if want
http://i48.tinypic.com/2m6shlt.jpg

Script Dont work error 800A0400, help please!

Re: [Help] Blades of Time

Posted: Wed May 09, 2012 8:31 am
by lostprophet
vitoci wrote:
swuforce wrote:There is a method to edit the language files

Use Offzip to decompress the bot.vromfs.bin file.
offzip.exe bot.vromfs.bin bot.vromfs.bin.dec 0x10

Unpack the decompressed file with this script(bot.vromfs.bin.dec).

Code: Select all

goto 0x8
get BASE_OFF long
get FILES long
for i = 0 < FILES
get NAMEOFF long
savepos OFF
goto NAMEOFF
get NAME string
goto BASE_OFF
get OFFSET long
get SIZE long
savepos BASE_OFF
log NAME OFFSET SIZE
goto OFF
next i
Keep the language files and delete the others.
Edit the text, but the file size must be equal or less, so i suggest to delete some lines from other langs.
Use quickbms to reimport the edited files to bot.vromfs.bin.dec
Compress the .dec file with zlibc.
zlibc.exe -k bot.vromfs.bin.dec bot.vromfs.bin.cmp

Check the .cmp file size and convert it to hexadecimal. eg use this site
1970886 --> 1E12C6

Open the .cmp and the original .bin with hex editor.
Copy the first 16 bytes from the original file, and paste it at the beginning of the .cmp file.
Edit the compressed size 0xC position, watch the endianess.
Image

Copy .cmp file to gamedir and rename to orig, backup original file.


You can try it if want
http://i48.tinypic.com/2m6shlt.jpg

Script Dont work error 800A0400, help please!
Script perfectly works for extract and repack too! Use the latest QuickBMS from aluigi!

Re: [Help] Blades of Time

Posted: Wed May 09, 2012 6:22 pm
by delutto
lostprophet wrote:
Delacroix wrote:swuforce, what did you use to edit the CSV's and how did you save them? I get a feeling it's all about the coding.
I tried Office 2010, but maybe that's the problem. I never use it, but it's a bit nicer, than to look on endless lines. I'll try it with Notepad++.
Excel saves in ANSI format, original is UTF8, use only Notepad++ and the translation will work perfectly.

Re: [Help] Blades of Time

Posted: Wed May 09, 2012 7:04 pm
by Delacroix
Thanks, I was afraid that other pieces of software will screw the thing up so I used Notepad++ for translating just in case. Good to know that I'm doing the right thing!

Re: [Help] Blades of Time

Posted: Wed Jun 13, 2012 3:53 pm
by JonhOliver
Could someone explain in detail how the translated files back to original format? I'm still learning.

Re: [Help] Blades of Time

Posted: Wed Jun 13, 2012 11:15 pm
by lostprophet
JonhOliver wrote:Could someone explain in detail how the translated files back to original format? I'm still learning.
Read swuforce's tutorial above.

Re: [Help] Blades of Time

Posted: Wed Jul 11, 2012 5:54 pm
by akyryz
To help people:
1) download the programs: offzip, quickbms, zlibc

2) use the scripts in the ms-dos or make a bat file:
decompress:
offzip.exe bot.vromfs.bin bot.vromfs.bin.dec 0x10
unpack:
quickbms script.bms bot.vromfs.bin.dec bot.vromfs
pack:
quickbms -w -r script.bms bot.vromfs.bin.dec bot.vromfs
compress:
zlibc -k bot.vromfs.bin.dec bot.vromfs.bin.cmp

3) save the code below into a file called "script.bms" and put in the same folder of quickbms

Code: Select all

goto 0x8
get BASE_OFF long
get FILES long
for i = 0 < FILES
get NAMEOFF long
savepos OFF
goto NAMEOFF
get NAME string
goto BASE_OFF
get OFFSET long
get SIZE long
savepos BASE_OFF
log NAME OFFSET SIZE
goto OFF
next i
4) Use the attached file to make the header with command line:
header:
bot_header bot.vromfs.bin.cmp

Or with a hex editor you have to copy the signature of the binary file and the size back to bot.vromfs.bin.cmp:
a) save the file size of the bot.vromfs.bin.cmp in hex
b) opens the file bot.vromfs.bin and copy the first 16 bytes
c) insert these bytes in the file bot.vromfs.bin.cmp and override the size that you saved at position 0xC:
size of bot.vromfs.bin.cmp 1970886 -> in hex 1E12C6 -> write back C6121E00

5) rename bot.vromfs.bin.cmp -> bot.vromfs.bin and replace it in the game folder

Note: For bat file:
a_unpack.bat

Code: Select all

offzip.exe bot.vromfs.bin bot.vromfs.bin.dec 0x10
quickbms script.bms bot.vromfs.bin.dec bot.vromfs
b_pack.bat

Code: Select all

quickbms -w -r script.bms bot.vromfs.bin.dec bot.vromfs
zlibc -k bot.vromfs.bin.dec bot.vromfs.bin.cmp
bot_header bot.vromfs.bin.cmp

Re: [Help] Blades of Time

Posted: Thu Jan 17, 2013 3:38 pm
by kilik
about audio is look fsb 4.0 i use fsbii for extract fsb from another fsb but towav not give result
what's i missing