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
-
Anki - The flashcard application
- Download from the official website
- Install the AnkiConnect add-on (
Tools>Add-ons>Get Add-ons...) - Use the code:
2055492159
-
Yomitan (Browser Extension) - For creating Anki cards from text
- Install from your browser's extension store
- Chrome/Edge
- Firefox
Optional but Recommended
- 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
-
Download GSM
- Go to the latest release on GitHub
- Download the
.exeinstaller for Windows
-
Run the Installer
- Double-click the downloaded
.exefile - Follow the installation wizard
- GSM will be installed to
C:\Users\{YOUR_USER}\AppData\Local\Programs\GameSentenceMiner\
- Double-click the downloaded
-
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
- In OBS, go to
Tools→WebSocket Server Settings - Check Enable WebSocket Server
- Set Server Port to
7274(GSM's default) - Uncheck "Enable Authentication" (or note the password and enter it in GSM's settings)
- Click OK to save
2. Enable Replay Buffer
The Replay Buffer allows GSM to save audio and screenshots retroactively when you create a card.
- Go to
Settings→Output - Go to the Replay Buffer section.
- Check Enable Replay Buffer
- Set Maximum Replay Time to at least 300 seconds (5 minutes recommended)
- Click OK to save
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:
- In the GSM main window, go to the Home tab
- 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
- If this is your first scene, say "Yes" to let GSM create auto scene switching.
- Verify the OBS scene was created and configured correctly.
Alternatively, you can manually create a scene in OBS:
- Click the + button under Scenes
- Add a Window Capture or Game Capture source
- Select your game window
- Ensure audio is being captured in the Audio Mixer
AnkiConnect Configuration
- Open Anki
- Go to
Tools→Add-ons - Select AnkiConnect
- Click Config and verify the settings:
{
"enabled": true,
"webBindAddress": "127.0.0.1",
"webBindPort": 8765
}
- Restart Anki if you made any changes
Connecting a Texthooker
GSM can receive text from texthookers via clipboard monitoring or WebSocket connections.
Method 1: Websocket (Recommended)
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.
- In GSM, go to
Settings→General - Enable WebSocket
- 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->Enableand make sure the port is set to2333
- Agent: Enable Websocket, and make sure the WebSocket URL is set to
Method 2: Clipboard Monitoring
- In GSM, go to
Settings→General - Enable Clipboard Monitoring
- 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:
- OBS Connection: Check the Home tab - the OBS status indicator should be green
- Anki Connection: The Anki status indicator should also be green
- Text Reception: Start your texthooker and game - text should appear in GSM's texthooker page (accessible at
localhost:55000/texthookerby default)
Next Steps
- Learn how to use AI Features for automatic translations
- Visit Troubleshooting if you encounter any issues
Getting Help
If you run into issues:
- Join the Discord server
- Check the Troubleshooting page
- Open an issue on GitHub