Announcement

Collapse

Please use the Hentai ID thread for all hentai ID requests. Click me for link!

The Identification Thread is Here:

http://www.hongfire.com/forum/showthread.php/447081
See more
See less

AGTH - text extraction tool for games translation

Collapse
This is a sticky topic.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • AGTH - text extraction tool for games translation

    Current AGTH version: 2011.5.9

    Before asking something make sure you've read this first post, guides and searched in this thread.


    Related links

    AGTH home site: http://sites.google.com/site/agthook/

    Guide by mastress: http://blgames.proboards25.com/index...ead=1141106731

    Screenshot guide by fhc: http://www.hongfire.com/forum/showthread.php?t=59189

    Advanced AGTH Video Tutorials by Freaka: http://www.hongfire.com/forum/showthread.php?t=80401

    Itadaki (external toolset for adding furigana (reading) to kanji): http://www.hongfire.com/forum/showthread.php?t=75958

    Translation Aggregator (tool for querying many translation engines): http://www.hongfire.com/forum/showthread.php?t=94395



    AGTH general information

    AGTH is a tool for capturing text from running programs. Main purpose - extracting text from japanese games for translation.

    AGTH requires Windows 2000 or newer NT-based system, x64 and server variants are also supported. Recommended operation system - Windows 2003 and newer (yes, some features won't work on XP). With Vista/Win7 you would likely want to run AGTH with elevated rights or disable UAC.


    Running program under AGTH

    AGTH consists of hook module agth.dll and loader agth.exe.
    To load application - pass its name to agth.exe as command line argument.

    Example for running from shortcut:
    1) Create shortcut for game.
    2) Open properties of created shortcut. In "Target" field will be something like
    Code:
    "C:\Games\Maou no Musume-tachi\twins.exe"
    3) Append to the start of "Target" field full path to where you extracted AGTH, so it will be like
    Code:
    "C:\AGTH\agth.exe" "C:\Games\Maou no Musume-tachi\twins.exe"
    4) Make sure that "Start in" filed hasn't changed after you changed the "Target" and there is space between AGTH and game exe paths.
    5) Run game from this shortcut.


    Before name of game exe you can specify some options for AGTH. Each option must be separated by spaces from both sides.

    Example of running the same game but also automaticaly copy captured text to clipboard:
    Code:
    "C:\AGTH\agth.exe" /C "C:\Games\Maou no Musume-tachi\twins.exe"

    Working with loaded AGTH

    After load AGTH will create its window, where it will show captured text.

    AGTH separetes text into several 'text threads' based on 'context' (to avoid mess from mixing text of game, menu, title...).
    Displayed text thread could be chosen by drop-down list in the upper part of AGTH window. As game runs, new text threads could be found and added to list.

    If you close AGTH window it will not detach it's hook from the running applications, so if AGTH is started again it will continue to hook the text, hook options will be unchaged too.


    Additional features

    AGTH can try to correct locale of programs - useful for running japanese games with system locale set to non-japanese.

    /R option tries to correct locale the AGTH-way - minor visual glitches are possible, but overall program should run like started on system with specified locale.
    /L option works exactly as running program under AppLocale (also this option requires installed AppLocale).

    Both options can be used together.

    AGTH can be used just for fixing locale without any text hooking.
    Example of starting QuickATLAS with locale overriden to japanese (useful in case when you see only '?????' in it instead of characters):
    Code:
    C:\AGTH\agth.exe /L /NH "C:\Program Files\Atlas\QuickATLAS.exe"
    If you can't find useful text - try options /X3 and/or /V with loading by /P

    Recent changes

    2011.5.9
    • Added new type of user hook: Code.
    • Hardware hooks now also work on 32-bit XP SP3.
    • Improved /R override, now it should be able to run InnoSetup installers.
    • Added symbol '◇' to default filtering.
    • Removed user hook type: Hex.

    2011.4.21
    • Added support for LiveMaker engine.
    • Added support for IronGameSystem engine.
    • Updated KiriKiri support.
    • Updated RealLive support.

    2011.4.18
    • ASLR support, can be disabled with ':' at the end of user hook.
    • Improved /R override, just /R performs more aggressive process 'japanization' than /R411
    • Updated RealLive support.

    2011.4.16
    • Locale override support for Win7 (/R option).
    • Internal threading optimizations.
    Attached Files
    Last edited by Setx; 05-09-2011, 05:42 AM.

  • #16
    i was wondering if this work with kimi nozo dvd version or not?

    Comment


    • #17
      sesshoumarusamasa
      Yes it does!
      Haven't you read the first post? (part "rUGP based games")

      Comment


      • #18
        Hi Setx, thanks for your great work on AGTH.

        I tried to use it with Chikan Wa Hanzai! ( http://www.getchu.com/soft.phtml?id=100781 ) and a strange thing happens: when I'm in the config window (the first that appears when you double-click on the shortcut) AGTH runs in background as normal, but as I run the game, AGTH disappears. Seems like the game actually kills the process when running...

        Edit: here's the problem: AGTH is hooked to 痴漢は犯罪!.exe, and this .exe is only the configuration menu. When the game is started, this process is terminated (and AGTH is terminated with it) and the real game is a process called "win32.exe". I can't run the game directly from this .exe (I get a window error message), and so I can't hook AGTH to the right process.
        I tried with OTH (that lets you select the process when the game is already running), but it doesn't capture any text
        Last edited by Sear Me; 01-16-2006, 01:18 PM.

        Comment


        • #19
          I don't get this. I managed to attach AGTH to a game, but I don't understand how to make it work with QuickATLAS.

          I tried making a shortcut and using this as the shortcut, like in the example: "C:\agth\agth.exe" /c "C:\Program Files\Atlas\QuickATLAS.exe" "C:\Program Files\minori\WindRP\WindRP.exe"

          It opens QuickATLAS but does not run the game, and yes, I did change the filenames to match mine. I'm confused.
          Last edited by Wererat; 01-16-2006, 10:17 PM.

          Comment


          • #20
            Originally posted by Wererat
            I don't get this. I managed to attach AGTH to a game, but I don't understand how to make it work with QuickATLAS.

            I tried making a shortcut and using this as the shortcut, like in the example: "C:\agth\agth.exe" /c "C:\Program Files\Atlas\QuickATLAS.exe" "C:\Program Files\minori\WindRP\WindRP.exe"

            It opens QuickATLAS but does not run the game, and yes, I did change the filenames to match mine. I'm confused.
            It should be like this:
            "C:\agth\agth.exe" /c "C:\Program Files\minori\WindRP\WindRP.exe"

            and run quick atlas seperately, AGTH apparently ignores everything after the first program
            HF-Key Member # 20

            Note: ATM the Hongfire tracker is displaying more Seeders and Leechers then there actually are on, if you are having problems downloading and no seeds are connecting to you, ask for a seed

            Comment


            • #21
              Sear Me
              1) Make sure you use version 2006.1.4 of AGTH exe and dll.
              2) If yes, and your 痴漢は犯罪!.exe is quite small (less than 1MB) - place it somewhere in the web, so I can download it (preferably archived to rar or 7z).

              mikemil828
              AGTH does not ignore anything after program name to run - it passes that to this program as command line.

              Comment


              • #22
                Originally posted by Setx
                Sear Me
                1) Make sure you use version 2006.1.4 of AGTH exe and dll.
                2) If yes, and your 痴漢は犯罪!.exe is quite small (less than 1MB) - place it somewhere in the web, so I can download it (preferably archived to rar or 7z).
                I'm already using AGTH's latest versione. I uploaded the .exe on rapidshare (only 135kb, rapidshare has renamed the rar file because the name was in japanese, but the .exe inside has the right name)

                http://rapidshare.de/files/11282890/...5281_.rar.html

                Thanks for your help!

                Comment


                • #23
                  Sear Me
                  Try http://agth.nm.ru/agth_beta.rar
                  Does it hook through loader?

                  All other people
                  Do not use this beta - it is test only.

                  Comment


                  • #24
                    Originally posted by Setx
                    Sear Me
                    Try http://agth.nm.ru/agth_beta.rar
                    Does it hook through loader?
                    Yes, after clicking on the "start game" button (at least, I suppose it says "start game" but that's the one I use to play) AGTH keeps running but then I get a windows error message and the game is terminated.

                    BTW, I forgot to mention that the .exe I gave you is the cracked one, so it could be different from the original. I uploaded the original on rapidshare, maybe it can be of some help

                    http://rapidshare.de/files/11338781/...l_exe.rar.html

                    Comment


                    • #25
                      Sear Me
                      Try new version: http://agth.nm.ru/agth_beta.rar

                      Comment


                      • #26
                        Tested, and now it works!

                        Thanx Setx, you deserve a ton of rep points!

                        Comment


                        • #27
                          AGTH update

                          Improved hooking through loaders.

                          New, undocumented in help, experimental option:
                          /Pnumber - attach to running program with process ID 'number' (decimal). PID can be obtained, for example, from Windows Task Manager. Invalidates /L, /R and /NH options.

                          Comment


                          • #28
                            I've tried it with Muv Luv DVD. Doesn't work, but it could just be some mistake I made.

                            Comment


                            • #29
                              I tried it on Fate/Stay Night, and it sort of works. The Japanese words are displayed on the Notepad. But when I tried to get QuickAtlas to do the translation, nothing but ??? comes out. I am already on Japanese for Language for non-unicode programs. What to do now =(

                              Comment


                              • #30
                                Argas
                                http://www.hongfire.com/forum/showth...361#post635361

                                LOLness
                                Switch input language of game/AGTH to japanese.

                                Comment

                                Working...
                                X