A system of programs which allow in-game dialogue to be displayed instantly in a web browser.
Designed as a tool for studying Japanese, it works great with browser plugins such as Yomichan, allowing for painless dictionary lookups, or vocabulary mining by using Yomichan's Anki integration.
Emu LiveText consists of
- The Python server
server.py
orserver.exe
- A Lua Script for the BizHawk emulator
- The local web page EmuText.html
The easiest way to begin with Emu LiveText is by downloading its latest release found on the right hand side of the github page. That way you do not need Python installed to use the Emu LiveText, and you do not have to launch the program from the command-line. More experienced users may prefer to clone the repository, if they do not care about the previous two conveniences. There is currently no Github Release for Linux, so Linux users must clone.
- Download the Github Release (right hand side of the Github Page), and extract the contents.
- Download the BizHawk emulator.
- Recommended: To launch all components simultaneously with a script, follow the short instructions in
Release-Windows-One-Click-Run-Example.bat
and skip steps 4 - 6. - Open your desired rom in Bizhawk, and run
BizHawk_text_dump.lua
found ingame_resources\GAME_TITLE
by drag-and-dropping it into the Bizhawk window. - Launch EmuLiveText.exe and enter the directory to your game's resource folder eg
game_resources\Pokemon_Blue_JP
- Open EmuText.html
- Send text to Emu LiveText with the dump key (Default: G). You may need to refresh the web page once.
Install Python on your local machine if you do not have it already.
- Clone this repository, and download the BizHawk Emulator.
- Launch server.py using a games' resource folder as a positional argument. For example:
./server.py game_resources/Pokemon_Blue_JP
. You will see the following prompt:Waiting for connection to web client.
- To establish a connection, open EmuText.html with a web browser. You should receive the following prompt on the Python server:
Connection established with web client.
- To begin seeing text from game, open BizHawk and load the game you wish to play.
- Drag and drop the lua script found in your games' directory within game_resources into BizHawk's window. Each time you press the dump key (Default: G), text will appear in your web browser.
For Windows users, the repo is bundled with a batch file named Windows-One-Click-Run-Example.bat, which allows you to launch each part of Emu LiveText simultaneously. note: Another File exists called Release-Windows-One-Click-Run.bat, which is only for Github Release users.
Follow the instructions within Windows-One-Click-Run-Example.bat. Now launching this script will directly launch the sever, web client, and BizHawk with the appropriate ROM and Lua script simultaneously.
To make use of instant definition lookups, install Yomichan. To instantly create Anki flashcards from Yomichan definitions, follow these steps from Yomichan's official site.
To change the dump key, open the lua file for the desired console in /lib/. Modify the line DUMP_KEY = "G"
to your desired key.
Special characters are case sensitive and must be written beginning with a capital letter eg: "Alt", "Shift", "Ctrl" or "Space"
Be aware that BizHawk uses hotkeys. For instance F will pause the game if used as a dump key. Most keys are unused but can be checked from Config > Hotkeys in BizHawk.
- RESOURCES.md is located in /game_resources/, and covers the purpose of each resource file needed to add support for new games
- Pokemon Blue (ポケットモンスター 青)
- Pokemon Crystal (ポケットモンスター クリスタルバージョン)
- Pokemon Trading Card Game 2: (ポケモンカードGB2) (Uses kanji!)
- Legend of Zelda (ゼルダの伝説) (cartridge version)
- Mother (Earthbound Beginnings)
More coming soon! Open a GitHub issue to request new titles!