[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"similar-bwapi--bwapi":3,"tool-bwapi--bwapi":64},[4,17,27,35,43,56],{"id":5,"name":6,"github_repo":7,"description_zh":8,"stars":9,"difficulty_score":10,"last_commit_at":11,"category_tags":12,"status":16},3808,"stable-diffusion-webui","AUTOMATIC1111\u002Fstable-diffusion-webui","stable-diffusion-webui 是一个基于 Gradio 构建的网页版操作界面，旨在让用户能够轻松地在本地运行和使用强大的 Stable Diffusion 图像生成模型。它解决了原始模型依赖命令行、操作门槛高且功能分散的痛点，将复杂的 AI 绘图流程整合进一个直观易用的图形化平台。\n\n无论是希望快速上手的普通创作者、需要精细控制画面细节的设计师，还是想要深入探索模型潜力的开发者与研究人员，都能从中获益。其核心亮点在于极高的功能丰富度：不仅支持文生图、图生图、局部重绘（Inpainting）和外绘（Outpainting）等基础模式，还独创了注意力机制调整、提示词矩阵、负向提示词以及“高清修复”等高级功能。此外，它内置了 GFPGAN 和 CodeFormer 等人脸修复工具，支持多种神经网络放大算法，并允许用户通过插件系统无限扩展能力。即使是显存有限的设备，stable-diffusion-webui 也提供了相应的优化选项，让高质量的 AI 艺术创作变得触手可及。",162132,3,"2026-04-05T11:01:52",[13,14,15],"开发框架","图像","Agent","ready",{"id":18,"name":19,"github_repo":20,"description_zh":21,"stars":22,"difficulty_score":23,"last_commit_at":24,"category_tags":25,"status":16},1381,"everything-claude-code","affaan-m\u002Feverything-claude-code","everything-claude-code 是一套专为 AI 编程助手（如 Claude Code、Codex、Cursor 等）打造的高性能优化系统。它不仅仅是一组配置文件，而是一个经过长期实战打磨的完整框架，旨在解决 AI 代理在实际开发中面临的效率低下、记忆丢失、安全隐患及缺乏持续学习能力等核心痛点。\n\n通过引入技能模块化、直觉增强、记忆持久化机制以及内置的安全扫描功能，everything-claude-code 能显著提升 AI 在复杂任务中的表现，帮助开发者构建更稳定、更智能的生产级 AI 代理。其独特的“研究优先”开发理念和针对 Token 消耗的优化策略，使得模型响应更快、成本更低，同时有效防御潜在的攻击向量。\n\n这套工具特别适合软件开发者、AI 研究人员以及希望深度定制 AI 工作流的技术团队使用。无论您是在构建大型代码库，还是需要 AI 协助进行安全审计与自动化测试，everything-claude-code 都能提供强大的底层支持。作为一个曾荣获 Anthropic 黑客大奖的开源项目，它融合了多语言支持与丰富的实战钩子（hooks），让 AI 真正成长为懂上",138956,2,"2026-04-05T11:33:21",[13,15,26],"语言模型",{"id":28,"name":29,"github_repo":30,"description_zh":31,"stars":32,"difficulty_score":23,"last_commit_at":33,"category_tags":34,"status":16},2271,"ComfyUI","Comfy-Org\u002FComfyUI","ComfyUI 是一款功能强大且高度模块化的视觉 AI 引擎，专为设计和执行复杂的 Stable Diffusion 图像生成流程而打造。它摒弃了传统的代码编写模式，采用直观的节点式流程图界面，让用户通过连接不同的功能模块即可构建个性化的生成管线。\n\n这一设计巧妙解决了高级 AI 绘图工作流配置复杂、灵活性不足的痛点。用户无需具备编程背景，也能自由组合模型、调整参数并实时预览效果，轻松实现从基础文生图到多步骤高清修复等各类复杂任务。ComfyUI 拥有极佳的兼容性，不仅支持 Windows、macOS 和 Linux 全平台，还广泛适配 NVIDIA、AMD、Intel 及苹果 Silicon 等多种硬件架构，并率先支持 SDXL、Flux、SD3 等前沿模型。\n\n无论是希望深入探索算法潜力的研究人员和开发者，还是追求极致创作自由度的设计师与资深 AI 绘画爱好者，ComfyUI 都能提供强大的支持。其独特的模块化架构允许社区不断扩展新功能，使其成为当前最灵活、生态最丰富的开源扩散模型工具之一，帮助用户将创意高效转化为现实。",107662,"2026-04-03T11:11:01",[13,14,15],{"id":36,"name":37,"github_repo":38,"description_zh":39,"stars":40,"difficulty_score":23,"last_commit_at":41,"category_tags":42,"status":16},3704,"NextChat","ChatGPTNextWeb\u002FNextChat","NextChat 是一款轻量且极速的 AI 助手，旨在为用户提供流畅、跨平台的大模型交互体验。它完美解决了用户在多设备间切换时难以保持对话连续性，以及面对众多 AI 模型不知如何统一管理的痛点。无论是日常办公、学习辅助还是创意激发，NextChat 都能让用户随时随地通过网页、iOS、Android、Windows、MacOS 或 Linux 端无缝接入智能服务。\n\n这款工具非常适合普通用户、学生、职场人士以及需要私有化部署的企业团队使用。对于开发者而言，它也提供了便捷的自托管方案，支持一键部署到 Vercel 或 Zeabur 等平台。\n\nNextChat 的核心亮点在于其广泛的模型兼容性，原生支持 Claude、DeepSeek、GPT-4 及 Gemini Pro 等主流大模型，让用户在一个界面即可自由切换不同 AI 能力。此外，它还率先支持 MCP（Model Context Protocol）协议，增强了上下文处理能力。针对企业用户，NextChat 提供专业版解决方案，具备品牌定制、细粒度权限控制、内部知识库整合及安全审计等功能，满足公司对数据隐私和个性化管理的高标准要求。",87618,"2026-04-05T07:20:52",[13,26],{"id":44,"name":45,"github_repo":46,"description_zh":47,"stars":48,"difficulty_score":23,"last_commit_at":49,"category_tags":50,"status":16},2268,"ML-For-Beginners","microsoft\u002FML-For-Beginners","ML-For-Beginners 是由微软推出的一套系统化机器学习入门课程，旨在帮助零基础用户轻松掌握经典机器学习知识。这套课程将学习路径规划为 12 周，包含 26 节精炼课程和 52 道配套测验，内容涵盖从基础概念到实际应用的完整流程，有效解决了初学者面对庞大知识体系时无从下手、缺乏结构化指导的痛点。\n\n无论是希望转型的开发者、需要补充算法背景的研究人员，还是对人工智能充满好奇的普通爱好者，都能从中受益。课程不仅提供了清晰的理论讲解，还强调动手实践，让用户在循序渐进中建立扎实的技能基础。其独特的亮点在于强大的多语言支持，通过自动化机制提供了包括简体中文在内的 50 多种语言版本，极大地降低了全球不同背景用户的学习门槛。此外，项目采用开源协作模式，社区活跃且内容持续更新，确保学习者能获取前沿且准确的技术资讯。如果你正寻找一条清晰、友好且专业的机器学习入门之路，ML-For-Beginners 将是理想的起点。",84991,"2026-04-05T10:45:23",[14,51,52,53,15,54,26,13,55],"数据工具","视频","插件","其他","音频",{"id":57,"name":58,"github_repo":59,"description_zh":60,"stars":61,"difficulty_score":10,"last_commit_at":62,"category_tags":63,"status":16},3128,"ragflow","infiniflow\u002Fragflow","RAGFlow 是一款领先的开源检索增强生成（RAG）引擎，旨在为大语言模型构建更精准、可靠的上下文层。它巧妙地将前沿的 RAG 技术与智能体（Agent）能力相结合，不仅支持从各类文档中高效提取知识，还能让模型基于这些知识进行逻辑推理和任务执行。\n\n在大模型应用中，幻觉问题和知识滞后是常见痛点。RAGFlow 通过深度解析复杂文档结构（如表格、图表及混合排版），显著提升了信息检索的准确度，从而有效减少模型“胡编乱造”的现象，确保回答既有据可依又具备时效性。其内置的智能体机制更进一步，使系统不仅能回答问题，还能自主规划步骤解决复杂问题。\n\n这款工具特别适合开发者、企业技术团队以及 AI 研究人员使用。无论是希望快速搭建私有知识库问答系统，还是致力于探索大模型在垂直领域落地的创新者，都能从中受益。RAGFlow 提供了可视化的工作流编排界面和灵活的 API 接口，既降低了非算法背景用户的上手门槛，也满足了专业开发者对系统深度定制的需求。作为基于 Apache 2.0 协议开源的项目，它正成为连接通用大模型与行业专有知识之间的重要桥梁。",77062,"2026-04-04T04:44:48",[15,14,13,26,54],{"id":65,"github_repo":66,"name":67,"description_en":68,"description_zh":69,"ai_summary_zh":69,"readme_en":70,"readme_zh":71,"quickstart_zh":72,"use_case_zh":73,"hero_image_url":74,"owner_login":67,"owner_name":75,"owner_avatar_url":76,"owner_bio":77,"owner_company":78,"owner_location":78,"owner_email":78,"owner_twitter":78,"owner_website":79,"owner_url":80,"languages":81,"stars":113,"forks":114,"last_commit_at":115,"license":116,"difficulty_score":117,"env_os":118,"env_gpu":119,"env_ram":119,"env_deps":120,"category_tags":127,"github_topics":128,"view_count":10,"oss_zip_url":78,"oss_zip_packed_at":78,"status":16,"created_at":135,"updated_at":136,"faqs":137,"releases":165},994,"bwapi\u002Fbwapi","bwapi","Brood War API","bwapi是一个开源框架，专为星际争霸：母巢之战设计，帮你轻松创建能玩这款游戏的AI代理。它解决了实时战略游戏中开发公平AI的核心难题：默认只向AI暴露可见的游戏区域，隐藏战争迷雾中的单位信息，并自动阻止用户操作，确保AI必须在信息不全的条件下决策——这样你就能构建真正竞争性的非作弊AI，避免\"开挂\"式开发。\n\nbwapi特别适合开发者、研究人员和AI爱好者使用。学生能用它学习实时决策算法，研究人员可在真实的商业RTS环境中测试新方法，而爱好者则能参与AI竞赛或分析游戏回放。技术亮点在于其智能默认设置：严格模拟玩家视野限制，同时提供全面的游戏状态读取、帧级回放分析功能，还支持C++和Java双语言开发。只需安装星际争霸和BWAPI，编译示例项目，你就能快速运行AI对抗内置对手或进行自我对战。通过简单步骤，bwapi让AI开发变得直观又可靠，是探索游戏AI的理想起点。","# The Brood War API {#BWAPI}\n\n[![Build status](https:\u002F\u002Fci.appveyor.com\u002Fapi\u002Fprojects\u002Fstatus\u002F6eikd5g49co6l5ty\u002Fbranch\u002Fdevelop?svg=true)](https:\u002F\u002Fci.appveyor.com\u002Fproject\u002Fheinermann\u002Fbwapi\u002Fbranch\u002Fdevelop)\n\n[TOC]\n\n# Project Information {#project}\n\n## Overview {#overview}\n\nThe Brood War Application Programming Interface (BWAPI) is a free and open source C++ framework that is\nused to interact with the popular Real Time Strategy (RTS) game Starcraft: Broodwar. Using BWAPI,\nstudents, researchers, and hobbyists can create Artificial Intelligence (AI) agents that play the game.\n\nBWAPI only reveals the visible parts of the game state to AI modules by default. Information on units\nthat have gone back into the fog of war is denied to the AI. This enables programmers to write competitive\nnon-cheating AIs that must plan and operate under partial information conditions. BWAPI also denies\nuser input by default, ensuring the user cannot take control of game units while the AI is playing.\nThese defaults can be changed for flexibility, unless enforced by a Tournament Module (game referee for\nAI tournaments). Changed defaults will be advertised when the match begins.\n\n\n## Capabilities {#capability}\n\n - Write competitive AIs for Starcraft: Broodwar by controlling individual units.\n - Read all relevant aspects of the game state.\n - Analyze replays frame-by-frame, and extract trends, build orders, and common strategies.\n - Get comprehensive information on the unit types, upgrades, technologies, weapons, and more.\n - Study and research real-time AI algorithms in a robust commercial RTS environment.\n\n \n## Getting Started {#getting-started}\n - Developing a bot in C++? Then download the [latest release](https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Freleases).\n - If you would like to develop a bot in Java, please follow [this tutorial](http:\u002F\u002Fsscaitournament.com\u002Findex.php?action=tutorial).\n - Want to help improve BWAPI? Fork the [`develop` branch](https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Ftree\u002Fdevelop).\n\n## Quick Start {#quick-start}\n1. Installation\n   1. Install **Visual Studio 2017**\n   2. Install **StarCraft: Brood War**\n   3. Update **StarCraft: Brood War** to `1.16.1`\n   4. Install **BWAPI**\n2. Compile\n   1. Open `ExampleProjects.sln` in the BWAPI install directory\n   2. Build the ExampleAIModule project in RELEASE mode\n   3. Copy `ExampleAIModule.dll` to `bwapi-data\u002FAI` inside the StarCraft install folder\n3. Run StarCraft through Chaoslauncher\n   1. Run `Chaoslauncher.exe` as administrator\n      - Chaoslauncher is found in Chaoslauncher directory of BWAPI install directory\n   3. Check the *BWAPI Injector x.x.x [RELEASE]*\n   4. Click Start\n      - Make sure the version is set to Starcraft 1.16.1, not ICCup 1.16.1\n4. Run a game against Blizzard's AI\n   1. Go to **Single Player** -> **Expansion**\n   2. Select any user and click **OK**\n   3. Click **Play Custom**, select a map, and start a game\n5. Run a game against yourself\n   1. Run `Chaoslauncher - MultiInstance.exe` as administrator\n   2. Start\n      1. Go to **Multiplayer** -> **Expansion** -> **Local PC**\n      2. Select any user and click **OK**\n      3. Click **Create Game**, select a map, and click **OK**\n   3. Start -- Uncheck *BWAPI Injector x.x.x [RELEASE]* to let a human play, leave alone to make AI play itself\n      1. Go to **Multiplayer** -> **Expansion** -> **Local PC**\n      2. Select any user and click **OK**\n      3. Join the existing game created by the other client\n \n## Important Links & Contact Information {#contact}\n* **Documentation:**         http:\u002F\u002Fbwapi.github.io\u002F\n* **Repository:**            https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\n* **Issue Tracker:**         https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Fissues\n* **Releases:**              https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Freleases\n* **SSCAIT Discord:**        https:\u002F\u002Fdiscord.gg\u002FDqvHsq9\n* **IRC Channel:**           http:\u002F\u002Fwebchat.freenode.net\u002F?channels=BWAPI\n* **Facebook:**              https:\u002F\u002Fwww.facebook.com\u002Fgroups\u002Fbwapi\u002F\n* **Links to competitions, bots, etc. :**    https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Fwiki\u002FUseful-Links\n\n\n## Competitions {#competition}\nVarious venues host remote competitive AI competitions that allow developers from around the world to participate. These venues are often held annually and will sometimes offer prizes to the winners. It is also a great way to test your bot's capabilities.\n* [AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment (AIIDE)](http:\u002F\u002Fwww.starcraftaicompetition.com)\n* [IEEE Conference on Games (CoG)](http:\u002F\u002Fcilab.gist.ac.kr\u002Fsc_competition\u002F)\n* [Student StarCraft AI (SSCAI) Tournament](http:\u002F\u002Fsscaitournament.com\u002F)\n* [BWAPI Bots Ladder](http:\u002F\u002Fbots-stats.krasi0.com)\n\n\n## Issues {#issues}\nYou may experience issues when working with BWAPI. Here are some steps you may want to follow in order to resolve them.\n1. Check the log files found in `Starcraft\u002FErrors\u002F`.\n2. Ask in the IRC channel if anyone has experienced your issue before.\n3. Check the Issue Tracker to see if your issue has already been reported.\n4. Submit an issue to the Issue Tracker. Some pieces of information to consider submitting are\n  * Log files\n  * Screenshots\n  * Version or revision number\n  * Operating System\n  * **Steps to reproduce the problem**\n\n[Go to the Issue tracker](https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Fissues)\n\n\n## Legal {#legal}\n[Starcraft](http:\u002F\u002Fwww.blizzard.com\u002Fgames\u002Fsc\u002F) and [Starcraft: Broodwar](http:\u002F\u002Fwww.blizzard.com\u002Fgames\u002Fsc\u002F) are trademarks of\n[Blizzard Entertainment](http:\u002F\u002Fwww.blizzard.com). BWAPI is a third party \"hack\" that violates the End User License Agreement (EULA).\nIt is strongly recommended to purchase a legitimate copy of Starcraft: Broodwar from Blizzard Entertainment before using BWAPI.\n","# 虫群之战API {#BWAPI}\n\n[![构建状态](https:\u002F\u002Fci.appveyor.com\u002Fapi\u002Fprojects\u002Fstatus\u002F6eikd5g49co6l5ty\u002Fbranch\u002Fdevelop?svg=true)](https:\u002F\u002Fci.appveyor.com\u002Fproject\u002Fheinermann\u002Fbwapi\u002Fbranch\u002Fdevelop)\n\n[TOC]\n\n# 项目信息 {#project}\n\n## 概述 {#overview}\n\n虫群之战应用程序编程接口（BWAPI, Brood War Application Programming Interface）是一个免费开源的 C++ 框架，用于与热门实时战略（RTS, Real Time Strategy）游戏《星际争霸：虫群之战》进行交互。通过 BWAPI，学生、研究人员和爱好者可以创建操控游戏的人工智能（AI, Artificial Intelligence）代理。\n\n默认情况下，BWAPI 仅向 AI 模块显示游戏状态的可见部分。对于已进入战争迷雾的单位信息，AI 将无法获取。这使程序员能够编写在部分信息条件下进行规划和操作的竞争性非作弊 AI。BWAPI 默认还禁止用户输入，确保用户无法在 AI 运行时控制游戏单位。除非锦标赛模块（Tournament Module，AI 锦标赛的游戏裁判）强制执行，否则这些默认设置可更改以提高灵活性。更改后的默认设置将在比赛开始时公布。\n\n\n## 功能 {#capability}\n\n - 通过控制单个单位为《星际争霸：虫群之战》编写竞争性 AI。\n - 读取游戏状态的所有相关方面。\n - 逐帧分析回放，提取趋势、建造顺序和常见策略。\n - 获取关于单位类型、升级、科技、武器等的全面信息。\n - 在成熟的商业 RTS 环境中研究实时 AI 算法。\n\n \n## 入门指南 {#getting-started}\n - 使用 C++ 开发机器人？请下载[最新版本](https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Freleases)。\n - 如需使用 Java 开发机器人，请参考[本教程](http:\u002F\u002Fsscaitournament.com\u002Findex.php?action=tutorial)。\n - 想帮助改进 BWAPI？请 Fork [`develop 分支`](https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Ftree\u002Fdevelop)。\n\n## 快速入门 {#quick-start}\n1. 安装\n   1. 安装 **Visual Studio 2017**\n   2. 安装 **StarCraft: Brood War**\n   3. 将 **StarCraft: Brood War** 更新至 `1.16.1`\n   4. 安装 **BWAPI**\n2. 编译\n   1. 在 BWAPI 安装目录中打开 `ExampleProjects.sln`\n   2. 以 RELEASE 模式构建 ExampleAIModule 项目\n   3. 将 `ExampleAIModule.dll` 复制到 StarCraft 安装目录内的 `bwapi-data\u002FAI` 文件夹\n3. 通过 Chaoslauncher 运行 StarCraft\n   1. 以管理员身份运行 `Chaoslauncher.exe`\n      - Chaoslauncher 位于 BWAPI 安装目录的 Chaoslauncher 文件夹中\n   3. 勾选 *BWAPI Injector x.x.x [RELEASE]*\n   4. 点击 Start\n      - 确保版本设置为 Starcraft 1.16.1，而非 ICCup 1.16.1\n4. 与暴雪 AI 对战\n   1. 进入 **Single Player** -> **Expansion**\n   2. 选择任意用户并点击 **OK**\n   3. 点击 **Play Custom**，选择地图并开始游戏\n5. 与自己对战\n   1. 以管理员身份运行 `Chaoslauncher - MultiInstance.exe`\n   2. 启动\n      1. 进入 **Multiplayer** -> **Expansion** -> **Local PC**\n      2. 选择任意用户并点击 **OK**\n      3. 点击 **Create Game**，选择地图并点击 **OK**\n   3. 启动 -- 取消勾选 *BWAPI Injector x.x.x [RELEASE]* 以允许人类操作，保留勾选则使 AI 自对战\n      1. 进入 **Multiplayer** -> **Expansion** -> **Local PC**\n      2. 选择任意用户并点击 **OK**\n      3. 加入另一客户端创建的现有游戏\n \n## 重要链接与联系方式 {#contact}\n* **文档：**         http:\u002F\u002Fbwapi.github.io\u002F\n* **代码仓库：**            https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\n* **问题跟踪器：**         https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Fissues\n* **版本发布：**              https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Freleases\n* **SSCAIT Discord：**        https:\u002F\u002Fdiscord.gg\u002FDqvHsq9\n* **IRC 频道：**           http:\u002F\u002Fwebchat.freenode.net\u002F?channels=BWAPI\n* **Facebook：**              https:\u002F\u002Fwww.facebook.com\u002Fgroups\u002Fbwapi\u002F\n* **竞赛、机器人等链接：**    https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Fwiki\u002FUseful-Links\n\n\n## 竞赛 {#competition}\n多个平台举办远程竞争性 AI 竞赛，允许全球开发者参与。这些赛事通常每年举办，有时会为优胜者提供奖励。这也是测试机器人能力的绝佳方式。\n* [AAAI 人工智能与交互式数字娱乐会议 (AIIDE)](http:\u002F\u002Fwww.starcraftaicompetition.com)\n* [IEEE 游戏会议 (CoG)](http:\u002F\u002Fcilab.gist.ac.kr\u002Fsc_competition\u002F)\n* [学生星际争霸 AI (SSCAI) 锦标赛](http:\u002F\u002Fsscaitournament.com\u002F)\n* [BWAPI 机器人天梯](http:\u002F\u002Fbots-stats.krasi0.com)\n\n\n## 问题排查 {#issues}\n使用 BWAPI 时可能会遇到问题。请按以下步骤尝试解决：\n1. 检查 `Starcraft\u002FErrors\u002F` 目录中的日志文件。\n2. 在 IRC 频道询问是否有人遇到过相同问题。\n3. 查看问题跟踪器，确认问题是否已被报告。\n4. 向问题跟踪器提交问题。建议提交以下信息：\n  * 日志文件\n  * 截图\n  * 版本或修订号\n  * 操作系统\n  * **复现问题的步骤**\n\n[前往问题跟踪器](https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Fissues)\n\n\n## 法律声明 {#legal}\n[Starcraft](http:\u002F\u002Fwww.blizzard.com\u002Fgames\u002Fsc\u002F) 和 [Starcraft: Broodwar](http:\u002F\u002Fwww.blizzard.com\u002Fgames\u002Fsc\u002F) 是 [暴雪娱乐](http:\u002F\u002Fwww.blizzard.com) 的商标。BWAPI 是违反最终用户许可协议（EULA, End User License Agreement）的第三方\"破解工具\"。**强烈建议**在使用 BWAPI 前从暴雪娱乐购买正版《星际争霸：虫群之战》。","# bwapi 快速上手指南\n\n## 环境准备\n- **操作系统**：Windows 10 或更高版本（64 位）\n- **前置依赖**：\n  - Visual Studio 2017（安装时需勾选 *C++ 桌面开发* 工作负载）\n  - StarCraft: Brood War 原版游戏（必须更新至 1.16.1 版本）\n  - BWAPI 框架（最新版）\n\n## 安装步骤\n1. 安装 Visual Studio 2017。\n2. 安装 StarCraft: Brood War，并通过官方补丁更新至 1.16.1 版本。\n3. 下载并安装 BWAPI：\n   - 访问 [BWAPI GitHub releases](https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Freleases) 下载最新 release。\n   - **国内用户推荐**：使用 [FastGit 镜像](https:\u002F\u002Fhub.fastgit.org\u002Fbwapi\u002Fbwapi\u002Freleases) 加速下载。\n   - 解压下载的 ZIP 文件到 StarCraft 安装目录（例如 `C:\\Program Files (x86)\\StarCraft`）。\n4. 编译示例 AI 模块：\n   - 打开 BWAPI 安装目录中的 `ExampleProjects.sln`。\n   - 在 Visual Studio 中，选择 **RELEASE** 配置，编译 `ExampleAIModule` 项目。\n   - 将生成的 `ExampleAIModule.dll` 复制到 StarCraft 安装目录下的 `bwapi-data\u002FAI`。\n\n## 基本使用\n1. 以管理员身份运行 `Chaoslauncher.exe`（位于 BWAPI 安装目录的 `Chaoslauncher` 子目录）。\n2. 在 Chaoslauncher 界面中，勾选 *BWAPI Injector x.x.x [RELEASE]*（确保版本与安装一致）。\n3. 点击 **Start** 按钮启动 StarCraft。\n4. 在 StarCraft 主菜单中：\n   - 进入 **Single Player** -> **Expansion**\n   - 选择任意用户并点击 **OK**\n   - 点击 **Play Custom**，选择一张地图（如 `Birini Station`），开始游戏\n5. 游戏开始后，示例 AI 将自动运行，与 Blizzard 内置 AI 对战。观察 AI 控制单位执行基础操作（如采集资源、建造建筑）。","某高校AI实验室团队在备战SSCAIT 2023星际争霸AI竞赛时，需开发一个能应对复杂战术的Brood War AI代理，但传统开发方式效率低下且风险高。\n\n### 没有 bwapi 时\n- 手动逆向工程游戏内存获取单位状态，极易因游戏版本更新导致崩溃，每周浪费10+小时调试\n- 无法可靠区分可见与战争迷雾区域信息，AI常\"偷看\"隐藏单位，被竞赛规则判定为作弊而禁赛\n- 测试新策略需反复手动操作游戏界面，单次迭代耗时30分钟以上，严重拖慢开发进度\n- 回放分析依赖人工录像记录，难以量化提取对手build order或微操失误，优化依据模糊\n- 多人协作时接口混乱，C++模块与游戏引擎通信不稳定，常出现单位控制冲突\n\n### 使用 bwapi 后\n- 通过标准化API直接安全读取游戏状态，内存访问错误减少90%，版本适配时间从数天缩短至1小时\n- 默认仅暴露可见区域数据，AI在真实战争迷雾中决策，完美符合竞赛非作弊要求，顺利通过资格审查\n- 集成自动化测试框架，新策略5分钟内完成部署验证，迭代速度提升6倍\n- 调用回放分析工具自动导出单位行动轨迹和资源曲线，精准定位微操漏洞，策略优化效率翻倍\n- 统一C++接口规范团队开发，多模块协同控制单位时零冲突，协作效率显著提升\n\nbwapi让星际争霸AI开发从\"黑盒摸索\"转向高效、合规的科研实践，真正释放实时策略AI的研究潜力。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fbwapi_bwapi_640d2963.png","Brood War API Team","https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002Fbwapi_5b6dbb8d.png","BroodWar API team.",null,"http:\u002F\u002Fbwapi.github.io\u002F","https:\u002F\u002Fgithub.com\u002Fbwapi",[82,86,90,94,98,102,105,109],{"name":83,"color":84,"percentage":85},"C++","#f34b7d",80.8,{"name":87,"color":88,"percentage":89},"Inno Setup","#264b99",14.1,{"name":91,"color":92,"percentage":93},"C#","#178600",3.6,{"name":95,"color":96,"percentage":97},"C","#555555",0.8,{"name":99,"color":100,"percentage":101},"CMake","#DA3434",0.4,{"name":103,"color":78,"percentage":104},"SWIG",0.3,{"name":106,"color":107,"percentage":108},"Batchfile","#C1F12E",0.1,{"name":110,"color":111,"percentage":112},"VBScript","#15dcdc",0,1655,280,"2026-04-01T04:23:22","LGPL-3.0",4,"Windows","未说明",{"notes":121,"python":119,"dependencies":122},"必须使用Starcraft: Brood War 1.16.1版本；需通过Chaoslauncher注入运行；开发需Visual Studio 2017环境；强烈建议购买正版游戏以遵守法律条款；不支持Linux\u002FmacOS系统",[123,124,125,126],"StarCraft: Brood War 1.16.1","BWAPI","Visual Studio 2017","Chaoslauncher",[15,13,14,53],[67,129,130,131,132,133,134],"starcraft","c-plus-plus","broodwar","ai","game","brood-war-api","2026-03-27T02:49:30.150509","2026-04-06T06:54:18.721596",[138,143,147,151,156,161],{"id":139,"question_zh":140,"answer_zh":141,"source_url":142},4418,"运行大量 StarCraft 游戏后出现 'Not enough storage is available to process this command' 错误，如何解决？","维护者确认这是 Starcraft 内部内存泄漏问题，与 BWAPI 无关。解决方案：避免长时间连续运行游戏（如每 4000 场后重启 Starcraft），或减少自动重启频率。诊断方法：在代码中添加 `#define _CRTDBG_MAP_ALLOC`、`#include \u003Cstdlib.h>`、`#include \u003Ccrtdbg.h>`，并在 `onEnd()` 函数中调用 `_CrtDumpMemoryLeaks();` 以输出内存泄漏日志。","https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Fissues\u002F320",{"id":144,"question_zh":145,"answer_zh":146,"source_url":142},4419,"如何检测 BWAPI 应用中的内存泄漏？","使用 Windows CRT 库进行检测：在代码开头添加以下配置代码：\n```\n#define _CRTDBG_MAP_ALLOC\n#include \u003Cstdlib.h>\n#include \u003Ccrtdbg.h>\n```\n然后在 `onEnd()` 事件处理函数中调用 `_CrtDumpMemoryLeaks();`。运行后，控制台将输出内存泄漏报告，包括泄漏位置和数据内容（如 `unit_grid_target` 等变量信息）。",{"id":148,"question_zh":149,"answer_zh":150,"source_url":142},4420,"使用 auto_menu 时，StarCraft 显示 'Unable to distribute map' 错误的原因是什么？","主要因文件路径过长或包含空格导致。BWAPI 旧版本未正确处理目录分隔符（\u002F vs \\）和地图传输确认机制，可能在地图未完全分发前就尝试启动游戏。高延迟网络或玩家未预存地图时问题更明显。",{"id":152,"question_zh":153,"answer_zh":154,"source_url":155},4421,"如何避免 auto_menu 的地图分发错误？","使用短路径且不含空格的安装目录（如 `C:\\TM\\Starcraft`），确保所有玩家路径一致。在 `bwapi.ini` 中设置 `map` 路径时避免长文件名和空格，例如：`map = maps\u002FBroodWar\u002FAstral_Balance.scm`。升级到修复此问题的 BWAPI 版本（4.0.1+），并验证地图传输完成后再启动游戏。","https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Fissues\u002F371",{"id":157,"question_zh":158,"answer_zh":159,"source_url":160},4422,"BWAPI 3 项目为什么被取消开发？","维护者表示 BWAPI 3 试图一次性改变过多（如外部代理结构），导致与现有 2.x 版本 AI 兼容性差，难以逐步迁移。因此决定放弃 BWAPI 3，转而通过增量优化 BWAPI 2.x 实现性能提升（如引入管道特性），并优先构建测试框架确保稳定性。状态标记为 WontFix。","https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Fissues\u002F133",{"id":162,"question_zh":163,"answer_zh":164,"source_url":160},4423,"BWAPI 是否有计划采用外部代理项目结构（如 AIModule.exe）？","没有。维护者明确表示不会采用外部代理结构，而是持续优化现有 BWAPI 2.x 架构。原因包括：避免代码分裂（如 UnitImpl 功能拆分）、简化调试流程，以及通过指令缓存等改进性能。所有开发 focus 于渐进式升级而非结构性重写。",[166,171,176,181,186,191,196,201,206],{"id":167,"version":168,"summary_zh":169,"released_at":170},103842,"v4.4.0","- Fixed known 4.3.0 crashes\r\n- Bots get messages from users send even if `BWAPI::Flag::UserInput` is disabled, they can decide if they want to act on that themselves\r\n- Noncopying builds are the default, you don't need to change configuration on BWAPILib when building it in your bot solution.\r\n- GetBuildUnit for producing units now return the barracks, gateway, nexus etc building them.\r\n- Client bots are timed\r\n- getApproxDistance fixed, now uses the OpenBW calculations.\r\n- Orange players now return the correct colors\r\n- IsBuildable fixed to account for some doodads\r\n\r\nNote:\r\nBots build differently now. Instead of linking to `BWAPI\u002Flib\u002FBWAPILIB.lib`, add the `BWAPILIB` project as a dependency to your bot. `BWAPILIB.lib` will be built to your bots output directory if it doesn't exist or is outdated (due to compiler updates). Using a locally built `BWAPILIB.lib` does not break compatibility with existing `BWAPI.dll`s.\r\n\r\nYou are always compatible with another BWAPI.dll as long as they are both built from the same BWAPI version. We're no longer including the prebuilt `.lib` files due to the many compatibility breaking compiler updates pushed to Visual Studio 2017.\r\n\r\nSee the [full changelog](https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Fwiki\u002FChanges#bwapi-440).","2019-03-12T12:31:43",{"id":172,"version":173,"summary_zh":174,"released_at":175},103843,"v4.3.0","# NOTE: DEPRECATED RELEASE, CRASHES A LOT\r\n\r\nLong overdue update consisting of\r\n\r\n- No targeting of invisible units on frame 0\r\n- `unit->getEnergy()` no longer returns the energy of enemy units\r\n- `[...]_NoCopy` project configurations\r\n- Fixed various client desync issues\r\n- Latcom rewrite\r\n\r\nSee the [full changelog](https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Fwiki\u002FChanges#bwapi-430).","2019-03-01T20:13:24",{"id":177,"version":178,"summary_zh":179,"released_at":180},103844,"v4.2.0","Long overdue update consisting of\r\n\r\n- Update to VC++ 2017\r\n- Locking client\u002Fserver bridge version so there are no more backwards-incompatible issues in the future.\r\n- Fixed a bug where you could not inject BWAPI using Chaoslauncher in WINE.\r\n- Many more bug fixes.\r\n\r\nSee the [full changelog](https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Fwiki\u002FChanges#bwapi-420).\r\n\r\n## For those getting `The object or library file '..\u002Flib\u002FBWAPI.lib' was created with an older compiler...`\r\n1. Request a new build through the issue tracker. We can build a new version quite easily through AppVeyor, there is no need to build it yourself.\r\n2. Complain to Microsoft. This is seriously out of control, and pretty weird that Visual Studio can't support older libraries built on the same major version.","2017-04-28T06:14:33",{"id":182,"version":183,"summary_zh":184,"released_at":185},103845,"v4.1.2","- Fixed Player::incompleteUnitCount returning negative values.\n- Fixed a major bug preventing Mutalisks from being morphed if a Spire was morphing into a Greater Spire.\n- Fixed a client bug that caused the initial unit set to include invalid units.\n- Added some new convenience functions.\n\nThis release is backwards compatible with previous 4.1.x releases. See the [changes](https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Fwiki\u002FChanges#bwapi-412) for more details.\n","2015-07-15T14:53:12",{"id":187,"version":188,"summary_zh":189,"released_at":190},103846,"v3.7.5","# NOTE: DISCONTINUED VERSION\n\nThis is a courtesy release containing back-ported bug fixes. This release is in all ways compatible with 3.7.4 modules. Therefore, it is recommended that tournaments use the `BWAPI.dll` from 3.7.5.\n\nSince some older bots are still using 3.7.4, this release will address several **major** bugs that have been fixed in newer versions of BWAPI. Despite the release, support for BWAPI 3 is discontinued.\n\nThere are several important [changes](https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Fwiki\u002FChanges#bwapi-375-r4160). The majority of the changes fix the following:\n- Crashes\n- Buffer overflows\n- Functionality\n- Screen positioning for the bottom of the map (often seen in tournament streams)\n- Several issues with client modules\n","2015-07-15T14:53:00",{"id":192,"version":193,"summary_zh":194,"released_at":195},103847,"v4.1.1-Beta","- Adds some configuration option improvements.\n- Significantly improved documentation, including intellisense compatibility.\n- Fixes several **major** issues with BWAPI 4.1.0 Beta.\n\nThis release is backwards compatible with the previous release. See the [changes](https:\u002F\u002Fgithub.com\u002Fbwapi\u002Fbwapi\u002Fwiki\u002FChanges#bwapi-411-beta) for more details.\n","2015-05-05T16:21:10",{"id":197,"version":198,"summary_zh":199,"released_at":200},103848,"v4.1.0-Beta","This is a release of BWAPI 4.1.0 which was automatically generated by the new BWAPI build pipeline.\n\n4.1.0 contains several changes, enhancements, and bug fixes.\nIts primary changes consist of\n- Updating to Visual Studio 2013.\n- Changing the underlying container of sets to unordered_set.\n- Several bug fixes\n- Improved documentation\n\nNote: This was re-released because of the regression addressed in 5af2392d5.\n","2015-01-25T23:06:49",{"id":202,"version":203,"summary_zh":204,"released_at":205},103849,"v4.0.1-Beta","This update fixes several important issues with the 4.0.0 beta release.\n\nAdditionally, interface pointers are now \"hidden\", and sources will need to be updated to reflect this change.\n","2015-02-11T08:25:37",{"id":207,"version":208,"summary_zh":209,"released_at":210},103850,"v3.7.4","# NOTE: DEPRECATED RELEASE\n\nThis is an old release of BWAPI. It uses Visual C++ 2008.\n","2015-02-11T08:16:41"]