About
蓝色星原:旅谣自动化脚本 | Automation for Azur Promilia
Productivity & AutomationMeasured star growth
- in 24h
- +11
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README_en.md
Originalok-ap
QQ Group 1121173471
An image-recognition automation tool for Azur Promilia, built with ok-script.
面向《蓝色星原:旅谣》(Azur Promilia)的图像识别游戏自动化工具。
English | 简体中文
⚠️ Disclaimer
This software is an open-source, free external companion tool, intended only for personal learning and technical exchange. It interacts with the game by simulating ordinary user-interface input, in order to simplify repetitive operations. It does not read game memory, does not modify game files, does not inject into any process, and does not alter any game data.
- Purpose: to reduce repetitive operations only. It is not intended to break game balance, nor to provide any unfair advantage.
- At your own risk: you should fully understand and voluntarily accept all consequences of using this tool, including but not limited to account warnings, removal of in-game rewards, or bans.
- Liability: any problem or consequence arising from the use of this software is unrelated to this project and its contributors.
- Non-commercial: do not use this software for boosting services, resale, or any other commercial or for-profit purpose.
🎮 What is this
ok-ap is an ok-script automation project for Azur Promilia. ok-script is a game automation framework
built around “screenshot → image recognition → simulated keyboard and mouse input”. On top of it, ok-ap
provides the application configuration, tasks, and game-specific implementation that this particular game requires.
Character management and user data
With the party portraits visible in the game, open Character Management and select Capture.
Choose Edit on a slot, select a character with a dedicated class, and save. Unrecognized portraits use the
base class (BaseChar). Select Default to restore that binding. Multiple portraits can share one character
across UI languages and party positions.
To back up character templates, keep the PNG files and bindings.json together in ./user_data/char/.
Stand near an unlocked teleport and create a named route of type Shiny hunt in Route manager. At the teleport or the previous endpoint, select Record next segment. Walk or fly to the next point, stop, and select Finish and save. Your character’s position becomes the endpoint. Recording and replay work without map tracking. You can re-record or replay individual segments. Select Run route to repeat it. You can also select the route in the Run route on-demand task. To transfer a route, copy its folder under user_data/route/ to the same location in the other installation.
Select a route in Route manager, click Open route folder, and edit its meta.py to change that route’s scheduler. The next recording, replay or run loads your changes. The file includes a single-pass navigation example. Only use routes whose Python code you trust.
./user_data/ holds character templates, routes, per-account overrides, and daily reports created by this project.
ok-script stores task and UI settings in configs/, logs in logs/, and diagnostic screenshots in screenshots/ at the installation root.
📥 Download & Install
Installers and portable archives are available on GitHub Releases.
- Mainland China: Recommended to download
ok-ap-win32-China-setup-*.exe(bundled runtime environment, uses domestic mirror for faster and more stable updates). - Global: Recommended to download
ok-ap-win32-Global-setup-*.exe(bundled runtime environment, uses GitHub update source). - Portable: Choose
ok-ap-win32-China-portable-*.7zin mainland China orok-ap-win32-Global-portable-*.7zelsewhere. Both include Python and dependencies. Extract the entire archive and double-clickok-ap\ok-ap.cmd.
💡 Note: Windows Defender may block the installer on first run — click "More info" and select "Run anyway".
🖥️ Requirements
- OS: Windows (x64).
- Privileges: start your terminal / PyCharm / VSCode as Administrator (required for simulated keyboard and mouse input).
- Running from source: Python 3.12 (this version only). Dependencies are managed with uv.
- Game resolution, in-game filters and game language — [unverified], not yet confirmed on a real client; this section will be filled in once confirmed.
🚀 Run from Source
Dependencies are managed with uv (install uv first), and only Python 3.12 is supported.
# Create the virtual environment and install / update dependencies
uv sync
# Run the Release build
uv run python main.py
# Run the Debug build (more recognition output — use this while developing recognition logic)
uv run python main_debug.py
⌨️ Command-line Arguments
The arguments are defined in the framework at ok/util/process.py:571:
# Start, automatically run task #1, and exit when it finishes
ok-ap.exe -t 1 -e
| Argument | Description |
|---|---|
-t <index> |
Automatically run the Nth task on startup. The index refers to the position in the onetime_tasks list in src/config.py (starting from 1). Only accepts an index, not a task name. |
-e |
Exit automatically after the task finishes. |
-h |
Headless mode, no UI is started. Note: this is not --help. |
--help |
Show help. |
🧪 Development & Tests
# Run every test under tests/ (PowerShell, invokes uv run per file)
./run_tests.ps1
# Or run the whole test directory directly
uv run python -m unittest discover -s tests
❤️ Acknowledgements
Contributors
Special thanks
- AliceJump — the application skeleton and the general-purpose capability layer.
- ok-oldking/ok-script — the framework this project depends on.
Third-party
📄 License
This project is licensed under AGPL-3.0.
Explore related projects
Loading…