Skip to content
Projects

X-Zero-L/AzurPromiliaCopilot

View on GitHub

About

《蓝色星原:旅谣》自动化脚本 / 开源辅助(APC,蓝原脚本),基于 ALAS 下一代框架 Alasio。支持免模拟器官方网页云游戏与安卓 ADB,全自动日常委托、家园种田、养成与奇波捕捉规划、大世界寻路 | Azur Promilia (アズールプロミリア) auto bot & automation script

Games & Emulation

How these counts are measured

Measured star growth

in 24h
Collecting history
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

Original

| English | 简体中文 |

AzurPromiliaCopilot

Azur Promilia auto script | APC, a bot for Azur Promilia (蓝色星原:旅谣), based on the next generation of the ALAS framework, Alasio.

This project is driven by Fable, Opus, Astra, Neon and Carbon. The repo owner only makes wishes and tortures the agents, and the over-defensive parts of the code are GPT's doing, so please don't flame. Someone beg lme to write APAS, I just want a script (

Website CI Release

gui

The 04:00 reset, unattended

After the 04:00 reset the scheduler restarts the game and works through the login rewards, freebies, homestead, crisis, activity and battle pass with nobody at the controls (recorded on a real device, full video, 2:32).

Features

  • Commissions: Daily Commissions to spend stamina (stage and difficulty of your choice, chained with play again; the stage defaults to Auto: always the stage of what the growth plan lacks most, e.g. 结晶萃取 while the characters are short of experience, the next one once that is there, with the reason in the log, and 银光闪闪 when the plan lacks nothing). Before entering, the team member of a chosen slot is put on the field; a fight that deals no damage for two minutes is left, every two losses of the day lower the difficulty by one (configurable), and when every difficulty is lost another stage of the same tab is used, so the day's stamina is spent; the next day starts again at the configured difficulty. A weekly plan first runs the 5 武备获取, 5 基础材料 and 5 主线委托 commissions the battle pass asks for (主线委托 replays the cleared stage 1-1 by default). Weekly Remnant rewards, Crisis. Cleared stages use the game's own auto battle; a stage never cleared has no auto battle, so APC fights it by hand: a look at the screen about every 0.25 s and one input a look (the ultimate and the kibo special as soon as they are charged, taken only when their ring drains, else sent once more; continuous attacks; lock-on; a low member swapped out; walking to 前往调查 and searching for enemies), playing each member by its own skills: every slot comes on the field once at the start and is recognised by the icon on its skill button (any team, no characters assumed), then fights by that character's skills from the game data: the skill when its icon is lit, counted as cast only when the icon goes dark (charges counted for skills that have them), attacks right after a skill or an entry that derives a follow-up, a support brought in when the team buff it gives runs out and taken out after its skill, the first damage dealer of the team kept on the field (another one when the elements of the stage's enemies clearly favour it, from the stage data) and the others brought in for their entry and skill while it cools down, a full ultimate cast before a switch, and a member whose ultimate filled off the field brought in for it; a member that cannot be recognised puts the whole fight on the generic rotation (a swap every 25 s, the skill on its cooldown), written in the log, leaves after the first clear (no chest, no stamina) and runs it again with auto battle for the chest; boss intros are skipped.
  • 日渡尘影: the stages of 塑流圜影 one after another. 日渡尘影 has no auto battle, not even on a cleared stage, so APC fights by hand; a lost stage ends the day and is tried again the next day. The first-clear reward of each stage and the star milestones (奖励馈赠, 75 秘虹晶 every 3 stars) are claimed, and once a day the lowest stage short of three stars is fought again. A stage that gained nothing twice in a row (lost, or won again without a new star) waits until the weakest member of the team gains a level, or for two days, instead of 5 minutes a day on a fight it cannot win. An empty team of a stage is filled from preset 01 of 预设编队 (configurable, no preset is changed). 日渡尘影 costs no stamina; no premium currency, no attempts bought (off by default).
  • Field fights never attack a kibo: open-world combat uses the same per-character kit controller as manual stages (preserving learned team cooldowns across fights, choosing the main dealer by the elite's element, and skipping diagnostic HUD OCR by default to maintain ~0.20 s cadence — live 音霸蛙 cleared in 17.4 s); APC only answers enemies that fight it (an HP bar, the COMBO counter, the game's own auto battle) and never starts a fight; a kibo (its name plate) next to a fight releases attacks and is run away from first, a fight it stays next to is left; within 40 m of a special kibo (异色 / 星彩 / 珍迹) no attack input is made at all across every open-world task. Opt-in WorldFight.CatchBoss (default off) supports two-stage catch_hp weakening + purple/gold boss Star-link throws (strictly excluding 1000091 幻彩), aborting with zero attacks and saving a masked screenshot if a 异色/星彩/珍迹 boss appears.
  • Stamina potions: expiring 凝萃原初水滴 are used before they vanish, 原初水滴 can be used when stamina runs short, with a reserve and a daily limit.
  • Rewards: daily and weekly activity, battle pass, mail, daily sign-in, monthly card, journey record, event tasks (including the daily point rewards of 奇波侦查队), kibo codex, free packs of the shop, achievement milestones, kibo duels (one a day and three a week for the quests: a duel given up right after it starts counts; a duel team short of 8 kibo is filled with the highest level kibo). Gift codes: entered for you once listed in the settings, never submitted twice (off by default).
  • Homestead: collect; the farm plants what the fields can grow until the next run, prioritizing order and cooking-pot shortages (with multi-star seed family matching and an economy-first default filler 金麦 → 云棉 → 月麻), and buys missing seeds at 栗栗花小铺 with 闪亮的硬币 respecting your current player-level limits (only what the plan plants, name and price checked before each buy, never more than is left to buy today, with a reserve and a daily cap); fields up to the home level's caps are cultivated (良田 before 旱田) and the buildings crafted at the 工作台 follow the full Lv15–45 construction order and are placed on free ground by themselves (tried spot by spot over the building areas of the game data: from where the last one went, an area's far end after a few full spots in a row, then the next area; a ghost that does not fit is walked to free ground seen on the screen; spots found full are remembered and skipped, so it works on any homestead; 开垦田地 stays off by default until this version has run a full round live), a processed material a building lacks (the 尘石砖 of the 奇波展示台) is made by the order production first, the 家园扩建许可 is bought and handed to 栗栗花 once 星识等级 allows; kibo are assigned to the buildings short of workers by work type (manual stations such as 工作台 and 磨坊 do not consume labour demand, and kibo in a combat, riding or ranch squad are never moved); feeding and cooking default to 1★–5★ 波波饼 sized to real hourly satiety drain plus production buffer; 5 pieces of equipment a week are forged at the 锻造铺 (battle pass); orders are disambiguated across multi-need and duplicate names and sorted by satiety cost before submission; hatched kibo are collected and hatchery queues kept full (eggs chosen by codex and work type, see Kibo); optionally production at the furnace, workbench etc. for what the orders lack, plus on-demand Star-link card (星结卡) crafting at 共鸣石台 for basic, blue and boss targets (auto prefers ore-free 奇特 and material-efficient 珍贵 while preserving intermediate reserves such as 月麻布 and 青铜锭 for orders, forging and construction, and skipping locked/unreached card recipes cleanly). The building list identifies tiles directly via pixel-art building sprites (resilient to finished-goods bubbles hiding text), counts multi-copy buildings accurately per NO.x slot, traverses production buildings in a single ascending pass, and stops dragging lists after 2 unmoved drags without redundant OCR. The cooking pot, the hatchery and the production for the orders are tasks of their own (Cooking pot, Hatchery, Make order goods), each back when its batches are done. Seeds and food are recognised by the game's own icons.
  • Shops: every day after 04:00, the exchanges of the 商城 (危机讨伐, 日渡尘影, 星辉重聚, 星轨回归) and 闪亮奇珍 of the home hub: gacha tickets first (纯粹 / 璀璨 / 析光忆痕), followed in 闪亮奇珍 by the weekly 2,000-home-coin 原初水滴 (home coins only — premium shops and 秘虹晶 never buy stamina), then limited goods in ALAS-style filter order (value class always beats refresh period, and permanent limits clear before daily / weekly / monthly ones within a class or via permanent; supports compound rules like permanent, eggs-permanent, or item names, so 闪亮奇珍 clears one-time permanent items before recurring growth materials), the cheapest tier of an item first (expensive repeat periodic tiers are skipped while keeping permanent discount tiers). Scanning reuses full-view detections and skips non-wanted cards and trailing unwanted sections. 闪亮奇珍 spends at most 50000 coins a week on goods other than tickets and keeps 20000 for the homestead. Never premium currency (追忆观测), 秘虹晶 stamina, vehicles, 幻彩的星结卡 or goods without a limit. Every purchase checks the name, quantity and total price first and what is left after. 特殊兑换 (the 村长 of 夏露露村, Mondays, off by default) follows the same rule with 精致的贝壳 by value: 星赐 boxes, then equipment, 回响, 灵粹, eggs last (codex gaps first).
  • Kibo: reads the codex (星临图志, 215 cards, page by page) every week, the dashboard shows how many are collected; the hatchery hatches eggs of species the codex lacks first, then species with high homestead work scores, random eggs last, each with the cheapest white / green / blue 星结卡 (the card does not change the kibo; 20 of each kind are kept for catching, the default card is never changed), sharing live per-card inventory (cards) with 共鸣石台 crafting and open-world catching; opt-in KiboCatch (default off) supports codex, targeted continuous species/petGroup farm (farm, selectable from a searchable 167-species dropdown, tracking the 5/day WorldBoss respawn limit and rotating seamlessly from 森彩灵蝶 into wild 小浮蝶/浮蝶/幻蝶 spots with clean 奇波小屋已满 zero-attack abort and safe 5-slot card-stock tracking), and planner queue execution.
  • Growth plan (on by default, only reads): every day reads the characters you raise and the bag (including 1m Uni pill, scrolled material grid and selectable 星赐 boxes), and counts from the game data what they still need for their targets: character levels (experience and 尤尼 via GrowLine.gold_per_exp), 灵子 levels and breakthroughs, equipped 5-slot gear enhancements (灵粹, materials and 尤尼), 星赐 rank runes and breakthroughs (accounting for upward RuneRecipe crafts and RuneBox stock), kibo levels, and the experience of the next 星识 cap, solving the 12-04 EXP-shortfall guesswork together with Daily Commissions on Auto. Auto raises the current team to the cap your 星识等级 allows, the weakest first; custom raises any characters you pick (a team slot, the avatar or any character by name across the scrollable roster) with per-part toggles (Level, Soul, Gear, Star, Kibo), in your order. The dashboard shows owned / needed of each material with the days of farming left (from the daily stamina, 往厄残影 and the weekly commission plan) and the progress of each character; Daily Commissions on Auto pick their stage by this plan. The avatar's name is the player's nickname and is never read into the log.
  • Kibo plan (KiboPlanner, on by default, offline synthesis in <1s, zero device clicks and never releases/sacrifices kibos): auto mode synthesizes three pillars (1: active team combat kibos from Planner; 2: missing KiboCodex species routed via hunt_plan; 3: weak homestead work types from HomeLabour, preferring small high-floor species), while custom mode configures up to 5 slots (codex, combat_build, labour_build, and factor_farm, such as boss-only 森彩灵蝶 farming with DNA filters). Computes exact evolution chains (499xxx), StarSoul bills (尤尼, Echoes, 源脉果), sparring supply budgets (1760000), potential fruit needs (1700001..6), and expected card floors with reserve protection (FruitReserve, UniReserve, CardReserve), feeding card_floors to HomeProduce, egg_priority to HomeHatch/Shop, and shop_wants to Shop while always keeping gacha tickets first and banning premium/never/rainbow items.
  • Growth (off by default): one cheapest level-up a day each of a character, a 灵子 and a kibo for the daily quest 提升1次等级; the team's lowest character and kibo raised to the team's highest or the recommended level of the stages you run (within the 星识等级 cap). Items are picked one by one with reserves always kept (never the game's "fill all"), no premium currency, no buying, every spend logged. Optional (off by default): one-key equip and the team's gear enhanced level by level (stops when a material runs short or 尤尼 reach the reserve), the team's 灵子 levelled with 星脉结晶 (lowest-HP member first), 星赐 runes (skill levels); only what the bag has, never gacha or releasing.
  • Main story (in development, off by default): advances the main story 「星之旅谣」 like a player. It reads the current step from the quest tracker (steps with the same text are told apart by the last progress and the distance of the quest marker) and goes there by the game's own quest data: talks to NPCs, enters doors, follows NPCs all the way (by the NPC's quest star on the minimap, which shows where she really stands: about 10 m behind, up stairs and through the city), does multi-part steps (e.g. 「在客厅中四处走走 0/4」) one by one; a target inside a house or an NPC on another map is reached through the free teleport of the quest panel's 前往; dialogues, cutscenes and synopses are skipped, guide cards are paged to their end and closed (by every task); indoors without a map it walks by the quest marker. A step it cannot do is left with a masked capture and tried again on the next run; the progress is saved in config/.story.json, which the walks of other tasks use to know which air walls are down. Areas not opened yet (the companion says "that looks bad") are not forced. No premium currency, no stamina purchase, no team changes. Live 2026-12-04: from 「见习骑士的邂逅」 through 「欢迎来到弗利斯」 into 「鬼魂沉没于此」, 2 main quests finished and about 50 steps.
  • AFK farming: starts the game, confirms and waits out game resource updates, restarts after the 04:00 reset to claim the monthly card and the sign-in, auto-revives and relocates on open-world team wipes, restarts and reruns a task at once when the game is stuck or not running, skips story dialogues, shows stamina, activity, keys, currencies (including 1m abbreviated Uni), homestead, hatchery and growth/kibo plans on the dashboard, masks the UID and nickname on error screenshots, updates itself.
  • Two backends (Android ADB / Official Web Cloud Game): runs against an Android emulator / phone (ADB + MaaTouch) or directly via the official Web Cloud Game (https://azurpromilia.manjuu.com/cloudgame) in your local Chrome / Edge browser — no emulator or ADB required. Web Cloud Game automatically launches in 1280x720 Android touch mode with zero safe-area inset, giving 100% parity with all APC templates, OCR, 10-finger multi-touch (joystick + jump/dash + camera drag + combat controls) and virtual IME text input. Login credentials persist locally under config/cloud_profile/, and can be signed in and managed right inside APC's Cloud Game sidebar page (quick phone/SMS sign-in, interactive live view for clicks/sliders, optional local browser window sign-in, session check and Unlimited Card / minutes display). Idle cloud sessions exit cleanly automatically to avoid burning cloud time.
  • Tools: the Tools group of the GUI holds tools you start on their own, like the tools of ALAS / SRC: start / stop, the state of the run and its log on the card. A tool runs once and ends, without the scheduler; it cannot start while the scheduler runs (nor the other way round), and the card says what occupies it. Now: Device check (supports both Android ADB and Web Cloud Game: browser/device, credentials, 1280x720 resolution, game stream, screenshot speed, and whether APC recognizes the current screen), Cloud Login (Desktop Window), and the map sweep (全图逛街) below.
  • Full-map Stroll (全图逛街, a tool, off by default): start it from its card on the Tools page, or switch it on to run once when the scheduler is free. It strolls every map you can reach (新芽山谷, 弗利斯城邦, 夏露露村) along parallel lanes planned on the game's navigation mesh and regions, riding and using 集中 (scan, 100 m radius, adjustable) every 30 m, so the scan circle passes over all the ground you can get to; it switches itself off when done and carries on where it stopped when interrupted. The dashboard shows the swept share of each map; the log lists what was not swept and why (fog, no teleport, story-gated like 迹影崖谷's poison). Field chests seen on the way are recorded for the field chest task. Special kibo (异色) and rare kibo (珍迹) are never attacked: the big map is checked for them when each map starts and every 30 minutes after that; each one found is logged ('发现异色奇波 at ...') with a capture (UID masked) and counted on the dashboard (Stroll · Special Kibo); a fight within 40 m of one is left by riding on. Fights only when attacked; no gathering, chests or quests.
  • Open world (in development, off by default): big-map teleports (persistent activated-node cache across daily resets + single-view zero-click icon classification), minimap positioning (about 0.1 m off at landings), dead reckoning in the fog of war, and routes over the game's roads, 3D height-layered navigation mesh, and 55 bounce-mushroom/jump-pad links (with micro-waypoint pruning & forward-overshoot skip, LinkPoint braking, road-obstacle decay, and lock-hijack release). Gathering, field elites, kibo catching, chests and teleport activation are being verified one by one on the device (2026-12-05 live: jumped bounce mushroom 1301305 to activate 执言者祭坛 — 27/27 teleports unlocked across both maps).
  • Web and desktop: the Alasio GUI (with searchable long dropdowns & trait filter-order pickers, full expandable task-queue modal & filters, redesigned dashboard cards with progress bars & relative times, log level filtering/search/wrap, and mobile overview polish), desktop packages for Windows / macOS / Linux (arm64 boards included), or the web UI alone on a server.

Install

Download the package of your system from Releases, unzip it and open AzurPromiliaCopilot. Python and ADB are included. Later versions update inside the app (0.3.0 needs one manual upgrade).

Installation guide (in Chinese): desktop app, web mode, running from source.

No Android emulator? Use Cloud Game (Web Browser) mode: open Cloud Game in the sidebar, switch platform and sign in right inside APC — it drives your local Chrome / Edge in headless 1280x720 Android touch mode with zero ADB setup. You can also keep using an Android emulator or cloud phone over ADB.

Which servers? Only the official CN server for now. Android emulators must run at 1280x720 landscape; Web Cloud Game is locked to 1280x720 Android touch mode automatically.

Using the Scheduler Correctly

  • Tasks and the scheduler

    Every task runs on its own and sets its own next run when it finishes. Daily Commissions waits for stamina to regenerate, Weekly Remnant waits for Monday 04:00 once its claims are used, reward tasks wait for the 04:00 daily reset.

  • The daily reset

    At 04:00 the scheduler restarts the game first, the monthly card and the sign-in that pop up at login are claimed, then the other tasks run.

  • The right way

    The wrong way is to enable one or two tasks and manage them by hand. The right way is to enable every task you find useful, leave them to the scheduler and forget about the game.

Game Settings

Set these in the game.

Setting Value
画质 (graphics) 性能 (performance)
小地图锁定模式 (minimap lock) 锁定方向 (lock direction)
追踪引导线 (tracking guide line) 永久开启 (always on)
野外 BOSS 登场演出 (field boss entrance) 关闭 (off)
操作布局 (control layout) 默认 (default)

Cleared stages are fought by the game's auto battle, a first try by APC by hand; by hand it plays each member's skills but never dodges, so it is weaker than auto battle: leave some margin when choosing the difficulty. A commission starts with the character on the field in the open world; APC puts slot 1 of the team on the field before entering (configurable), so put your strongest character in slot 1.

How to Report Bugs

  • Make sure you run the latest version.
  • Upload the error log: under log/error there is a zip named after the time, with log.txt and the latest screenshots. If it is not an error but unexpected behaviour, send the log of the day in log and at least one screenshot of the game.
  • Screenshots show your UID at the bottom left, cover it before posting.

Known Issues

  • Official CN server only, 1280x720 only.
  • Open-world tasks are off by default: on fixed benchmarks, 新芽山谷 reaches 58/60 (97 %, ~1.5 m mean error, 146 m/min) and 弗利斯城邦 reaches 44/46 walked (95.7 %, 3 off-mesh targets cleanly skipped, 32/32 mesh plans 100 %, 1.39 m mean error, 206.1 m/min, 18.3 min total; the 2 overhead-roof cutout replan failures were fixed via continuous height tracking and re-verified on Tour 10); 2026-12-05 also verified 55 bounce-mushroom/jump-pad links live unlocking 执言者祭坛 (27/27 teleports across both maps) and reaching 晶晶萤's cliff & 钻山蜥's 3D road layer cleanly. Gathering, chests, field elites and teleport activation stay off by default until verification settles; kibo catching and WorldBoss weaken-and-catch stay off by default while tuning: on 2026-12-05 live runs verified back-to-back 1-throw 100 % wild kibo captures (kibo_hunt ahead +0,+0 blue card 23→22 caught=1, and KiboPlanner-queued 雷灵偶 sweep -66,+24 blue card 22→21 caught=1, with settled card-consumption detection, sweep-lock retention, and zero-provocation wild farm guard), plus WorldBoss weaken-and-catch captures on 菜鸡 (11.0 s weaken to 27.4 % HP, 1-throw 100 % purple-card capture, caught=1), 音霸蛙 (7.3 s to 27.4 % HP, 100 % capture), and 森彩灵蝶 (12.4 % HP purple-card hit) with shiny-boss zero-attack guard and KiboPlanner integration.
  • The main story is still in development: steps that continue in a time window (game time set), item hand-ins, cooking, fights inside quests, story dungeons and mini-games are not verified live yet; indoor targets on another floor may not be reached (it stops at that step); the walk to the 灯炭矿场 entrance (「鬼魂沉没于此」) can get stuck on a ledge: the step stops there with a capture, and the walk remembers the spot and takes another way next time. It stops there and needs a hand once.
  • Special kibo are found by their big-map markers only: none seen live yet; the minimap / HUD check and the species name wait for the first capture (the stroll saves one when it passes one).
  • The map sweep records chests only: what 集中 lights (gatherables, kibo) glows for about 2 s with no marks or distances, so only the chests seen on the way are recorded for now; story gates (迹影崖谷's poison) count as closed until the main story progress is read, and are swept from outside.
  • A first try is fought by hand: APC does not dodge by hand, so it clears less than auto battle; a fight it cannot win is left after 120 s without damage or on defeat (no chest, no stamina spent), and Daily Commissions lower the difficulty by the losses of the day.
  • 日渡尘影 plays 塑流圜影 only: 恒溯圜影 and 汐变圜影 take two teams per stage (Lv.60-80), they wait for a second team. APC does not dodge by hand; the current team (Lv.60 / 54 / 51) clears 塑流圜影 V in 107 s (three stars); VI by each member's skills in 146 / 149 / 175 s against 164 / 186 s for the generic rotation of the same version (alternating live runs on 12-04, median 149 against 175 s), 137 / 124 s with the ultimates of the bench members and the ultimate before a switch (still two stars, the time star needs less than 2 minutes); VII (Lv.70) runs out of its 5 minutes, about 2 minutes for the first wave and a third of the boss's HP left.
  • Some weekly battle-pass tasks are not done yet: 星结 20 kibo (both wild and WorldBoss catching are live-verified; stays off by default until extended continuous-farming soak testing settles; the 3 special kibo are done by the Crisis bosses), forging equipment at home (the 锻造铺 is placed; forging starts once enough 月麻布 is made).
  • The homestead's buildings are being completed: the fields, the 锻造铺 and the first round of feature buildings (闪锡矿场, 磨坊, 孵化桩 3/3, 熔炉, 纺车, 工作台, 烹饪锅 and 制革台 2/2 each, 夏露露风宿舍 3/3) are placed; the Home task crafted and placed 元素星楔 3/3 by itself (live 2026-12-04: the second on the second spot tried, the third after 4 full spots by the spawn at the far end of 1号建筑区); the 尘石砖 the 奇波展示台 lacked were made by the order production, the next Home run crafts it; 料理铺, 熔炼铺 and others unlock at 星识等级 30. Forging waits until enough 月麻布 is made.
  • Commission chests are claimed at x1.
  • When GitHub is unreachable, the update page shows an error; APC keeps working, and the install guide describes a manual upgrade.
  • An unexpected popup that APC does not know makes a task stuck, the scheduler then restarts the game and reruns the task. Please report it as above.

Development

  • Development guide (in Chinese): tasks, pages, assets, OCR and tests, state loops as in ALAS / SRC.
  • Game data (in Chinese): stages, quests, items, recipes and item icons come from the game's own tables, the extracted data is in AzurPromiliaData.
  • Roadmap (in Chinese). Pull requests are welcome.

About APC

APC is a mod of Alasio. The scheduler, config, backend, frontend, logs and desktop shell are Alasio's; APC adds what is specific to the game: device, recognition, page routing and tasks. It is written the ALAS and SRC way: every run reads the screen and acts on what is there, nothing half-done is saved, and when the game gets stuck the scheduler restarts it and reruns the task.

Acknowledgements

  • Alasio: the framework itself, scheduler, config, backend, frontend and desktop shell.
  • AzurLaneAutoScript (ALAS): where it all started, task scheduling and long-term AFK design.
  • StarRailCopilot (SRC): task structure, page routing and combat flow, part of the code is ported from SRC.

Thanks to LmeSzinc and all contributors of these projects. Third-party components: THIRD_PARTY.md.

License

GPL-3.0

Explore related projects

Loading…