Like FOJ? Please donate to help FOJ stay online & continue to improve!

Donations are greatly appreciated, and help with the costs of providing you with your FO Fix!

PM Notifier

You are not logged in.

FOJ Translation
FOJ Login
Welcome Guest.






Lost Password?
No account yet? Register
PM Mailbox

You are not logged in.

Main Menu
Home
Forum
Contact Us
Search
Links
Tutorials
Time Zone
Downloads
All Downloads
Latest 100
Top 100
Flatout 3
FlatOut: U. Carnage
FlatOut 2
FlatOut 1
Crashday
Submit File
FOJ Recent Topics

powered_by.png, 1 kB
Newest Downloads
Apr.04
Downloads
File**spam**
>> << (94)
Apr.03
Downloads
File**spam**
>> << (65)
Apr.03
Downloads
File**spam**
>> << (37)
Apr.03
Downloads
File**spam**
>> << (77)
Apr.03
Downloads
File**spam**
>> FlatOut 2 << (90)
Most Downloaded
Dec.25
Downloads
File iconBFS2Unpacker
47624
Dec.10
Downloads
File iconComplete FOJ Mod in one .exe file
47425
Nov.15
Downloads
File iconbfsunpack for Flatout 1
37244
Dec.16
Downloads
File iconFO2 - Euro v1.2 Official Patch
32474
Feb.06
Downloads
File iconFormula 1 for FlatOut2 with CustomCarMod_v1_2
22999

FlatOut language tools download_trans.gif Download

Thumbnails:

Description:

This package is composed of two programs; a first one to extract all language strings from FlatOut/FlatOut2 files and export them to a LUA file, and a second one to rebuild the language files from the LUA file.

Those two applications not only allow you to modify strings, but also to add new strings...

  • Extracting strings from FlatOut (fo2lgunpack.exe)

    Syntax: fo2lgunpack.exe [options]...
    where options are:
    --in|-i languages.dat : Input language file
    --out|-o { file_name } : Output LUA language file
    [--version|-V] : Show version
    [--help|-h] : This help

    The main source file is "languages.dat", and all necessary additional files (language0.dat, language1.dat, language2.dat, language3.dat, language4.dat, language5.dat, language6.dat, language7.dat, language8.dat, languages.bed) are searched into same directory as where languages.dat is.
    The output file can be anywhere on your hard disk.

    Example:
    fo2lgunpack.exe --in c:\FO2_unpacked\data\languages\languages.dat --out c:\temp\FO2_strings.lua

    This will create c:\temp\FO2_strings.lua from language files from directory c:\FO2_unpacked\data\languages

  • Rebuilding FlatOut language files (fo2lgpack.exe)

    Syntax: fo2lgpack.exe [options]...
    where options are:
    --in|-i { file_name } : Input LUA language file
    --out|-o languages.dat : Output language file
    [--version|-V] : Show version
    [--help|-h] : This help

    This will read the input LUA file and rebuild FlatOut languages files. The output file is now languages.dat, and all other files will be created in same directory. Beware: there is no warning for overwriting, and no directory creation, so be sure all directories in path exist...

    In case there is an error in the LUA file, you'll receive the LUA parser error string, with the position of the faulty line - if you're lucky ;). (see Readme.txt for more information)

    Example:
    fo2lgpack.exe --in c:\temp\FO2_strings.lua --out c:\temp\FO2\languages.dat

    Will create all all languages files in (existing) c:\temp\FO2 directory, based on data content in c:\temp\FO2_strings.lua file.

  • Editing the LUA file
    If everything was perfect in a perfect world, you'll just have to launch your favorite text editor and start changing the LUA file you just generated...
    Unfortunately, this is not that simple as the LUA file generated is made of "wide chars" (each character is coded on 2 bytes instead of just one ASCII byte as usual, because of "exotic" languages).

    After making some searching, I found only one editor being able to edit the LUA file without messing it: Xemacs, get the V21.5.7 binary installer.

    Edit: While writing this, I made another test with Notepad and WordPad, and they're able to open the file correctly - must be because of installation of "East Asian Language Support" (see below), but some of the (poor) features Notepad has are disabled (like jump to line), and moreover it's extremely slow, making it more or less unusable...

    A second thing you'll have to do is to install East Asian Language Support in Windows, because of the japanes language :). Basically it just installs a few new fonts, and some .dll for I don't know what. The whole procedure is explained here, but follow instructions for points 1, 2, and 4, and you'll be ready...

    If you do not install East Asian Language Support, then japanese/russian strings and some characters from other languages (including english!!) in LUA file will be displayed with "~" characters in Xemacs, and I think it will mess up everything if you save the file...

    ATTENTION: If you open the LUA file in your editor and see garbage (check thumbnails at top of page to see what's right and what's wrong...), or characters separated by what seems to be spaces or squares, then you have it all wrong... go get Xemacs! ;)

    (more on the LUA file syntax in Readme.txt...)

  • Package content

    fo2lgpack.exe : Packing tool (rebuild language data in FlatOut)
    fo2lgunpack.exe : Unpacking tool (extract language data from FlatOut)
    launch_fo2lgpack.ini : fo2lgpack.exe configuration file for GUIlauncher
    launch_fo2lgunpack.ini : fo2lgunpack.exe configuration file for GUIlauncher
    Readme.txt : Detailed instructions on tools and LUA file format


  • History

    20070605: V1.1 - Fix backslash escaping
    20070508: V1.0 - First release

GulBroz.


Submitted On:
11 Dec 2007
Submitted By:
GulBroz (GulBroz)
File Date:
05 Jun 2007
File Author:
GulBroz
File Version:
1.1
File Size:
194.77 Kb
File Type:
rar
Downloads:
945
Rating:
stars/0.gifTotal Votes:0
Be the first to comment! Please sign in or register.
Gearheads Online
We have 10 guests online
© 2013 Flatout Joint
Joomla! is Free Software released under the GNU/GPL License.