2006

ubi.com    Forums  Hop To Forum Categories  Faces of War  Hop To Forums  Faces of War    Guide to Languages files (.lng)
Page 1 2 

Moderators: MDS_Geist
Go
New
Find
Notify
Tools
Reply
  
  Login/Join 
Picture of Dilust
Posted
LANGUAGES FILES (.lng)

This is a little guide to better understand how the languages files work and how you can modify them.

All text lines shown ingame are stored in files with .lng extension.

The languages files are contained in a pak archive located in the resource folder you can find in the main installation folder of the game.
For each language version this pakage is named in a different way. The file name for the English version is eng.pak.

You cannot open this archive useing WinRAR, because the developers decided to lock it.
But don't worry. Thanks to Skael you can find an unlocked version, for demostrative uses, here.

I exort you to download this file and keep it in a safe place.
To open the texts.pak file you can use WinRAR or other dedicated programms.

Remember: the texts.pak file is the equivalent for eng.pak file. This means that the file location is C:\Programm Files\Ubisoft\Faces of War\resource

When this file is opened you can see a folder structure like this:

C:\Programm Files\Ubisoft\Faces of War\resource
 interface <<< This folder are in the game.pak file too.
  text
   #dlg_frontend.lng <<< Here are contained all text lines concerning the game menu (campaign, options, profiles, etc.).
   #dlg_ingame.lng <<< Here are contained all text lines concerning the ingame GUI.
   #dlg_mp.lng <<< Here are contained all text lines concerning the multyplayer menu.
   desc.lng <<< Here are contained all text lines with names for soldiers, vehicles, weapons, ammo types, etc.
   mission.lng [[[ Here are contained all text lines concerning training missions and MP missions.
   mission <<< This folder contains other .lng files for all campaign missions.
    single
     1 <<< This is for the Allies campaign.
     2 <<< This is for the Soviet campaign.
     3 <<< This is for the German campaign.


An alternative structure could be created useing the localization folder, that should be placed in the main installation game folder:

C:\Programm Files\Ubisoft\Faces of War\
 localization
  #dlg_frontend.lng
  #dlg_ingame.lng
  #dlg_mp.lng
  desc.lng
  mission.lng
  mission
   single
    1
    2
    3


As you can see all this files are inserted in a hierarchical form, that is mantained in the syntax of all .lng files too as you can see when we examine the desc.lng file:
Remember this is only an example

 {tags
	 {"entity" <<< This is the class/level name.
	 	{"r12" "BMW  R12"} <<< The first entries is the entity name for the game; the second one is the text will be displayed ingame for it.
	 }
 }


As you can see each hierarchical level is clear-cut with two brackets: { and }.
Moreover all levels, in the desc.lng and mission.lng files, can be exported in minor .lng files. like you can see from the examples in the texts.pak file, concerning the mission subfolder.

This means that the game "read" each .lng file in a hierarchical way. And it's able to split-up the desc.lng and mission.lng files in other minor .lng files, useing specified subfolders and mantaining a determinate hierarchical form.
For modders this means that if you would add new stuffs for the game, you haven't to overwork the desc.lng and mission.lng files, but you can simply create a minor file.

To better understand what I mean, you can download this mod I created, concerning the desc.lng file, here

This mod fix some bugs concerning the wrong visualization for some ammo and weapon names.
As you can see I used both main structure (localization and interface); I mantained a desc.lng file, but I used minor files for weapons and ammo too.

Note: if you use the double structure form (localization and interface), you can use only one minor file for each level/class and, in this cases, is better you use the localization folder structure.

Here is the link to the related article at FoW modding Wiki.

Dilust

This message has been edited. Last edited by: Dilust,


-----------------------
Memento Audere Semper Gabriele D'Annunzio
Si vis Pacem para Bellum Vegezius
Visit Soldiers Modding Wiki
Visit Faces of War Modding Wiki
 
Posts: 160 | Registered: Wed November 16 2005Reply With QuoteEdit or Delete MessageReport This Post
Picture of Sergyn1985
Posted Hide Post
What this? its lang Russia? give me plz lang Russia on Enlish version
 
Posts: 34 | Registered: Mon February 06 2006Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Thanks for the write-up Dilust!
I still can't seem to make it work. I'm trying to make a mission description .lng file for the Dynamic Campaign generator, but I'm not doing something right. Could you explain to me how to do that?
 
Posts: 156 | Registered: Mon April 04 2005Reply With QuoteEdit or Delete MessageReport This Post
Picture of Dilust
Posted Hide Post
quote:
Originally posted by Jason111:
Thanks for the write-up Dilust!
I still can't seem to make it work. I'm trying to make a mission description .lng file for the Dynamic Campaign generator, but I'm not doing something right. Could you explain to me how to do that?

Yes, I'm glad to help you, but as i just said i'm not able to explain me in English in the better way, so be patient.
What would you exactly know? Please, post here all your questions and I'll add answer to the tutorial, to make it more usefull.

EDIT: here is the link to the related article at FoW modding Wiki.

This message has been edited. Last edited by: Dilust,


-----------------------
Memento Audere Semper Gabriele D'Annunzio
Si vis Pacem para Bellum Vegezius
Visit Soldiers Modding Wiki
Visit Faces of War Modding Wiki
 
Posts: 160 | Registered: Wed November 16 2005Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
I'm just trying to make a single player mission description. I guess the problem is I've tried every combination I can think of for formatting the file and putting in in a folder and it doesn't work. Could you post an example mission description file that would work with my mod and tell me where to put it? Thank you for helping!
 
Posts: 156 | Registered: Mon April 04 2005Reply With QuoteEdit or Delete MessageReport This Post
Picture of Dilust
Posted Hide Post
quote:
Originally posted by Jason111:
I'm just trying to make a single player mission description. I guess the problem is I've tried every combination I can think of for formatting the file and putting in in a folder and it doesn't work. Could you post an example mission description file that would work with my mod and tell me where to put it? Thank you for helping!


I created a mod for demostrative usage. You can download it here.
Moreover I updated my guide and make it more clarefull. Check the first post.


-----------------------
Memento Audere Semper Gabriele D'Annunzio
Si vis Pacem para Bellum Vegezius
Visit Soldiers Modding Wiki
Visit Faces of War Modding Wiki
 
Posts: 160 | Registered: Wed November 16 2005Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
I Can only get it to work with the "localization method".

Any .lng i put in the related subfolder under my mod folder is ignored.

Anyone else having this same problem or is it just me and what am i doing wrong.
The whole purpose of my mod is to be a mod not some overwrite anyone elses .lng files in a non mod folder.

Thanks for any assistance.

//Cadde


EDIT:

It might help to explain all steps i've taken so far...

"mods\cadde_mod\resource\interface\text\desc.lng"
I just changed the name of the "Bazooka" to "M9A1 Bazooka".
Nothing in either multiplayer nor singleplayer. (Tested starting the mission from the beginning as well in case they save names in savegames)


NEVER MIND... Hammer

 
Posts: 6 | Registered: Tue October 10 2006Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
This game is real good.I love its direct control mode and realistic style.
Howerver,campaigns are not that good and absolutely not enough.It's a kind of waste. So we do need an Official Editor to develop more single missions and MODs.
With official editor,Faces of War could be much more fun and might develop into a classic military game just like flashpoint.
 
Posts: 0 | Registered: Tue October 10 2006Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
I am sure they know we want this already. But it never harms to say it again. Cool

Nobody knows better what the community wants than the community, so letting us get on and create our own missions with an editor will show you exactly what we would like to do with this game.
This in turn will help you with the next version of the game. You'll probably find we don't want to see cut scenes all over the place and crappy voices trying to act out a crappy story.
All we want to have is some troops to take out a bunch of AI controlled troops using tactics and to blow to **** out of all the buildings on the maps of course.

 
Posts: 23 | Registered: Mon August 07 2006Reply With QuoteEdit or Delete MessageReport This Post
Picture of saif_revolucion
Posted Hide Post
quote:
Originally posted by cn_sunyi:
This game is real good.I love its direct control mode and realistic style.
Howerver,campaigns are not that good and absolutely not enough.It's a kind of waste. So we do need an Official Editor to develop more single missions and MODs.
With official editor,Faces of War could be much more fun and might develop into a classic military game just like flashpoint.


Agree


---------------------------------------------------
http://revolucion09.blogspot.com


creaciones09.blogspot.com
 
Posts: 72 | Registered: Mon September 11 2006Reply With QuoteEdit or Delete MessageReport This Post
Picture of Dilust
Posted Hide Post
quote:
NEVER MIND... Hammer

Is it all OK?


-----------------------
Memento Audere Semper Gabriele D'Annunzio
Si vis Pacem para Bellum Vegezius
Visit Soldiers Modding Wiki
Visit Faces of War Modding Wiki


-----------------------
Memento Audere Semper Gabriele D'Annunzio
Si vis Pacem para Bellum Vegezius
Visit Soldiers Modding Wiki
Visit Faces of War Modding Wiki
 
Posts: 160 | Registered: Wed November 16 2005Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
the eng.pak file does not exist.

who can send it to me?
very thanks.
nbzduo#gmail.com
 
Posts: 1 | Registered: Sat May 19 2007Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
quote:
Originally posted by hansho2007:
the eng.pak file does not exist.

who can send it to me?
very thanks.
nbzduo#gmail.com


well then..... go and buy the game!


 
Posts: 727 | Registered: Sat November 18 2006Reply With QuoteEdit or Delete MessageReport This Post
Picture of Dilust
Posted Hide Post
quote:
Originally posted by hansho2007:
the eng.pak file does not exist.

Here is the link to the unloked version of the localization .pak file.
The first post was edited with the new link.
Bye.

This message has been edited. Last edited by: Dilust,


-----------------------
Memento Audere Semper Gabriele D'Annunzio
Si vis Pacem para Bellum Vegezius
Visit Soldiers Modding Wiki
Visit Faces of War Modding Wiki
 
Posts: 160 | Registered: Wed November 16 2005Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
arrrghh! now you make the guide

Just found yesterday how to get ride of the ??? in front of new teams names i create.

Good thing you made it to a guide Smile
 
Posts: 123 | Registered: Thu October 12 2006Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Hi! The text.pak is correctly working in my game. However I have a question in connection with the localization: How could I put charcters in the game like: áÁ, éÉ, Í, öÖ, őŐ and other symbols of my languages alphabet?
 
Posts: 11 | Registered: Thu May 31 2007Reply With QuoteEdit or Delete MessageReport This Post
Picture of Dilust
Posted Hide Post
quote:
Originally posted by Druzsba:
Hi! The text.pak is correctly working in my game. However I have a question in connection with the localization: How could I put charcters in the game like: áÁ, éÉ, Í, öÖ, őŐ and other symbols of my languages alphabet?

Use a wordeditor to edit the text file. Then try it ingame. I don't know if some symbols are not supported in the type format used by the game.
I have an Italian game version and the à, è, ò, ì, ù symbols works fine.

PS: Are you able to open and overwork the localization.pak file? It's strange because Ubisoft loked it... what language version do you have?


-----------------------
Memento Audere Semper Gabriele D'Annunzio
Si vis Pacem para Bellum Vegezius
Visit Soldiers Modding Wiki
Visit Faces of War Modding Wiki
 
Posts: 160 | Registered: Wed November 16 2005Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Sorry, my mistake... I wanted to say, that the text.pak which I dowloaded from here works fine. Of course I could not open the original eng.pak.
Anyway I have an english game and when I try to put charcters like áÁ éÉ etc. in the text it does not work on every places, like in the main menu. The game puts cyril characters instead of the ones I mentioned before. How could I solve this problem?
I tryed to get the fonts from the demo, in which they are not locked. I succesfully found them but I can't edit .fbin and .font files. Do you have any advices?
 
Posts: 11 | Registered: Thu May 31 2007Reply With QuoteEdit or Delete MessageReport This Post
Picture of Dilust
Posted Hide Post
I uninstalled the demo time ago, so I don't know what files are there.
Where are exactly those .fbin and .font files?


-----------------------
Memento Audere Semper Gabriele D'Annunzio
Si vis Pacem para Bellum Vegezius
Visit Soldiers Modding Wiki
Visit Faces of War Modding Wiki
 
Posts: 160 | Registered: Wed November 16 2005Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
They were in resource.pak. In the interface\fonts dictionray. With a modification I could put them in the game just like the texts I have downloaded from here.
Anyway, is it possible that you send me the italian fonts? (my e-mail: csiga.adam@gmail.com) As far as I know there are several similar characters in the Italain alphabet and the Hungarian one.
 
Posts: 11 | Registered: Thu May 31 2007Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community Page 1 2  
 

ubi.com    Forums  Hop To Forum Categories  Faces of War  Hop To Forums  Faces of War    Guide to Languages files (.lng)

Terms of Use