跳到正文
linqingan.com
LearnBuildSolveVerifyAPITools
ENOpen Doctor
知识库/文章标签/寻路

TAG

寻路

当前共有 7 篇文章使用这个长期主题标签。

发布于 2026年9月5日/7 分钟/Screeps 进阶开发

Screeps PathFinder.search():range、返回值与完整路径判断

正确使用 PathFinder.search() 设置 goal range,读懂 path、cost、ops、incomplete,并判断搜索是否真正完成,而不是只看 path 有没有内容。

ScreepsPathFinder寻路RoomPosition移动
发布于 2026年7月18日/更新于 2026年7月22日/7 分钟/Screeps 错误排查

Screeps ERR_NO_PATH 怎么排查:目标范围、回调与跨房间路线

区分moveTo的ERR_NO_PATH、noPathFinding的ERR_NOT_FOUND和PathFinder incomplete,从目标范围、地形、回调、maxOps与出口逐步排查。

Screeps错误排查ERR_NO_PATH寻路PathFinder
发布于 2026年7月18日/更新于 2026年7月22日/8 分钟/Screeps 进阶开发

Game.map.findRoute() 怎么规划并执行跨房间路线

解释 findRoute() 返回的房间级出口序列、routeCallback 成本和 ERR_NO_PATH,并提供带房间偏好、路线缓存与逐房间移动的完整示例。

Screeps进阶开发Game API跨房间寻路
发布于 2026年7月18日/更新于 2026年9月10日/11 分钟/Screeps 错误排查

Screeps moveTo() 返回 OK 但不移动怎么排查

Screeps moveTo() 返回 OK 但 Creep 不移动、走不动或卡住?按有效 MOVE、fatigue、返回码、reusePath 缓存、交通阻挡和同 tick 命令覆盖逐层排查。

Screeps错误排查moveTo寻路移动
发布于 2026年7月18日/更新于 2026年7月22日/8 分钟/Screeps 进阶开发

PathFinder CostMatrix 怎么设置道路、障碍和高成本格子

解释 CostMatrix 中 0、普通成本和 255 的含义,在 roomCallback 中处理道路、建筑、Creep 与自定义避让格,并检查 PathFinder.search 的完整结果。

Screeps进阶开发PathFinder寻路CostMatrix
发布于 2026年7月18日/更新于 2026年7月22日/6 分钟/Screeps 基础工程

RoomPosition 距离方法怎么选:range、相邻、同格与路径

比较getRangeTo、inRangeTo、isNearTo、isEqualTo、findClosestByRange和findClosestByPath,区分线性距离与真实可达路径。

Screeps基础工程RoomPosition距离寻路
发布于 2026年7月18日/更新于 2026年7月22日/7 分钟/Screeps 基础工程

多个 Source 怎么按可达路径选择并稳定保存目标

比较findClosestByPath与findClosestByRange,从FIND_SOURCES_ACTIVE选择可达Source,保存目标ID,并处理无视野、能量恢复和多Creep竞争。

Screeps基础工程Source寻路目标选择
linqingan.com

Making Screeps easier to learn, build and master.

AboutChangelogGitHubContact

Build. Learn. Solve. Repeat.