Saints Row 2 JP Strings Tools v0.2 (Extracts and builds Japanese le_strings files)

Discussion in 'Tool Releases' started by nclok1405, Jan 21, 2019.

  1. Saints Row 2 JP Strings Tools v0.2
    Created by nclok1405 ◆VScYHamhfU

    This tool is based on the program codes from ThomasJepp.SaintsRow
    Copyright (c) 2013-2016, Thomas Jepp
    All rights reserved.
    Please see "ThomasJepp.SaintsRow license.txt" for more information.


    === Description ===
    This tool extracts and builds strings from Japanese language files of Saints Row 2.

    ThomasJepp.SaintsRow.ExtractStrings.exe cannot properly extract Japanese strings because
    Saints Row 2 uses its own Japanese encoding which doesn't match with anything like UTF-8 or Shift-JIS.

    sr2_jp_character_table.tbl is the character mapping file used on extract and build of strings, and as of v0.2 it is still incomplete.
    The missing characters are decoded as \uXXXX, where XXXX are "code point" of the missing character.

    To extract and build the string files follow the following steps:
    1. Copy "static_JP.le_strings" to this tool's folder. "static_JP.le_strings" is available from Gentlemen of the Row's optional_mod_stuff\modified folder.
    2. Double-click "sr2jpstrextract.exe". A file named "static_JP.txt" will be produced.
    3. To build a modified "static_JP.le_strings" from the "static_JP.txt", double-click sr2jpstrbuild.exe.

    To extract and build "voice_script_JP.le_strings" and "platform_PC_JP.le_strings" (both available from the same "modified" folder of GotR) you can use the provided *.cmd batch files.

    Technical note: I used g++ compiler from MinGW 4.9.2 with the following options:
    g++ -std=c++11 -Os -static -lstdc++ -lgcc -lwinpthread sr2jpstrextract.cpp
    g++ -std=c++11 -Os -static -lstdc++ -lgcc -lwinpthread sr2jpstrbuild.cpp

    === Changelog ===
    v0.2 (January 26, 2019)
    * Added text tags support.
    * Slightly update the character table.

    v0.1 (January 22, 2019)
    * Initial Release

    === 日本語での説明 (Description in Japanese) ===
    このツールはSaints Row 2の日本語言語ファイルからテキストの抽出・改造を行います。

    Saints Row 2はUTF-8やShift-JIS等と異なる独自の日本語文字コード体系を用いており


    1. 言語ファイル"static_JP.le_strings"をこのツールのフォルダにコピーしてください。"static_JP.le_strings"はGentlemen of the Row Modの optional_mod_stuff\modified ファルダにあります。
    2. "sr2jpstrextract.exe"をダブルクリックしてください。"static_JP.txt"というファイルが作られます。
    3. 改造した"static_JP.txt"を基に、改造した"static_JP.le_strings"を作るには、"sr2jpstrbuild.exe"をダブルクリックしてください。


    技術的情報: このツールはMinGW 4.9.2のg++コンパイラで以下のコマンドラインオプションを使ってコンパイルしました。
    g++ -std=c++11 -Os -static -lstdc++ -lgcc -lwinpthread sr2jpstrextract.cpp
    g++ -std=c++11 -Os -static -lstdc++ -lgcc -lwinpthread sr2jpstrbuild.cpp

    === 更新履歴 ===
    v0.2 (2019/01/26)
    * 「テキストタグ」サポートを追加
    * 文字マッピングファイルを少しアップデート

    v0.1 (2019/01/22)
    * 初リリース

    Attached Files:

    Last edited: Jan 25, 2019
    daspex and Fan of Saints like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice