Metro 2033 / Last Light lng tool

How to translate the files of a game
rengareng
Posts: 46
Joined: Thu Aug 14, 2014 3:29 am

Metro 2033 / Last Light lng tool

Post by rengareng »

Hi y'all,

You can use this tool to edit .lng files of Metro games.

Updated for Metro Exodus here!

Code: Select all

Metro .lng tool - celikeins - 2019.02.10
Unpack texts: metro-lng-tool.exe stable_us.lng
              * Creates stable_us.lng.txt file
Repack texts: metro-lng-tool.exe stable_us.lng.txt
              * Creates stable_us.lng.new file
              * stable_us.lng should be in the current directory.
Last edited by rengareng on Sat Feb 16, 2019 11:59 pm, edited 1 time in total.
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: Metro 2033 / Last Light lng tool

Post by Delutto »

Great work!
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: Metro 2033 / Last Light lng tool

Post by shadow_lonely »

Nice! Thank you very much!
rengareng
Posts: 46
Joined: Thu Aug 14, 2014 3:29 am

Re: Metro 2033 / Last Light lng tool

Post by rengareng »

Here is the updated version for Metro Exodus.
MuslimCyberGames
Posts: 220
Joined: Sun Nov 06, 2016 3:28 pm

Re: Metro 2033 / Last Light lng tool

Post by MuslimCyberGames »

What Metro games can be used by these Tools ... Is it possible for Metro Last Light and Metro 2033 versions that are non-REDUX ???

Sorry for my bad English.
lostprophet
Posts: 49
Joined: Thu Sep 04, 2014 9:34 pm

Re: Metro 2033 / Last Light lng tool

Post by lostprophet »

How to extract/repack the stable_us.lng from content.vfx?

The tool for Last Light Redux doesn't work, and couldn't find any specific tools for Metro Exodus.
Jacob Darka
Posts: 24
Joined: Thu Jan 10, 2019 11:32 am

Re: Metro 2033 / Last Light lng tool

Post by Jacob Darka »

rengareng wrote:Hi y'all,

You can use this tool to edit .lng files of Metro games.

Updated for Metro Exodus here!

Code: Select all

Metro .lng tool - celikeins - 2019.02.10
Unpack texts: metro-lng-tool.exe stable_us.lng
              * Creates stable_us.lng.txt file
Repack texts: metro-lng-tool.exe stable_us.lng.txt
              * Creates stable_us.lng.new file
              * stable_us.lng should be in the current directory.


when trying to unpack\repack it without editing the .txt file, everything works well,
but when I edit\localize the .txt file, and try to repack it, the tool shows this
Image

afterwards it creates an empty .lng file, contains this only

Image

so, I can't add non-latin letters I suppose?
rengareng
Posts: 46
Joined: Thu Aug 14, 2014 3:29 am

Re: Metro 2033 / Last Light lng tool

Post by rengareng »

Jacob Darka wrote:
rengareng wrote:Hi y'all,

You can use this tool to edit .lng files of Metro games.

Updated for Metro Exodus here!

Code: Select all

Metro .lng tool - celikeins - 2019.02.10
Unpack texts: metro-lng-tool.exe stable_us.lng
              * Creates stable_us.lng.txt file
Repack texts: metro-lng-tool.exe stable_us.lng.txt
              * Creates stable_us.lng.new file
              * stable_us.lng should be in the current directory.


when trying to unpack\repack it without editing the .txt file, everything works well,
but when I edit\localize the .txt file, and try to repack it, the tool shows this
Image

afterwards it creates an empty .lng file, contains this only

Image

so, I can't add non-latin letters I suppose?


You can use only characters in the us font file.
Jacob Darka
Posts: 24
Joined: Thu Jan 10, 2019 11:32 am

Re: Metro 2033 / Last Light lng tool

Post by Jacob Darka »

rengareng wrote: You can use only characters in the us font file.


well, none of the available .lng files contains the characters that I'm gonna use, and that's the case for all games.
u can't update the tool or like... create a whole new .lng file?
lostprophet
Posts: 49
Joined: Thu Sep 04, 2014 9:34 pm

Re: Metro 2033 / Last Light lng tool

Post by lostprophet »

I managed to find the font files for Metro Exodus. In the past (Metro 2033 and Metro Last Light), it was possible to use magicdds to convert them to .dds, edit them with Photoshop, and the convert them back.
It still converts them to .dds, but Photoshop can't edit them (maybe some small things have changed, and is not readable as a .dds file)?

Here are some examples of the font files and the magicdds:

https://drive.google.com/open?id=1KMdNUl0AKm5s8U3qkv2F4hTD_t0n0uj_

Anyone know how to edit them and then convert them back?
Jacob Darka
Posts: 24
Joined: Thu Jan 10, 2019 11:32 am

Re: Metro 2033 / Last Light lng tool

Post by Jacob Darka »

rengareng wrote:Hi y'all,

You can use this tool to edit .lng files of Metro games.

Updated for Metro Exodus here!

Code: Select all

Metro .lng tool - celikeins - 2019.02.10
Unpack texts: metro-lng-tool.exe stable_us.lng
              * Creates stable_us.lng.txt file
Repack texts: metro-lng-tool.exe stable_us.lng.txt
              * Creates stable_us.lng.new file
              * stable_us.lng should be in the current directory.

Update!
by a help of a friend, I was able to added it!
now how exactly to make the game load the new "stable_us.lng" file?
*someone mentioned this like viewtopic.php?p=10165#p10165 but the links of the tools are dead
binlv1
Posts: 54
Joined: Sat Apr 15, 2017 9:00 am

Re: Metro 2033 / Last Light lng tool

Post by binlv1 »

lostprophet wrote:I managed to find the font files for Metro Exodus. In the past (Metro 2033 and Metro Last Light), it was possible to use magicdds to convert them to .dds, edit them with Photoshop, and the convert them back.
It still converts them to .dds, but Photoshop can't edit them (maybe some small things have changed, and is not readable as a .dds file)?

Here are some examples of the font files and the magicdds:

https://drive.google.com/open?id=1KMdNUl0AKm5s8U3qkv2F4hTD_t0n0uj_

Anyone know how to edit them and then convert them back?


hey friend, please send me all font files like subtitles, menus,... and save location of it, i will try!
Jacob Darka
Posts: 24
Joined: Thu Jan 10, 2019 11:32 am

Re: Metro 2033 / Last Light lng tool

Post by Jacob Darka »

binlv1 wrote:hey friend, please send me all font files like subtitles, menus,... and save location of it, i will try!


there you go! all font's from the Metro Exodus's archives,
https://mega.nz/#!dsExmAYR!WnFEI9vzW5J_ ... 0-7XF0ZOCs

'hope u can come up with something from it.
binlv1
Posts: 54
Joined: Sat Apr 15, 2017 9:00 am

Re: Metro 2033 / Last Light lng tool

Post by binlv1 »

Jacob Darka wrote:
binlv1 wrote:hey friend, please send me all font files like subtitles, menus,... and save location of it, i will try!


there you go! all font's from the Metro Exodus's archives,
https://mega.nz/#!dsExmAYR!WnFEI9vzW5J_ ... 0-7XF0ZOCs

'hope u can come up with something from it.


Do you have the import file .lng file?
Jacob Darka
Posts: 24
Joined: Thu Jan 10, 2019 11:32 am

Re: Metro 2033 / Last Light lng tool

Post by Jacob Darka »

binlv1 wrote:
Jacob Darka wrote:
binlv1 wrote:hey friend, please send me all font files like subtitles, menus,... and save location of it, i will try!


there you go! all font's from the Metro Exodus's archives,
https://mega.nz/#!dsExmAYR!WnFEI9vzW5J_ ... 0-7XF0ZOCs

'hope u can come up with something from it.


Do you have the import file .lng file?


yes I've, but however, right now I'm stuck in the process, because there's no way 'yet' to repack the modified files, or to make the game load them.
binlv1
Posts: 54
Joined: Sat Apr 15, 2017 9:00 am

Re: Metro 2033 / Last Light lng tool

Post by binlv1 »

Jacob Darka wrote:
binlv1 wrote:
Jacob Darka wrote:
there you go! all font's from the Metro Exodus's archives,
https://mega.nz/#!dsExmAYR!WnFEI9vzW5J_ ... 0-7XF0ZOCs

'hope u can come up with something from it.


Do you have the import file .lng file?


yes I've, but however, right now I'm stuck in the process, because there's no way 'yet' to repack the modified files, or to make the game load them.

Image

The problem is how I import it again??
binlv1
Posts: 54
Joined: Sat Apr 15, 2017 9:00 am

Re: Metro 2033 / Last Light lng tool

Post by binlv1 »

Jacob Darka wrote:
binlv1 wrote:
Jacob Darka wrote:
there you go! all font's from the Metro Exodus's archives,
https://mega.nz/#!dsExmAYR!WnFEI9vzW5J_ ... 0-7XF0ZOCs

'hope u can come up with something from it.


Do you have the import file .lng file?


yes I've, but however, right now I'm stuck in the process, because there's no way 'yet' to repack the modified files, or to make the game load them.


I have imported the font, now how to put in the game??
binlv1
Posts: 54
Joined: Sat Apr 15, 2017 9:00 am

Re: Metro 2033 / Last Light lng tool

Post by binlv1 »

lostprophet wrote:I managed to find the font files for Metro Exodus. In the past (Metro 2033 and Metro Last Light), it was possible to use magicdds to convert them to .dds, edit them with Photoshop, and the convert them back.
It still converts them to .dds, but Photoshop can't edit them (maybe some small things have changed, and is not readable as a .dds file)?

Here are some examples of the font files and the magicdds:

https://drive.google.com/open?id=1KMdNUl0AKm5s8U3qkv2F4hTD_t0n0uj_

Anyone know how to edit them and then convert them back?


friend hey, I successfully edited the font and how to re-import the game??
swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

Re: Metro 2033 / Last Light lng tool

Post by swuforce »

For text:
The newest lng is in the patch_01_shared.vfx/vfs0 file
Unpack it with rengareng or iOrange tool
Edit it with rengareng tool
Make a folder eg: "patch" and put there without subfolders
Use my script to insert it, select patch_01_shared.vfx, then patch folder, rename the NEW vfx file, backup original

For font:
They are in the content files
Unpack them with rengareng tool then convert them to dds with Prodnik a1tt tool
Or save them directly as dds with iOrange tool
Edit them eg with Paint.NET and DDS FileType Plus plugin
Save as BC7 (Linear, DX 11+) Generate Mip Map
Cut the first 148 byte
Compress it with LZ4.exe best mode
Cut first 11 and last 8 byte from the compressed file
You can use my dds helper to do these 3 step above if you not familiar with hex editor
Rename to original name
Make a folder eg: "content" and put there without subfolders
Use my script to insert them, select content.vfx, then content folder, rename the NEW vfx file, backup original

rengareng vfx tool: viewtopic.php?f=9&t=9523
rengareng lng tool: viewtopic.php?f=12&t=9469&p=43573#p43573
iOrange and Prodnik tool: https://www.gameru.net/forum/index.php? ... 71879&st=0
Paint.NET: https://www.getpaint.net/
Paint.NET DDS FileType Plus: https://forums.getpaint.net/topic/11173 ... 019-02-07/
LZ4: http://fastcompression.blogspot.com/p/lz4.html
binlv1
Posts: 54
Joined: Sat Apr 15, 2017 9:00 am

Re: Metro 2033 / Last Light lng tool

Post by binlv1 »

swuforce wrote:For text:
The newest lng is in the patch_01_shared.vfx/vfs0 file
Unpack it with rengareng or iOrange tool
Edit it with rengareng tool
Make a folder eg: "patch" and put there without subfolders
Use my script to insert it, select patch_01_shared.vfx, then patch folder, rename the NEW vfx file, backup original

For font:
They are in the content files
Unpack them with rengareng tool then convert them to dds with Prodnik a1tt tool
Or save them directly as dds with iOrange tool
Edit them eg with Paint.NET and DDS FileType Plus plugin
Save as BC7 (Linear, DX 11+) Generate Mip Map
Cut the first 148 byte
Compress it with LZ4.exe best mode
Cut first 11 and last 8 byte from the compressed file
You can use my dds helper to do these 3 step above if you not familiar with hex editor
Rename to original name
Make a folder eg: "content" and put there without subfolders
Use my script to insert them, select content.vfx, then content folder, rename the NEW vfx file, backup original

rengareng vfx tool: viewtopic.php?f=9&t=9523
rengareng lng tool: viewtopic.php?f=12&t=9469&p=43573#p43573
iOrange and Prodnik tool: https://www.gameru.net/forum/index.php? ... 71879&st=0
Paint.NET: https://www.getpaint.net/
Paint.NET DDS FileType Plus: https://forums.getpaint.net/topic/11173 ... 019-02-07/
LZ4: http://fastcompression.blogspot.com/p/lz4.html


thank u, i will try