help to translate Ys: lacrimosa of dana
-
- Posts: 17
- Joined: Tue Feb 09, 2021 11:55 am
help to translate Ys: lacrimosa of dana
hello, i am trying to translate the pc game lacrimosa of dana,
I have a couple of little problems,
I have a file called font.itf but I have no idea how to open it or edit to put the symbols ¿¡ that are used in spanish to open question-exclamation do not appear.
On the other hand, I have a lot of .itp files that I have no idea how to open them, because I guess a lot of text is in image format...and it is compressed there.?
thanks
I have a couple of little problems,
I have a file called font.itf but I have no idea how to open it or edit to put the symbols ¿¡ that are used in spanish to open question-exclamation do not appear.
On the other hand, I have a lot of .itp files that I have no idea how to open them, because I guess a lot of text is in image format...and it is compressed there.?
thanks
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: help to translate Ys: lacrimosa of dana
Please upload that file (or files) to allow other users to analyze it.
-
- Posts: 17
- Joined: Tue Feb 09, 2021 11:55 am
Re: help to translate Ys: lacrimosa of dana
aluigi wrote:Please upload that file (or files) to allow other users to analyze it.
one font are .itf and the other example for a .itp
http://www.mediafire.com/file/89qqx49wj ... t.itf/file
http://www.mediafire.com/file/ltserlvka ... 4.itp/file
-
- Posts: 20
- Joined: Wed Apr 17, 2019 4:03 pm
Re: help to translate Ys: lacrimosa of dana
Hi, buddy, Maybe I can help. I've made some fan translations of falcom games (zwei!! series) and do love this game very much .
and I have a version of fan translation of this game in my language (not made by me, though).
I'll try to figure out the data format and put results here~(maybe in 1 to 2 weeks)
However I know nothing about BMS script, so I cannot write BMS script for you, instead, I can show you python/c++ source code to extract them or create a simple executable to do this.
and I have a version of fan translation of this game in my language (not made by me, though).
I'll try to figure out the data format and put results here~(maybe in 1 to 2 weeks)
However I know nothing about BMS script, so I cannot write BMS script for you, instead, I can show you python/c++ source code to extract them or create a simple executable to do this.
-
- Posts: 17
- Joined: Tue Feb 09, 2021 11:55 am
Re: help to translate Ys: lacrimosa of dana
haibaer wrote:Hi, buddy, Maybe I can help. I've made some fan translations of falcom games (zwei!! series) and do love this game very much .
and I have a version of fan translation of this game in my language (not made by me, though).
I'll try to figure out the data format and put results here~(maybe in 1 to 2 weeks)
However I know nothing about BMS script, so I cannot write BMS script for you, instead, I can show you python/c++ source code to extract them or create a simple executable to do this.
all help is welcome.
In the case of the game, there are only two problems, they are all the images in .itp format (you have to open them to have an editable image format) and the font file to add some of them.
The game text there is no problem.
I'll keep an eye out for your information
can you tell me in which language it has been translated, can you give me a link to the translation so I can have a look at it?
thanks ^^
-
- Posts: 20
- Joined: Wed Apr 17, 2019 4:03 pm
Re: help to translate Ys: lacrimosa of dana
Those itp files are actually DDS files swizzled and compressed.
I still need some time to write a program to extract it.
itf files should be easier, most of glyphs are in 8-bit greyscale bitmaps.
The following code snippet shows how to decompress the data part of itp files.
I'll write a complete executable when possible and put it here.
I still need some time to write a program to extract it.
itf files should be easier, most of glyphs are in 8-bit greyscale bitmaps.
The following code snippet shows how to decompress the data part of itp files.
I'll write a complete executable when possible and put it here.
Code: Select all
def decompress(filedata):
width, height = struct.unpack('<II', filedata[0x10:0x18])
print(width, height)
if filedata[0x50:0x54] != b'IDAT':
raise Exception('error format')
offset = 0x74
bitmap = bytearray()
next_chunk_offset = offset + 8 + struct.unpack('<I', filedata[offset:offset+4])[0]
offset += 0xc
while True:
count += 1
arg1 = filedata[offset]
arg2 = filedata[offset+1]
offset += 2
if arg1 == 0:
bitmap += filedata[offset:offset+arg2]
offset += arg2
else:
start = -arg2 - 1 + len(bitmap)
for i in range(arg1):
bitmap += bitmap[start + i].to_bytes(1, byteorder='little')
offset += 1
bitmap += filedata[offset].to_bytes(1, byteorder='little')
if offset >= next_chunk_offset:
if filedata[offset:offset+4] == b'IEND':
break
offset = next_chunk_offset
next_chunk_offset = offset + 8 + struct.unpack('<I', filedata[offset:offset+4])[0]
print(format(next_chunk_offset, 'x'), format(struct.unpack('<I', filedata[offset:offset+4])[0], 'x'))
offset += 0xc
bitmap = unswizzle(bitmap)
-
- Posts: 17
- Joined: Tue Feb 09, 2021 11:55 am
Re: help to translate Ys: lacrimosa of dana
wow haibaer its amazing!, if helps i found a extractor for the itp for lacrimosa of dana.
https://github.com/Coxxs/itpcnv-dana ..it's a simple javascript .. (sorry i dont know anything of programming)
the question of that is how to compress again the image file when it is edited
https://github.com/Coxxs/itpcnv-dana ..it's a simple javascript .. (sorry i dont know anything of programming)
the question of that is how to compress again the image file when it is edited
-
- Posts: 20
- Joined: Wed Apr 17, 2019 4:03 pm
Re: help to translate Ys: lacrimosa of dana
cloudyst wrote:wow haibaer its amazing!, if helps i found a extractor for the itp for lacrimosa of dana.
https://github.com/Coxxs/itpcnv-dana ..it's a simple javascript .. (sorry i dont know anything of programming)
the question of that is how to compress again the image file when it is edited
I'm writing the encoder, it should be quiet easy.
Besides, you can try put your modified image with same name (in DX10 dds format) in the "texpack" folder.
If I didn't think it wrong,the game will try to load corresponding file in that folder first.
-
- Posts: 17
- Joined: Tue Feb 09, 2021 11:55 am
Re: help to translate Ys: lacrimosa of dana
haibaer wrote:cloudyst wrote:wow haibaer its amazing!, if helps i found a extractor for the itp for lacrimosa of dana.
https://github.com/Coxxs/itpcnv-dana ..it's a simple javascript .. (sorry i dont know anything of programming)
the question of that is how to compress again the image file when it is edited
I'm writing the encoder, it should be quiet easy.
Besides, you can try put your modified image with same name (in DX10 dds format) in the "texpack" folder.
If I didn't think it wrong,the game will try to load corresponding file in that folder first.
yes if put dds in the texpack works , but there are more than 400images (only in help and topics)...will consume more (or a lot) vram if I do this?
-
- Posts: 20
- Joined: Wed Apr 17, 2019 4:03 pm
Re: help to translate Ys: lacrimosa of dana
I can't guarantee the usage of vram, but it should be ok as the official updating did the same thing.
And my encoder won't do any compression, because it's not an easy work to recover it's original compression strategy(I can try some strategies, but there's no guarantee about it's compression ratio, sorry I'm not familiar with compression techniques), so the itp files will be larger than it's original size.
And my encoder won't do any compression, because it's not an easy work to recover it's original compression strategy(I can try some strategies, but there's no guarantee about it's compression ratio, sorry I'm not familiar with compression techniques), so the itp files will be larger than it's original size.
-
- Posts: 17
- Joined: Tue Feb 09, 2021 11:55 am
Re: help to translate Ys: lacrimosa of dana
well, in the end it's testing it. I think is not compresion but keep the original format is better?
I also don't know if the itp are loaded when starting the game or work in another way, besides I suppose that if someone want to port the translation to the console version... they don't have a "texpack" folder.
I also don't know if the itp are loaded when starting the game or work in another way, besides I suppose that if someone want to port the translation to the console version... they don't have a "texpack" folder.
-
- Posts: 20
- Joined: Wed Apr 17, 2019 4:03 pm
Re: help to translate Ys: lacrimosa of dana
Here goes the beta version of the converter.
It's not fully tested, so I'm not sure if it works for all files, and uses no compression.
I don't have much time to test it, maybe I need your help
https://www23.zippyshare.com/v/Pd5WxsxF/file.html
I'll fix bugs if you find any and add a LZ77 based compression strategy to reduce the file size when I get some free time.
It's not fully tested, so I'm not sure if it works for all files, and uses no compression.
I don't have much time to test it, maybe I need your help
https://www23.zippyshare.com/v/Pd5WxsxF/file.html
I'll fix bugs if you find any and add a LZ77 based compression strategy to reduce the file size when I get some free time.
-
- Posts: 17
- Joined: Tue Feb 09, 2021 11:55 am
Re: help to translate Ys: lacrimosa of dana
haibaer wrote:Here goes the beta version of the converter.
It's not fully tested, so I'm not sure if it works for all files, and uses no compression.
I don't have much time to test it, maybe I need your help
https://www23.zippyshare.com/v/Pd5WxsxF/file.html
I'll fix bugs if you find any and add a LZ77 based compression strategy to reduce the file size when I get some free time.
can explain how work? i put a file in file to execute them a show this error.
https://ibb.co/p0YXyg9 (this name files not found)
p.d lol, to enter zippyshare i need a vpn from spain ...
-
- Posts: 20
- Joined: Wed Apr 17, 2019 4:03 pm
Re: help to translate Ys: lacrimosa of dana
Oh, I see. It needs some dlls to run. It should be easy to get those dlls from internet.
Anyway, I'll try to compile it with another compiler to remove these dependencies.
I'm not familiar with zippyshare either, tell me if you have a better way to share files
And, it's a CLI program, you can execute it in powershell.
Anyway, I'll try to compile it with another compiler to remove these dependencies.
I'm not familiar with zippyshare either, tell me if you have a better way to share files
And, it's a CLI program, you can execute it in powershell.
-
- Posts: 17
- Joined: Tue Feb 09, 2021 11:55 am
Re: help to translate Ys: lacrimosa of dana
you can use http://www.mediafire.com
i need an explanation for a noob, i know a little the comands for powershell but execute the file and do nothing. Need a command to convert and re-convert¿?
i need an explanation for a noob, i know a little the comands for powershell but execute the file and do nothing. Need a command to convert and re-convert¿?
Last edited by cloudyst on Mon Mar 01, 2021 8:01 am, edited 1 time in total.
-
- Posts: 20
- Joined: Wed Apr 17, 2019 4:03 pm
Re: help to translate Ys: lacrimosa of dana
try this one.
http://www.mediafire.com/file/y8pa0y5hv ... t.exe/file
About how to use this, just open the powershell and execute the executable.
itp_cvt.exe -to_dds filename -> convert itp file to dds file
itp_cvt.exe -to_itp filename -> convert dds file to itp file
http://www.mediafire.com/file/y8pa0y5hv ... t.exe/file
About how to use this, just open the powershell and execute the executable.
itp_cvt.exe -to_dds filename -> convert itp file to dds file
itp_cvt.exe -to_itp filename -> convert dds file to itp file
-
- Posts: 17
- Joined: Tue Feb 09, 2021 11:55 am
Re: help to translate Ys: lacrimosa of dana
yep, works and dont work... the itp for example works..but i try others (or convert a .dds i have and the game crash) and dont work...i think because are diferent size?
https://ibb.co/vjVQD8H
https://ibb.co/vjVQD8H
-
- Posts: 20
- Joined: Wed Apr 17, 2019 4:03 pm
Re: help to translate Ys: lacrimosa of dana
cloudyst wrote:yep, works and dont work... the itp for example works..but i try others (or convert a .dds i have and the game crash) and dont work...i think because are diferent size?
https://ibb.co/vjVQD8H
Could you tell me the file name that failed? And when do the game crash(corresponding game save data would be helpful)?
-
- Posts: 17
- Joined: Tue Feb 09, 2021 11:55 am
Re: help to translate Ys: lacrimosa of dana
http://www.mediafire.com/file/ynafhxkyy ... op.7z/file
more itp to try...
the only works is tipbg04 .. the same in example... unfortunately it's one that has no text and I can't check in game .. the others are dds mine (works in folder textack)..but i supose not extrack with this there are problems?
I tried to transfer this dds to itp and the game breaks before I get to the menu, this is just the initial menu of the game.
http://www.mediafire.com/file/5xh9ujvf7 ... n.dds/file
more itp to try...
the only works is tipbg04 .. the same in example... unfortunately it's one that has no text and I can't check in game .. the others are dds mine (works in folder textack)..but i supose not extrack with this there are problems?
I tried to transfer this dds to itp and the game breaks before I get to the menu, this is just the initial menu of the game.
http://www.mediafire.com/file/5xh9ujvf7 ... n.dds/file
-
- Posts: 20
- Joined: Wed Apr 17, 2019 4:03 pm
Re: help to translate Ys: lacrimosa of dana
cloudyst wrote:http://www.mediafire.com/file/ynafhxkyy571qe0/Desktop.7z/file
more itp to try...
the only works is tipbg04 .. the same in example... unfortunately it's one that has no text and I can't check in game .. the others are dds mine (works in folder textack)..but i supose not extrack with this there are problems?
I tried to transfer this dds to itp and the game breaks before I get to the menu, this is just the initial menu of the game.
http://www.mediafire.com/file/5xh9ujvf7 ... n.dds/file
http://www.mediafire.com/file/g6bsqyo5f ... 1.exe/file
fixed, all your uploaded files should be converted to dds file correctly
And about dds to itp, your dds file should use DX10 format and bc7 compression.