# 使用Legion的方式导出

### Download and Setup

If you have not downloaded and set up Legion, you can find it on the Modding tools page:

{% content-ref url="/pages/-LQf1VwnfcshCxN-w0r9" %}
[修改工具](/titanfall2/chinese/how-to-start-modding/modding-introduction/modding-tools.md)
{% endcontent-ref %}

### How to Use

After you have set up Legion, open the `Legion.exe` file to start.

#### Extracting images, materials, textures from .rpaks

To extract images, materials, etc., click the "Load File" in the bottom left and navigate to`\Titanfall2\r2\paks\Win64`. The most commonly used rpak is `common.rpak`. \
After you open the rpak file, the Legion window should show a list of files. Double-click the files you want to extract, and they will automatically be extracted to `\Legion\exported_files\`. You can also use "Export Selected" and "Export All" to extract files. If you need help finding something there is a "Search" on the top right.

#### "Titanfall 2" button

Clicking the `Titanfall 2` button will open a window prompting you to drop a `.mdl` file to convert. This will convert the file into seperate 3D Object files (`.obj`). Note that not every export format has been tested for Titanfall 2. Semodel's have been tested but requires Blender 2.79 to use BUT you can export as .obj which then you can use newer Blender versions. You can change export format in "Settings".


---

# Agent Instructions: 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://noskill.gitbook.io/titanfall2/chinese/r2-ripping/shi-yong-legion-de-fang-shi-dao-chu.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.
