How babalae/better-genshin-impact works
BetterGI is a Windows desktop assistant for Genshin Impact, automating gameplay through computer vision and simulated input. Its broad user workflow is to start the app, choose game capture, then run real-time helpers or standalone tasks that interpret the game screen and issue actions; other documented capabilities include scripted/pathing automation, macros, and plugins. The graph preserves these major branches and representative internal recognition, input, and task layers. Relationships are limited to README-described behavior or visible source references; unsampled task wiring is left unasserted.
Main entry points: App.xaml.cs BetterGI App · InputHub.cs Input Simulation · RecognitionObject.cs Image Recognition · GameTask Real-time Helpers
Components 23
Desktop App
- BetterGI App
BetterGenshinImpact/App.xaml.cs - Configuration
BetterGenshinImpact/Core/Config/AllConfig.cs
Gameplay Automation
- Real-time Helpers
BetterGenshinImpact/GameTask - Standalone Tasks
BetterGenshinImpact/GameTask - Daily Routine
BetterGenshinImpact/GameTask - Pathing Tasks
BetterGenshinImpact/Core/Script/Dependence/AutoPathingScript.cs - Input Recording
BetterGenshinImpact/Core/Recorder/KeyMouseRecorder.cs - Quest Voice
BetterGenshinImpact/GameTask/QuestVoice/Features/Tts/GptSovitsEngine.cs
Vision and Input
- Game Capture
Fischless.GameCapture/Graphics/GraphicsCaptureV2.cs - Image Recognition
BetterGenshinImpact/Core/Recognition/RecognitionObject.cs - ONNX Runtime
BetterGenshinImpact/Core/Recognition/ONNX/InferenceRuntimeService.cs - OCR
BetterGenshinImpact/Core/Recognition/OCR/OcrFactory.cs - Input Simulation
BetterGenshinImpact/Core/Input/InputHub.cs - Overlay Mask
BetterGenshinImpact/Core/Mask/MaskWindowDrawingBoard.cs
Scripts and Plugins
- Script Engine
BetterGenshinImpact/Core/Script/ScriptExecution.cs - Script Repositories
BetterGenshinImpact/Core/Script/Repositories/ScriptRepositoryStore.cs - Plugin Hosting
BetterGenshinImpact/Core/Plugins/Hosting/PluginManager.cs
App Services
- Storage Manager
BetterGenshinImpact/ViewModel/Windows/StorageManagementViewModel.cs - Storage Service
BetterGenshinImpact/Infrastructure/Storage/StorageArea.cs - App Storage Areas
BetterGenshinImpact/Service/AppStorageAreaProvider.cs - Map Mask State
BetterGenshinImpact/GameTask/MapMask/MapMaskStateStorage.cs
Other components
- Player
- GPT-SoVITS
Connections 24
- Player → BetterGI App: starts
README.md - BetterGI App → Game Capture: captures game
README.md - BetterGI App → Configuration: loads settings
BetterGenshinImpact/App.xaml.cs - Player → Real-time Helpers: runs helpers
README.md - Player → Standalone Tasks: starts tasks
README.md - Player → Daily Routine: starts routine
README.md - Player → Pathing Tasks: runs routes
README.md - Player → Input Recording: records input
README.md - Game Capture → Image Recognition: provides frames
- Image Recognition → ONNX Runtime: uses models
- Image Recognition → OCR: uses OCR
- Real-time Helpers → Input Simulation: simulates actions
README.md - Standalone Tasks → Input Simulation: simulates actions
README.md - Pathing Tasks → Input Simulation: simulates actions
- Input Recording → Input Simulation: records events
- BetterGI App → Overlay Mask: shows overlay
README.md - Player → Script Engine: runs scripts
README.md - Script Engine → Script Repositories: loads resources
- BetterGI App → Plugin Hosting: initializes plugins
BetterGenshinImpact/App.xaml.cs - Player → Storage Manager: manages storage
- Storage Manager → Storage Service: cleans areas
BetterGenshinImpact/ViewModel/Windows/StorageManagementViewModel.cs - App Storage Areas → Storage Service: registers areas
BetterGenshinImpact/Service/AppStorageAreaProvider.cs - Player → Map Mask State: tracks map state
- Quest Voice → GPT-SoVITS: sends HTTP requests
BetterGenshinImpact/GameTask/QuestVoice/Features/Tts/GptSovitsEngine.cs