# 森林开服教程

{% hint style="warning" %}
**此教程正在持续更新中。**
{% endhint %}

## 开始 <a href="#kai-shi" id="kai-shi"></a>

{% hint style="info" %}
本教程面&#x5411;**《灵工艺森林开服器》**&#x8F6F;件用户。 如果你不是使用此软件来开服，那么本教程的内容可能不适用于你。
{% endhint %}

### 下载官方专用服务器工具

1. 登录 Steam 在 **库** 中 **点击 游戏、软件和工具** 勾选 **工具** 选项。

<div align="left"><figure><img src="https://3120800205-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBw0VwoV0yDZshBzmKvNc%2Fuploads%2FURJpC09Uf49wwUDW6R0d%2Ftutorial_the-forest-server_get_tool.png?alt=media&#x26;token=24c2d30c-35d3-4e36-8c47-59279799360c" alt="" width="272"><figcaption></figcaption></figure></div>

2. 找到 **The Forest Dedicated Server** 并下载，下载完毕后打开文件目录。

<div align="left"><figure><img src="https://3120800205-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBw0VwoV0yDZshBzmKvNc%2Fuploads%2FN2sU12vG7mlmX7JMOj3p%2Ftutorial_the-forest-server_open_tool.png?alt=media&#x26;token=ebb67c00-3a2d-44ea-80c2-ab920e03295d" alt="" width="560"><figcaption></figcaption></figure></div>

### 运行服务器

1. 下载 **《灵工艺森林开服器》**

{% embed url="<https://nullcraft.org/d/101>" %}

2. 将 **《灵工艺森林开服器》** 放入 **The Forest Dedicated Server.exe** 同级目录下。

<div align="left"><figure><img src="https://3120800205-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBw0VwoV0yDZshBzmKvNc%2Fuploads%2F4pFpeOlIyBlOZnThjIzY%2Ftutorial_the-forest-server_run.png?alt=media&#x26;token=52ea45bc-f31d-4887-9e8c-725d8034d0f3" alt="" width="563"><figcaption></figcaption></figure></div>

3. 打开 **《灵工艺森林开服器》**  并运行服务器，直至等待提示 **服务器启动完毕**。

<figure><img src="https://3120800205-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBw0VwoV0yDZshBzmKvNc%2Fuploads%2FXcUQcA5Jcof2A605X8su%2Ftutorial_the-forest-server_start.png?alt=media&#x26;token=9d22494a-e457-40ad-818a-877b696b4119" alt=""><figcaption></figcaption></figure>

4. 打开游戏，测试局域网内是否能够正常显示服务器
   * 注：默认游戏名为 **NullCraft The Forest Server** 可在 **服务器配置** 页面进行修改。

<figure><img src="https://3120800205-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBw0VwoV0yDZshBzmKvNc%2Fuploads%2FHrpK7QIai8XY480Ux9ji%2Ftutorial_the-forest-server_join.png?alt=media&#x26;token=4de9ea94-97f3-4be6-9ac6-057af9b20132" alt=""><figcaption></figcaption></figure>

## 设置 Steam 游戏账户

若要使用 Steam 服务器功能，例如收藏，游戏保存，需要设置 Steam 游戏账户令牌。

**可参考此教程:**

{% content-ref url="steam-game-server" %}
[steam-game-server](https://docs.nullcraft.org/tutorial/steam-game-server)
{% endcontent-ref %}

## 问题排查

### 无法找到服务器

检查 服务器配置页面 中的 服务器IP地址 栏目，将此处的 IP 地址填写为本机 IPv4 地址或公网 IPv4 地址后再试

### 无法保存游戏进度

检查是否设置了 [#she-zhi-steam-you-xi-zhang-hu](#she-zhi-steam-you-xi-zhang-hu "mention") 的令牌
