> For the complete documentation index, see [llms.txt](https://docs.pandas.ws/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pandas.ws/self-compiled/compile-on-windows.md).

# Windows 平台

### 软件环境

您的电脑中必须正确安装并配置好以下软件才能进行后续工作

* Microsoft Visual Studio
* Git for Windows
* TortoiseGit

### 步骤简介

* [使用 TortoiseGit 克隆熊猫模拟器的代码](#shi-yong-tortoisegit-ke-long-xiong-mao-mo-ni-qi-de-dai-ma)
* [编译 Boost Libraries](#bian-yi-boost-libraries)
* [运行 rAthena.sln 解决方案并执行编译](#yun-hang-rathena.sln-jie-jue-fang-an-bing-zhi-hang-bian-yi)

### 具体操作方法

#### 使用 TortoiseGit 克隆熊猫模拟器的代码

* 访问[熊猫模拟器在 Github 的项目主页](https://github.com/PandasWS/Pandas)来获取仓库地址

![](/files/svD3Q5USzO00mtopXA10)

* 在资源管理器中找一个路径<mark style="color:purple;">**全英文**</mark>的文件夹，比如：**D:\Ragnarok**
* 在 **D:\Ragnarok** 目录中空白的地方点击鼠标右键，选择：**Git 克隆**
* 在打开的窗口中将仓库地址粘贴进去，并点击确定

<div align="center"><img src="/files/DwjrrSuF3jsf2TW3jB2T" alt=""></div>

* 此时 **TortoiseGit** 会开始克隆熊猫模拟器的代码到：**D:\Ragnarok\Pandas** 目录
* 传输速度取决于您的网速，请耐心等待

#### 编译 Boost Libraries

* 进入刚刚克隆下来的熊猫模拟器源代码目录
* 在其中找到 `3rdparty\boost` 文件夹
* 找到其中的 `bootstrap.bat` 文件，双击它来编译 Boost 库
* 编译速度取决于电脑的性能，请耐心等待
* 成功后会看到 `3rdparty\boost\stage\lib` 目录中出现大量文件

#### 运行 rAthena.sln 解决方案并执行编译

* 重新回到熊猫模拟器源代码目录
* 在其中找到 `rAthena.sln` 解决方案文件，双击打开
* 在打开的 Visual Studio 窗口顶部的工具栏中，调整为 Release 和 Win32

![](/files/Ieee3JiVoFVdte88AEJh)

* 点击顶部的菜单：生成 -> 重新生成解决方案

![](/files/endESk0k60pcr26JseEC)

* 编译任务开始后你可以在底部的“输出”窗口中观察进展
* 编译速度取决于电脑的性能，请耐心等待（大约需要 5 分钟）
* 顺利的话你会在输出窗口看到如下提示信息

![](/files/RxXJ0bO24A05NVGnBDdd)

* 至此，熊猫模拟器的编译过程结束，可以关闭 **Visual Studio** 了

### 关于数据汉化

您可能会发现仓库中 `db` 目录里的各类信息并未汉化，而且与直接从 \[下载页面] 获取到的压缩包目录结构并不一致 ( 有很多散乱的文件 ) 。这是为了与 rAthena 仓库保持最小 改动而有意为之，您可以通过预置的辅助脚本来完成编译和发布打包操作，以此来获得一个对使用者 友好的压缩包。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pandas.ws/self-compiled/compile-on-windows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
