Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

help to translate Ys: lacrimosa of dana

Featured Replies

  • Author
  • Localization

cloudyst, posted Tue Feb 09, 2021 12:03 pm (62092)


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
  • Author
  • Localization

aluigi, posted Sun Feb 14, 2021 9:26 am (62185)


Please upload that file (or files) to allow other users to analyze it.
  • Author
  • Localization

haibaer, posted Thu Feb 18, 2021 8:24 am (62358)


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.
  • Author
  • Localization

cloudyst, posted Thu Feb 18, 2021 12:03 pm (62361)


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 ^^
  • Author
  • Localization

haibaer, posted Sun Feb 21, 2021 12:37 pm (62408)


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.

Code:
def decompress(filedata):
  width, height = struct.unpack('  print(width, height)
  if filedata[0x50:0x54] != b'IDAT':
    raise Exception('error format')

  offset = 0x74
  bitmap = bytearray()
  next_chunk_offset = offset 8 struct.unpack('  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('      print(format(next_chunk_offset, 'x'), format(struct.unpack('      offset = 0xc

  bitmap = unswizzle(bitmap)
 
  • Author
  • Localization

cloudyst, posted Sun Feb 21, 2021 3:15 pm (62410)


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
  • Author
  • Localization

haibaer, posted Mon Feb 22, 2021 2:34 am (62425)


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.
  • Author
  • Localization

cloudyst, posted Mon Feb 22, 2021 7:48 am (62427)


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 :o , but there are more than 400images (only in help and topics)...will consume more (or a lot) vram if I do this?
  • Author
  • Localization

haibaer, posted Mon Feb 22, 2021 8:24 am (62428)


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.
  • Author
  • Localization

cloudyst, posted Mon Feb 22, 2021 9:59 am (62430)


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.
  • Author
  • Localization

haibaer, posted Sun Feb 28, 2021 9:54 am (62546)


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.
  • Author
  • Localization

cloudyst, posted Sun Feb 28, 2021 12:30 pm (62557)


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 ... :o
  • Author
  • Localization

haibaer, posted Sun Feb 28, 2021 12:39 pm (62559)


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.
  • Author
  • Localization

cloudyst, posted Sun Feb 28, 2021 1:31 pm (62560)


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??
  • Author
  • Localization

haibaer, posted Mon Mar 01, 2021 2:20 am (62569)


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
  • Author
  • Localization

cloudyst, posted Mon Mar 01, 2021 8:04 am (62578)


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
  • Author
  • Localization

haibaer, posted Mon Mar 01, 2021 8:26 am (62579)


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)?
  • Author
  • Localization

cloudyst, posted Mon Mar 01, 2021 8:37 am (62580)


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
  • Author
  • Localization

haibaer, posted Mon Mar 01, 2021 9:40 am (62581)


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 :) :D
And about dds to itp, your dds file should use DX10 format and bc7 compression.
  • Author
  • Localization

cloudyst, posted Mon Mar 01, 2021 10:04 am (62582)


almost
my dds converted to itp looks like this in the main menu, from scratch i have converted an itp to dds i edit it and convert it again... it looks like this

i understand the problem is how do i save the dds , i use paint.net i have a lot of different configurations (speed compresion in all says bc6h\bc7)

https://ibb.co/9g5SPsr
https://ibb.co/qMh7f5F
https://ibb.co/5Ft00sZ
https://ibb.co/NFCFXdC
  • Author
  • Localization

haibaer, posted Mon Mar 01, 2021 11:00 am (62586)


BC7 linear, DX11 should work.
If not, that's my tool's BUG :)
  • Author
  • Localization

cloudyst, posted Mon Mar 01, 2021 11:24 am (62588)


haibaer wrote:
BC7 linear, DX11 should work.
If not, that's my tool's BUG :)


looks like in the last picture , the good thing is not break the game.
https://ibb.co/NFCFXdC
  • Author
  • Localization

haibaer, posted Mon Mar 01, 2021 11:39 am (62589)


Could you send me the corresponding game save data and modified dds, maybe I need to test it in the game.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.