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.

Need help [Eipix Entertainment]

Featured Replies

  • Author
  • Localization

PsyXo, posted Mon Jun 05, 2017 10:03 am (23841)


Hi guys.

Need your help, there is generated the font dds texture, and descriptor, you need to know what program generated the font. The developer company "Eipix Entertainment", the name of the game doesn't matter, they have almost all games are made by one generator.

The download link of the files themselves: http://rgho.st/7NbVl9Yyc
  • Author
  • Localization

anemoi, posted Tue Jun 06, 2017 6:48 am (23865)


Hi,

The fonts dds and ktext file are generated by custom generator that is developed in-house. The generator is using FreeType library to read ttf file and process them into image and descriptor. I am the guy who wrote that so i can help you explaining in depth what those parameters in ktext file means :)
  • Author
  • Localization

PsyXo, posted Tue Jun 06, 2017 7:17 am (23866)


anemoi wrote:
Hi,

The fonts dds and ktext file are generated by custom generator that is developed in-house. The generator is using FreeType library to read ttf file and process them into image and descriptor. I am the guy who wrote that so i can help you explaining in depth what those parameters in ktext file means :)


It would be better to receive the generator itself :oops: , but, since it is the internal development of the company, and can not be transferred to general or private use, I will be happy with any help from you.

P/S: I would be very grateful to you for your help, and explanations on the designations of the parameters of the ktext of the file.
  • Author
  • Localization

anemoi, posted Tue Jun 06, 2017 8:32 am (23867)


First line in ktext is the header of the file, here are the parameters with their meaning:
Line: %ktext 2 2 697 times.ttf 22
%ktext - header type signiture, ignored
2 - version of the generator
2 - number of pages for images
697 - number of characters in atlas
times.ttf - name of the original ttf file from which atlas is generated
22 - size of the char that is generated, in pixels

Next lines are representing info about characters in the atlas:
Line: 32 2 2 2 2 6 27 0 0 22
32 - unicode code of the char
2 - start x - left border
2 - start y - top border
2 - end x - right border
2 - end y - bottom border
6 - width of the character, this is the space that is allocated in word including whitespace
27 - font height
0 - index of atlas page where character is located
0 - offset x
22 - offset y
  • Author
  • Localization

PsyXo, posted Tue Jun 06, 2017 1:45 pm (23876)


Thanks, I descriptor all clear, the principle of operation is almost the same as Bmfont generator, except that the texture is generated differently, or rather the characters in Atlas are different, so if you generate the texture, Bmfont generator, the descriptor will be a complete rewrite, maybe there is some other, easier way to generate the desired font?
  • Author
  • Localization

anemoi, posted Wed Jun 07, 2017 8:48 am (23897)


The easiest way to generate textures that are compatible with our games will be to generate textures with Bmfont generator and make a script that will parse the descriptor from bmfont generator to our format.
  • Author
  • Localization

PsyXo, posted Wed Jun 07, 2017 9:43 am (23899)


anemoi wrote:
The easiest way to generate textures that are compatible with our games will be to generate textures with Bmfont generator and make a script that will parse the descriptor from bmfont generator to our format.



And can you describe in detail how to do this, what exactly are the parameters in the descriptors, which channels to set for the texture, and what are the parameters for padding and Spacking to be set?
  • Author
  • Localization

anemoi, posted Wed Jun 07, 2017 10:08 am (23902)


I am not sure what parameters are in descriptor for bmfont generator but you should try and match parameters from their descriptor to our descriptor. Try to play with .ktext file and see how it will be presented in the game.
  • Author
  • Localization

PsyXo, posted Wed Jun 07, 2017 10:25 am (23903)


anemoi wrote:
I am not sure what parameters are in descriptor for bmfont generator but you should try and match parameters from their descriptor to our descriptor. Try to play with .ktext file and see how it will be presented in the game.


Thanks for the help.

P/S: Earlier, I already wrote to you that the bmfonts draws the symbols on the texture in a different way, and in order to achieve the desired result, you will have to rewrite the entire descriptor, if you replace the texture with the generated bmfonts, then the result is not the same.
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.