Skip to main content

GameSentenceMiner on Windows

GSM is primarily developed for Windows and offers the most complete feature set on this platform.

Prerequisites

Before installing GSM, you'll need to have the following software installed:

Required Software

  1. Anki - The flashcard application

    • Download from the official website
    • Install the AnkiConnect add-on (Tools > Add-ons > Get Add-ons...)
    • Use the code: 2055492159
  2. Yomitan (Browser Extension) - For creating Anki cards from text

  • A Texthooker - For extracting text from games
    • Agent - Recommended if the game has a script.
    • Textractor - Works with older games/VNs
    • LunaTranslator - Multi-purpose, highly customizable tool that can work just like textractor, but comes with a lot of virus false-positives. Use at your own risk.
    • LunaHook - LunaTranslator with a lot of the fluff cut out.

Installation

  1. Download GSM

  2. Run the Installer

    • Double-click the downloaded .exe file
    • Follow the installation wizard
    • GSM will be installed to C:\Users\{YOUR_USER}\AppData\Local\Programs\GameSentenceMiner\
  3. First Launch

    • On first run, GSM will automatically set up a Python virtual environment
    • This process may take a few minutes
    • Once complete, the main GSM window will appear

OBS Configuration

GSM uses OBS Studio to capture game footage, screenshots, and audio. A lot of these settings should be configured automatically, but please verify/configure the following:

1. Enable WebSocket Server

  1. In OBS, go to ToolsWebSocket Server Settings
  2. Check Enable WebSocket Server
  3. Set Server Port to 7274 (GSM's default)
  4. Uncheck "Enable Authentication" (or note the password and enter it in GSM's settings)
  5. Click OK to save

2. Enable Replay Buffer

The Replay Buffer allows GSM to save audio and screenshots retroactively when you create a card.

  1. Go to SettingsOutput
  2. Go to the Replay Buffer section.
  3. Check Enable Replay Buffer
  4. Set Maximum Replay Time to at least 300 seconds (5 minutes recommended)
  5. Click OK to save
tip

GSM can automatically start/stop the replay buffer when it detects game activity. You don't need to start it manually.

3. Set Up Your First Game

GSM includes a wizard to help you set up OBS scenes for your games:

  1. In the GSM main window, go to the Home tab
  2. Select your game from the dropdown and click either Window Capture or Game Capture
    • Window Capture is more compatible but may have performance issues with some games
    • Game Capture is more efficient but may not work with all games
  3. If this is your first scene, say "Yes" to let GSM create auto scene switching.
  4. Verify the OBS scene was created and configured correctly.

Alternatively, you can manually create a scene in OBS:

  1. Click the + button under Scenes
  2. Add a Window Capture or Game Capture source
  3. Select your game window
  4. Ensure audio is being captured in the Audio Mixer

AnkiConnect Configuration

  1. Open Anki
  2. Go to ToolsAdd-ons
  3. Select AnkiConnect
  4. Click Config and verify the settings:
{
"enabled": true,
"webBindAddress": "127.0.0.1",
"webBindPort": 8765
}
  1. Restart Anki if you made any changes

Connecting a Texthooker

GSM can receive text from texthookers via clipboard monitoring or WebSocket connections.

GSM is preconfigured to receive text via Websocket on ports 9001 (Agent), 6677 (textractor-websocket), and 2333 (Luna Translator). If you need to change these ports, you can do so in GSM's settings.

  1. In GSM, go to SettingsGeneral
  2. Enable WebSocket
  3. Configure your texthooker to connect to GSM:
    • Agent: Enable Websocket, and make sure the WebSocket URL is set to ws://localhost:9001
    • Textractor: Use the textractor-websocket plugin
    • LunaTranslator: Core Settings -> Others -> Network Service -> Enable and make sure the port is set to 2333

Method 2: Clipboard Monitoring

  1. In GSM, go to SettingsGeneral
  2. Enable Clipboard Monitoring
  3. Configure your texthooker to copy text to clipboard
    • Agent: Enable "Auto Copy"
    • Textractor: Enable "Auto Copy to Clipboard"
    • LunaTranslator: Core Settings -> Clipboard -> Auto Output Text

Verification

To verify everything is working:

  1. OBS Connection: Check the Home tab - the OBS status indicator should be green
  2. Anki Connection: The Anki status indicator should also be green
  3. Text Reception: Start your texthooker and game - text should appear in GSM's texthooker page (accessible at localhost:55000/texthooker by default)

Next Steps

Getting Help

If you run into issues: