Overview of M9A Automation Assistant
# GitHub Repository
https://github.com/MAA1999/M9Awebsite·Indexed 32 days ago
https://1999.fan/zh_cnDocumentation for M9A, a Reverse: 1999 assistant based on MaaFramework v5.1+. Includes user manuals for setup and connection settings, development guides for custom modules and pipeline writing, and detailed data protocols for combat, warehouse inventory, and activity data.
# GitHub Repository
https://github.com/MAA1999/M9Aconfig/warehouse_inventory.json.tasks/WarehouseInventory.json: Task entry definition (group: daily).resource/base/pipeline/warehouse_inventory.json: Pipeline flow (Enter Warehouse → Confirm Tab → Scan → Exit → Return to Main).agent/custom/action/warehouse_inventory.py: Core logic for WarehouseInventoryScan (scanning, OCR, and JSON output).data/combat/items.json: Material data source (grouped by rarity).resource/base/image/Warehouse/Item-<id>.png: Template images for TemplateMatch.config/warehouse_inventory.json: Output snapshot of item counts (git-ignored).WarehouseInventory task scans the warehouse material page to identify all materials with available templates and records their quantities. The resulting data is written to config/warehouse_inventory.json, which serves as a snapshot for features like auto-replenish and material shortage hints.# GitHub Repository
https://github.com/MAA1999/M9ADownload the latest release from the GitHub Releases page or via Mirror 酱. Select the package based on your OS and architecture:
| OS | Package Pattern |
|---|---|
| Windows | M9A-win-x86_64-vXXX.zip |
| macOS (Intel) | M9A-macos-x86_64-vXXX.tar.gz |
| macOS (Apple Silicon) | M9A-macos-aarch64-vXXX.tar.gz |
| Linux (x86_64) | M9A-linux-x86_64-vXXX.tar.gz |
| Linux (ARM64) | M9A-linux-aarch64-vXXX.tar.gz |
| Android (Physical Device) | M9A-<version>-arm64-v8a.apk |
| Android (Emulator/x86) | M9A-<version>-x86_64.apk |
| Android (Universal) | M9A-<version>-universal.apk |
How to check macOS architecture:
Go to Apple Menu $\rightarrow$ 'About This Mac'. If it says Intel, use x86_64; if it says M1, M2, etc., use aarch64.
The Warehouse Inventory system consists of the following components:
tasks/WarehouseInventory.json (grouped as a daily task).resource/base/pipeline/warehouse_inventory.json (handles navigation: enter warehouse → confirm tab → scan → exit → return to main).agent/custom/action/warehouse_inventory.py (implements WarehouseInventoryScan including round-trip scanning, OCR, and majority voting).data/combat/items.json (defines which materials to scan, grouped by rarity).resource/base/image/Warehouse/Item-<id>.png (used for TemplateMatch).config/warehouse_inventory.json (runtime quantity snapshot; gitignored).M9A-Platform-Architecture-Version.zip. For most Windows users, the x64 architecture package (M9A-win-x86_64-vXXX.zip) is required, rather than the ARM64 version (M9A-win-aarch64-vXXX.zip).{
"NodeName": {
"recognition": {
"type": "OCR",
"param": {
"roi": [100, 100, 200, 50],
"expected": ["Confirm"]
}
},
"action": {
"type": "Click"
},
"next": ["NextNode"]
}
}type and param fields.{
"NodeName": {
"recognition": {
"type": "OCR",
"param": {
"roi": [100, 100, 200, 50],
"expected": ["确认"]
}
},
"action": {
"type": "Click"
},
"next": ["NextNode"]
}
}The system is split into a fixed process layer and a configurable recognition layer. The following files define the system:
resource/base/pipeline/activity/auto_promotion.json: Entry scheduling, promotion loops, and auxiliary OCR nodes.resource/base/pipeline/activity/auto_trail.json: Trail scheduling loops.agent/custom/reco/auto_promotion.py: Recognition algorithms for APModeGate (map gates), APPhaseGate (task state reset), and APMapAnalyze (finding stages/stars/swiping).agent/custom/reco/auto_trail.py: Recognition algorithms for ATTrailAnalyze (trail five-states).deps/tools/custom.recognition.schema.json: The master list of all overridable parameters (keys, types, and defaults).| Platform | Download File Pattern |
|---|---|
| Windows | M9A-win-x86_64-vXXX.zip |
| macOS (Intel) | M9A-macos-x86_64-vXXX.tar.gz |
| macOS (Apple Silicon) | M9A-macos-aarch64-vXXX.tar.gz |
| Linux (x86_64) | M9A-linux-x86_64-vXXX.tar.gz |
| Linux (ARM) | M9A-linux-aarch64-vXXX.tar.gz |
| Android (Physical) | M9A-<version>-arm64-v8a.apk |
| Android (x86 Emulator) | M9A-<version>-x86_64.apk |
| Android (Universal) | M9A-<version>-universal.apk |