The Forest Where is the language file? [Unity]

How to translate the files of a game
binlv1
Posts: 54
Joined: Sat Apr 15, 2017 9:00 am

Re: The Forest Where is the language file? [Unity]

Post by binlv1 »

Uniytext does not support unicode and tf-8?
My language does not support ANSI
lostprophet
Posts: 49
Joined: Thu Sep 04, 2014 9:34 pm

Re: The Forest Where is the language file? [Unity]

Post by lostprophet »

How does the Unity Font program work? How can I convert my .ttf file, so I can import it with Unity Font? I'm trying to modify the fonts for Anima: Gate of Memories.
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: The Forest Where is the language file? [Unity]

Post by makc_ar »

lostprophet wrote:How does the Unity Font program work? How can I convert my .ttf file, so I can import it with Unity Font? I'm trying to modify the fonts for Anima: Gate of Memories.

Type 1.2 to binary *.-4
Image
Use Casablanca Antique.ttf to BMFont tool
Image
Example atlas "main menu.tex.dds"
Image
lostprophet
Posts: 49
Joined: Thu Sep 04, 2014 9:34 pm

Re: The Forest Where is the language file? [Unity]

Post by lostprophet »

Sorry, it's a bit unclear.

So I should do this?
1. Download Casablanca Antique.ttf from here: http://freakfonts.com/fonts/casablanca-antique.html
2. Edit the font file (with FontCreator for example) to have all needed characters.
3. Open BMFont (http://www.angelcode.com/products/bmfont/), load configuration (the .bmfc file you attached), choose "Select chars from file", import the TTF, and "save bitmap font as..."
4. Open UnityFont, open "sharedassets0_00004.-4", choose Type 1.2., choose "Bitmap font" and "Save Font Data".

And after that reimport the files with UnityEx?
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: The Forest Where is the language file? [Unity]

Post by makc_ar »

lostprophet wrote:Sorry, it's a bit unclear.

So I should do this?
1. Download Casablanca Antique.ttf from here: http://freakfonts.com/fonts/casablanca-antique.html
2. Edit the font file (with FontCreator for example) to have all needed characters.
3. Open BMFont (http://www.angelcode.com/products/bmfont/), load configuration (the .bmfc file you attached), choose "Select chars from file", import the TTF, and "save bitmap font as..."
4. Open UnityFont, open "sharedassets0_00004.-4", choose Type 1.2., choose "Bitmap font" and "Save Font Data".

And after that reimport the files with UnityEx?

Yep!
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: The Forest Where is the language file? [Unity]

Post by makc_ar »

Text Toolset
lostprophet
Posts: 49
Joined: Thu Sep 04, 2014 9:34 pm

Re: The Forest Where is the language file? [Unity]

Post by lostprophet »

Well, I did it with the 3 files, imported them, but it looks like the characters shifted or disappeared. Is there any config I need to make in UnityFont?
lostprophet
Posts: 49
Joined: Thu Sep 04, 2014 9:34 pm

Re: The Forest Where is the language file? [Unity]

Post by lostprophet »

Could you maybe help me with importing this TTF file? It looks like it doesn't import correctly for me.
nmdpkvs
Posts: 10
Joined: Tue Nov 07, 2017 5:44 am

Re: The Forest Where is the language file? [Unity]

Post by nmdpkvs »

makc_ar wrote:Text Toolset

Hi!I am editing a game called Ghost of a Tale I just use UnityFont to get the correct character set, all types have tried not work, the same twist a game Steamburg does not work, I hope you can help me(I am from China, English is not good, please do not mind)
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: The Forest Where is the language file? [Unity]

Post by makc_ar »

nmdpkvs wrote:Hi!I am editing a game called Ghost of a Tale I just use UnityFont to get the correct character set, all types have tried not work, the same twist a game Steamburg does not work, I hope you can help me(I am from China, English is not good, please do not mind)

Ghost of a Tale Binary Template:

Code: Select all

//------------------------------------------------
//--- 010 Editor v7.0 Binary Template
//
//      File:
//   Authors:
//   Version:
//   Purpose:
//  Category:
// File Mask:
//  ID Bytes:
//   History:
//------------------------------------------------
struct {
  uint unk1;
  uint unk2;
  uint unk3;
  uint unk4;
  uint unk5;
  uint unk6;
  uint unk7;
  uint nameSize;
  char Name[nameSize];
  local int skip = (nameSize / 4+1)*4-nameSize;
  //Printf("Skip = %d\n", skip);
  if (skip != 4) { FSkip(skip); }
  float unk8;
  uint unk9;
  uint unk10;
  uint unk11;
  float unk12;
  uint unk13;
  uint nameSize2;
  char Name2[nameSize2];
  local int skip2 = (nameSize2 / 4+1)*4-nameSize2;
  //Printf("Skip2 = %d\n", skip2);
  if (skip2 != 4) { FSkip(skip2); }
  float unk14;
  float unk15;
  uint unk16;
  float unk17;
  float unk18;
  float unk19;
  float unk20;
  float unk21;
  float unk22;
  float unk23;
  float unk24;
  float unk25;
  float unk26;
  float unk27;
  float unk28;
  float imgWidth;
  float imgHeight;
  float unk31;
  uint unk32;
  float unk33;
} Header <optimize=false>;
struct {
    uint Count;
    struct {
        int id;
        float x;
        float y;
        float width;
        float height;
        float xOffset;
        float yOffset;
        float xAdvance;
    } GlyphInfo[Count] <optimize=false>;
} Glyphs;
typedef struct {
    int ascII_Left;
    int ascII_Right;
    float xAdvanceOffset;
} KerningPair<optimize=false>;
struct {
    uint kernCount;
    KerningPair Kerning[kernCount];
} Kern;
char unk1[308];
float unk2;
float unk3;
float unk4;
float unk5;
uint unk6;
uint unk7;
morefun1314
Posts: 9
Joined: Mon Mar 19, 2018 7:44 am

Re: The Forest Where is the language file? [Unity]

Post by morefun1314 »

makc_ar wrote:Text Toolset

i want to translate "beat saber" to my launguage,but i can't find any font file,it seems use texmesh,only font texure,i don't know how to edit it.can you help me. thanks!
here is game link: https://store.steampowered.com/app/620980/Beat_Saber/
sinnerclown380
Posts: 59
Joined: Tue Apr 07, 2020 10:34 am

Re: The Forest Where is the language file? [Unity]

Post by sinnerclown380 »

hello dude is there a video style tutorial to add font font to unity games?
JesWhite
Posts: 47
Joined: Sun Jun 02, 2019 10:40 pm

Re: The Forest Where is the language file? [Unity]

Post by JesWhite »

aluigi wrote:Added the [Unity] tag in the title because I think this topic is gold for many people who wants to work on other games using the same engine.


Yea i think so but i don't know how can i change unsupport font characters in game resources.

I tried for Stranded Deep.
Extracted files and dds files and tried to replace fonts with unsupported characters.
Game is showing square for characters in game :(
i think dds etc problem but i dont know how can i change them or another.