Page 1 of 1

Child of Light font files(.cdk)

Posted: Sat May 03, 2014 8:18 am
by albert1905
I think it is something like a .fnt files that contain information of font file.
But it is different from Rayman Origin series and I can not read it. How can I deal with
this file to modify the font size, width and position for making a translation patch?

Re: Child of Light font files(.cdk)

Posted: Sat May 03, 2014 5:25 pm
by Thief1987
Can you add texture of this font?

Re: Child of Light font files(.cdk)

Posted: Sat May 03, 2014 6:51 pm
by albert1905
Thief1987 wrote:Can you add texture of this font?
Here is it. https://www.mediafire.com/?1c1m2lzqr8mu7in
Anyway, I understand it but it doesn't represent on game. Don't know why. :(

goto 0xCC there are a number of glyphs. And read each 11 long bytes.(=44 bytes)

00 00 00 28 00 00 00 20 00 00 00 45 00 00 00 60 00 00 00 05 00 00 00 05 FF FF FF FE 00 00 00 5A 00 00 00 19 00 00 00 00 00 00 00 0F

=>
char id=00 00 00 20, x=00 00 00 45, y=00 00 00 60, width=00 00 00 05, height=00 00 00 05, xoffset= FF FF FF FE, yoffset=00 00 00 5A, xadvance=00 00 00 19, page=00 00 00 00, chnl=00 00 00 0F

00 00 00 28 00 00 00 21 00 00 00 E2 00 00 01 14 00 00 00 14 00 00 00 4C 00 00 00 06 00 00 00 12 00 00 00 21 00 00 00 00 00 00 00 0F

=>
char id=00 00 00 21, x=00 00 00 E2, y=00 00 01 14, width=00 00 00 14, height=00 00 00 4C, xoffset= 00 00 00 06, yoffset=00 00 00 12, xadvance=00 00 00 21, page=00 00 00 00, chnl=00 00 00 0F

..and so on.

bundle_pc32.ipk and templateinstance_pc32.ipk both contain font02.tfn.ckd file. I changed hex value of font02.tfn.ckd and reimported it to bundle_pc32.ipk. Finally I copy and paste it to game folder but it doesn't change anything. And templateinstance_pc32.ipk can not unpacked by merlinsvk's quickbms script. viewtopic.php?f=10&t=11475 So there's no way to test it. I think font02.tfn.ckd in bundle_pc32.ipk is dummy.

Re: Child of Light font files(.cdk)

Posted: Thu May 22, 2014 9:24 pm
by GRiNDERKILLER
Here is missing "avant_garde_md_32_outline.tfn" file from templateinstance_pc32.ipk. Archive is zlibed. Zlib block starts 535159b.