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, 04:42 AM.

  • From previous post in thread:

    [Circus] DCII: /HBC*0@419200

    Currently playing: N/A | Currently seeking: My Requests
    Co-leader of: HF-Bishoujo Games | Member of: (Unofficial) HF-Incest
    My Resources: AGTH Tutorial and H Codes | Bishoujo Game Reviews

    Comment


    • 個室病室 hooker patch

      [061006] [アトリエD] 個室病室

      Extract to game folder and run hroom_alt.exe

      <<DOWNLOAD>>

      Have a nice day~

      Comment


      • Uhh... anyone know /h code for Da Capo Summer Vacation..?
        I looked everywhere, to no avail..

        How in the world anyway all of you get those code anyway..?
        Is there any tips to learn them too..?
        "Looking up is good, but always remember to look down to see what we were walking on.."

        "Do you know what's behind the glimmering moon? A completely dark surface unseen to any others.."

        Comment


        • It's people with programming understanding that figure out those data offsets. Unfortunately, I know next to nothing about programming.

          Hints have been posted in the thread though for "trial and error" searching of /h values, and also some things to try with a debugger to look for values. I've compiled these things onto the thread on my site (as this thread has grown so long it's hard to find specific information like that now). The /h command

          For Danj2k's info on Ollydebug, look at this post.

          As for DCSV, no one has posted codes for it. However, typically companies use the same engine, and many Circus games where the codes have been discovered follow the same pattern: /HBC*0@[address]. So, try it. Find out the address of the thread that is only hooking partial text in DCSV, and just plug it in with the /H command.
          Last edited by mastress; 10-16-2006, 11:19 PM.

          Currently playing: N/A | Currently seeking: My Requests
          Co-leader of: HF-Bishoujo Games | Member of: (Unofficial) HF-Incest
          My Resources: AGTH Tutorial and H Codes | Bishoujo Game Reviews

          Comment


          • Does anyone know how to work the game Wind A breath of heart? thanks

            Comment


            • AGTH Update

              1) Experimental support of PC-98 games executed under emulator Anex86 v2.78
              2) Wrong MBCS symbols are now skipped (they could cause stop of capturing in previous versions).
              3) Minor interface changes


              Notes of PC-98 text capturing:

              Attach AGTH to anex86.exe
              To also capture text from text screen modes add /x parameter (default is from graphic screen modes only).

              Comment


              • PC-98 support... now this sounds promising...
                Maybe I had wanted it this way.
                Maybe I had entrusted my death to you all along.
                Lord Nobunaga... death is so peaceful...
                I'm finally free from your cruelty.
                HF-Bishoujo Games Member #43

                Comment


                • [QUOTE=Haloman;1025982] Can MOZU be text hooked, because i am using agth and it doesnt seem to be hacking the text.
                  If you dont mind, i would like a little assistance at this situation.


                  Seems a bit wierd, I had no problems running it, and the only thing i have is /c on it. I'm still using the 4 whatever build.

                  Comment


                  • So enlighten me on this aspect:

                    AGTH only hooks the text, but it doesn´t translate it to any language; in order to get it translated, i need for example QUICK ATLAS??

                    Comment


                    • If someone don't have the atlas yet, send a PM to me and I will send a link to torrent.

                      some time ago I make a repost of the old torrent of ATLAS created by Kolyce. until today, still have 8 seeders (and of course , I am still seeding it until today) .

                      And please, dont ask to me whon to use atlas. read the HELP in the software, ok? I already received more than 50 messages asking whon atlas is used... I don't speak english well. I READ english very well, but I WRITE very bad english. I already received more than 50 messages asking whon atlas is used...

                      If you want, read my tutorial, this tuto is incomplete and imperfect, but, helps a little:
                      http://br.geocities.com/fhcofbrasil/...themumjogo.htm

                      but, please, don't post a link to ATLAS in here: these kind of torrent is against the rules of the forum.

                      And don't say for anybody out of this forum, that I am sharing this torrent. This is a secret! only HongFire Forum members can use it!

                      .
                      Last edited by fhc; 10-21-2006, 06:31 PM.
                      ...

                      Comment


                      • Thanks for the heads up, and i´m already downloading atlas btw

                        Again thanks for the support

                        Comment


                        • hi, all
                          i have some questions of agth, but sorry my english is not good^^

                          for my poor english, i can't understand the Help of agth
                          so i try&guess how to use agth by 40+games on my harddisk
                          and now i think i know some "/R /L /NH /C /CT /KF /KS"

                          however i dont know the rule of "/P /W /H /V /X /IH /NC /NJ /NS "
                          who can help me? give me some etc, ok?

                          i also find some games cannot use /L or /R
                          etc: custom slave 3(カスタリ隷奴3)
                          so i use
                          D:\Backup\agth\agth.exe /C /KS2 C:\WINDOWS\AppPatch\AppLoc.exe "D:\Games\HGames\KISS\カスタリ隷奴3SE\CR3.exe" "/L0411"
                          ok, now it work...but why???

                          my OS is winxp, simple chinese Ver.

                          etc this game:人妻奴隷教師2
                          http://tanabe.mediaf.jp/html/product/05.htm



                          俺俺の俺の名俺の名前俺の名前は俺の名前は、俺の名前は、松俺の名前は、松井俺

                          の名前は、松井裕俺の名前は、松井裕吾俺の名前は、松井裕吾…俺の名前は、松井

                          裕吾…俺の名前は、松井裕吾……、俺の名前は、松井裕吾……、こ俺の名前は、松

                          井裕吾……、この俺の名前は、松井裕吾……、この媦俺の名前は、松井裕吾……、

                          この媦園俺の名前は、松井裕吾……、この媦園の俺の名前は、松井裕吾……、この

                          媦園の媦俺の名前は、松井裕吾……、この媦園の媦生俺の名前は、松井裕吾……、

                          この媦園の媦生な俺の名前は、松井裕吾……、この媦園の媦生な。俺の名前は、松

                          井裕吾……、この媦園の媦生な。

                          ここのこのチこのチ●このチ●ポこのチ●ポをこのチ●ポを咥このチ●ポを咥えこ

                          のチ●ポを咥えてこのチ●ポを咥えていこのチ●ポを咥えているこのチ●ポを咥え

                          ている女このチ●ポを咥えている女はこのチ●ポを咥えている女は、このチ●ポを

                          咥えている女は、水このチ●ポを咥えている女は、水野このチ●ポを咥えている女

                          は、水野穂このチ●ポを咥えている女は、水野穂花このチ●ポを咥えている女は、

                          水野穂花とこのチ●ポを咥えている女は、水野穂花といこのチ●ポを咥えている女

                          は、水野穂花というこのチ●ポを咥えている女は、水野穂花という俺このチ●ポを

                          咥えている女は、水野穂花という俺のこのチ●ポを咥えている女は、水野穂花とい

                          う俺の担このチ●ポを咥えている女は、水野穂花という俺の担任このチ●ポを咥え

                          ている女は、水野穂花という俺の担任教このチ●ポを咥えている女は、水野穂花と

                          いう俺の担任教師このチ●ポを咥えている女は、水野穂花という俺の担任教師でこ

                          のチ●ポを咥えている女は、水野穂花という俺の担任教師であこのチ●ポを咥えて

                          いる女は、水野穂花という俺の担任教師であるこのチ●ポを咥えている女は、水野

                          穂花という俺の担任教師である。このチ●ポを咥えている女は、水野穂花という俺

                          の担任教師である。
                          like this, i set /KF1:500, then...


                          俺の名
                          俺の名前は
                          俺の名前は、松
                          俺の名前は、松井裕
                          俺の名前は、松井裕吾
                          …俺の名前は、松井裕吾……、
                          俺の名前は、松井裕吾……、この
                          俺の名前は、松井裕吾……、この媦園
                          俺の名前は、松井裕吾……、この媦園の媦
                          俺の名前は、松井裕吾……、この媦園の媦生な
                          俺の名前は、松井裕吾……、この媦園の媦生な。

                          このチこのチ
                          このチ●ポ
                          このチ●ポを咥
                          このチ●ポを咥えてこのチ●ポを咥えていこのチ●ポを咥
                          このチ●ポを咥えている女はこのチ●ポを咥えている女は、このチ●水このチ●ポ

                          を咥えてい咥えている女は、水野穂
                          このチ●ポを咥えている女は、水野穂花と
                          このチ●ポを咥えている女は、水野穂花という
                          このチ●ポを咥えている女は、水野穂花という俺の
                          このチ●ポを咥えている女は、水野穂花という俺の担任
                          このチ●ポを咥えている女は、水野穂花という俺の担任教師このチ●ポを咥えてい

                          る女は、水野穂花という俺の担任教師でこのチ●ポ
                          このチ●ポを咥えている女は、水野穂花という俺の担任教師である。このチ●ポを

                          咥えている女は、水野穂花という俺の担任教師である。
                          almost clear, but not perfect
                          is there another way to fix?
                          Last edited by Desmonthes; 10-22-2006, 12:58 AM.

                          Comment


                          • AGTH Update

                            Improved PC-98 support.


                            fhc
                            You should remove /W from guide - it do nothing without paremeters.
                            Also /V and /X are very rare needed and could slow down the game, so it's not a very good idea to always use them.

                            winterddd
                            /H

                            Comment


                            • Setx, can you explain in detail? i don't know how to use /H{A|B|W|H}

                              Comment


                              • winterddd
                                Read/search the thread, i've already explained it.

                                Comment

                                Working...
                                X