Kaminari wrote:
Thanks a lot for implementing text hook support in those emus.
I'm not a big fan of auto-translators but they sometimes prove very convenient.
Yes, I too prefer the option of having a good hand-made translation for a game!
Unfortunately, a lot of Japanese retro games remain untranslated, and knowing the real amount of effort one need to put to produce a good translation, I decided to make this pack to have at least "quick and dirty" option to play the games.
Snake Plissken wrote:
Thank for your work! It's great and very useful indeed
Thanks, Snake
--------------------------------------
Anyway, here's a little extra stuff I wanted to show: Lua helper scripts for Textractor.
A couple of months ago I managed to beat Legend of Xanadu on PC Engine CD and Legend of Heroes 3 on PC-98 by relying to Textractor translation only.
Unfortunately, the game outputs the conversation text in a form "character name + message" without putting anything between character name and message, resulting in somewhat garbled translation.
I decided to make a simple Lua script (since Textractor allows you to modify the hooked text using Lua) to separate character names from messages, so they would get translated properly.
The Lua script is simple - it just looks up in a dictionary of character names, and if it finds a match, it cuts out the name from the rest of message. I populated the character list while playing the game.
Here's the result:
------------------------------------
Without Lua helper script:
------------------------------------
With Lua helper script:
Though sometimes it cuts out the name even if it should not do so - for example, in a case when non-conversation message starts with character name, but these cases are rare, and there's not simple way to detect such messages.
It's possible to adapt the script for your game if it uses the same conversation text format - just replace the character names in Lua script with the ones from your game.
You could download the scripts here:
Legend of Xanadu:
https://gist.github.com/Mistranger/2736 ... 75a5b260f6Legend of Heroes 3:
https://gist.github.com/Mistranger/bb35 ... 4a83f9a04cJust load them in Textractor's Lua extension and place it before your translator extension (Google, DeepL) for it to work properly.