-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: upload mobile screenshot&&pst-agent link * docs: update agent deployment
- Loading branch information
Showing
13 changed files
with
250 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<h1 align='center'>pst-agent deployment</h1> | ||
|
||
<p align="center"> | ||
<a href="/README.agent.md">简体中文</a> | <strong>English</strong> | ||
</p> | ||
|
||
### Linux | ||
|
||
This refers to the scenario where your game server is a Linux version, and you want to deploy the pst main body elsewhere. For the deployment of the pst main body, refer to the previous [Installation and Deployment](./README.md#installation-and-deployment). The impact of pst-agent is only on the modification of the configuration file. | ||
|
||
#### Download | ||
|
||
Download the pst-agent tool, rename it, and ensure it's executable | ||
|
||
```bash | ||
# Download and rename | ||
mv pst-agent_v0.5.0_linux_amd64 pst-agent | ||
chmod +x pst-agent | ||
``` | ||
|
||
#### Run | ||
|
||
```bash | ||
# ./pst-agent --port 8081 -f {Absolute path of the Level.sav save file} | ||
# For example: | ||
./pst-agent --port 8081 -f /home/lighthouse/game/Saved/0/S12ASNDDSAIF813412EERGH1EF134/Level.sav | ||
``` | ||
|
||
After confirming it's running normally, run it in the background (it will continue to run after closing the ssh window) | ||
|
||
```bash | ||
# Run in the background and save logs in agent.log | ||
nohup ./pst-agent --port 8081 -f ...{manually omitted}.../Level.sav > agent.log 2>&1 & | ||
# View the log | ||
tail -f agent.log | ||
``` | ||
|
||
#### Open Firewall/Security Group | ||
|
||
If pst-agent and pst main body are not in the same network group, you need to open the corresponding public network port of the game server (such as 8081, or other custom ports) | ||
|
||
#### Configuration | ||
|
||
Find the `config.yaml` file of **the pst main body (note, not the pst-agent!!!)** and modify it. | ||
|
||
**You only need to modify `save: path`** | ||
|
||
```yaml | ||
... | ||
save: # Configuration related to save file parsing | ||
path: "http://{Public IP of the game server}:{port}/sync" # pst-agent service interface | ||
... | ||
... | ||
``` | ||
|
||
Restart the pst main body to apply changes | ||
|
||
#### Close Background Operation | ||
|
||
```bash | ||
kill $(ps aux | grep 'pst-agent' | awk '{print $2}') | head -n 1 | ||
``` | ||
|
||
### Windows | ||
|
||
#### Download | ||
|
||
Download the pst-agent tool and rename it, e.g., rename `pst-agent_v0.5.0_windows_x86.exe` to `pst-agent.exe` | ||
|
||
#### Run | ||
|
||
Press `Win + R`, type `powershell` to open Powershell, use the `cd` command to navigate to the directory of the downloaded executable | ||
|
||
```powershell | ||
# .\pst-agent.exe --port Access Port -f Save file Level.sav location | ||
.\pst-agent.exe --port 8081 -f C:\Users\ZaiGie\...\Level.sav | ||
``` | ||
|
||
 | ||
|
||
After successful operation, please keep the window open | ||
|
||
#### Configuration | ||
|
||
Find the `config.yaml` file of **the pst main body (note, not the pst-agent!!!)** and modify it. | ||
|
||
**You only need to modify `save: path`** | ||
|
||
```yaml | ||
... | ||
save: # Configuration related to save file parsing | ||
path: "{http://Public IP of the game server}:{port}/sync" # pst-agent service interface | ||
... | ||
... | ||
``` | ||
|
||
Restart the pst main body to apply changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<h1 align='center'>pst-agent 部署</h1> | ||
|
||
<p align="center"> | ||
<strong>简体中文</strong> | <a href="/README.agent.en.md">English</a> | ||
</p> | ||
|
||
### Linux | ||
|
||
这里指的是,你的游戏服务器是 Linux 版本的,而你想在其它任何地方部署的 pst 本体依然参考前面的 [安装部署](./README.md#安装部署),pst-agent 对其的影响只是配置文件的修改。 | ||
|
||
#### 下载 | ||
|
||
下载 pst-agent 工具并重命名、确保其可执行 | ||
|
||
```bash | ||
# 下载并重命名 | ||
mv pst-agent_v0.5.0_linux_amd64 pst-agent | ||
chmod +x pst-agent | ||
``` | ||
|
||
#### 运行 | ||
|
||
```bash | ||
# ./pst-agent --port 8081 -f {Level.sav 存档所在绝对路径} | ||
# 例如: | ||
./pst-agent --port 8081 -f /home/lighthouse/game/Saved/0/S12ASNDDSAIF813412EERGH1EF134/Level.sav | ||
``` | ||
|
||
检查正常运行后,让其后台运行(关闭 ssh 窗口后仍运行) | ||
|
||
```bash | ||
# 后台运行并将日志保存在 agent.log | ||
nohup ./pst-agent --port 8081 -f ...{手动省略}.../Level.sav > agent.log 2>&1 & | ||
# 查看日志 | ||
tail -f agent.log | ||
``` | ||
|
||
#### 开放防火墙/安全组 | ||
|
||
如果 pst-agent 和 pst 本体完全没在同一组网内,需要放开游戏服务器的相应公网端口(如 8081,也可以是自定义的其它端口) | ||
|
||
#### 配置 | ||
|
||
找到 **pst 本体(注意,不是 pst-agent!!!)** 的 `config.yaml` 文件并修改。 | ||
|
||
**只需要修改其中的 `save: path`** | ||
|
||
```yaml | ||
... | ||
save: # 存档文件解析相关配置 | ||
path: "http://游戏服务器公网IP:端口/sync" # pst-agent 服务接口 | ||
... | ||
... | ||
``` | ||
|
||
重启 pst 本体即可 | ||
|
||
#### 关闭后台运行 | ||
|
||
```bash | ||
kill $(ps aux | grep 'pst-agent' | awk '{print $2}') | head -n 1 | ||
``` | ||
|
||
### Windows | ||
|
||
#### 下载 | ||
|
||
下载 pst-agent 工具并重命名,如将 `pst-agent_v0.5.0_windows_x86.exe` 重命名为 `pst-agent.exe` | ||
|
||
#### 运行 | ||
|
||
按下 `Win + R`,输入 `powershell` 打开 Powershell,通过 `cd` 命令到下载的可执行文件目录 | ||
|
||
```powershell | ||
# .\pst-agent.exe --port 访问端口 -f 存档文件 Level.sav 所在位置 | ||
.\pst-agent.exe --port 8081 -f C:\Users\ZaiGie\...\Level.sav | ||
``` | ||
|
||
 | ||
|
||
成功运行后请保持窗口打开 | ||
|
||
#### 配置 | ||
|
||
找到 **pst 本体(注意,不是 pst-agent!!!)** 的 `config.yaml` 文件并修改。 | ||
|
||
**只需要修改其中的 `save: path`** | ||
|
||
```yaml | ||
... | ||
save: # 存档文件解析相关配置 | ||
path: "http://游戏服务器公网IP:端口/sync" # pst-agent 服务接口 | ||
... | ||
... | ||
``` | ||
|
||
重启 pst 本体即可 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.