Giter Site home page Giter Site logo

kiroshan / palworld-server-protector-dotnet Goto Github PK

View Code? Open in Web Editor NEW
179.0 4.0 20.0 6.85 MB

Palworld幻兽帕鲁服务端守护+存档备份+内存监控+优雅重启+Rcon指令

License: Apache License 2.0

C# 100.00%
palworld palworld-dedicated-server

palworld-server-protector-dotnet's Introduction

Palworld-server-protector-DotNet

【新】GUI版本 Palworld服务端进程守护+内存监控+优雅重启+自动存档+Rcon (for windows)

注意:protector-electron(旧版)已弃用

🍻功能

  • 服务器配置文档(.ini)可视化编辑【New】

  • Webhoot通知推送(企业微信机器人)【New】

  • 内存监控(自定义阈值触发)

  • 进程守护(当前如果没有服务端运行就自动重启)

  • 优雅重启(内存占用达到阈值后自动发送公告并关服等待重启)

  • 自动备份存档

  • 轮询获取在线玩家

  • Rcon指令

‼️注意

  • 本GUI版本复刻了命令行版本(https://github.com/KirosHan/Palworld-server-protector)所有功能
  • 旧GUI版(electron)由于占用内存过高已弃用并不再维护
  • 本工具大部分功能基于Rcon实现,所以使用需要提前配置服务端启用Rcon和管理员密码(如果配置不生效,也请留意steamapps/common/PalServer/Pal/Saved/SaveGames/0/.../WorldOption.sav)

👀效果图

预览1 预览2

📄使用方法

https://github.com/KirosHan/Palworld-server-protector-DotNet/wiki

✈️直接下载(懒人专属)

更新时间:2024-02-05

Latest版本:V2.6.6(1)

  • 使用Json保存配置文件(兼容读取原有的Ini配置文件)

  • 修改了玩家列表比较方式,现在只比较玩家Name,即使ID获取错误的情况也视为同一玩家

  • 修复了服务器名字中含有空格时无法正确获取的情况

=-=- V2.6.5(1) -=-=

  • Bug fixed:修复了由于缓存文件占用导致备份失败的问题(包括备份内容错误)

  • Fixed:当获取不到玩家steamid的情况下,也会统计到在线列表中(steamid留空)

=-=- V2.6.3(1) -=-=

  • 添加了webhook玩家动态(上线/下线)通知,需配置并开启Rcon以及webhook功能
  • 更详尽的错误日志
  • 重构了Rcon模块
  • 更多采用异步方法,避免阻塞UI线程造成界面卡顿

=-=-V2.5.3(2) -=-=

  • 添加了webhook的推送选择项
  • 修复了最小化后无法启动窗体的bug

=-=- V2.5.2(1) -=-=

  • UI调整,添加监控台
  • Webhook添加钉钉机器人支持
  • 优化备份存档功能逻辑
  • 运行状态保存,重启时自动加载上次关闭时状态
  • Webhook支持推送在线人数
  • 添加任务栏通知

=-=- V2.4.1(1) -=-=

  • 添加Webhook推送功能,目前仅支持企业微信群机器人,其他数据格式正在收集中,欢迎提供。

=-=- V2.3.0(1)-=-=

  • 新增服务端配置文件可视化编辑(.ini)

=-=- V2.2.0(1) -=-=

  • 新增配置保存功能,不用每次打开重新配置了
  • 新增Rcon的kick和ban命令
  • 新增错误日志输出
  • 修改了参数启动的方式,现在可以自由修改

https://github.com/KirosHan/Palworld-server-protector-DotNet/releases

如无法运行,请安装.net 6.0运行环境

☕Star and a Coffee

如果这个仓库对你有用,欢迎点个Star⭐︎

也可以Buy me a coffee☕︎

BuyMeACoffee

💻编译运行

Visual studio 2022

🔮Rcon

本项目Rcon功能模块改编自https://github.com/KTTI465/PalWorld-RCON-GUI

✨运行逻辑

graph LR
    A[初始化界面] --> B[启动内存监控]
    A --> C[服务器管理]
    A --> D[玩家管理]
    B --> E[内存超阈值处理]
    C --> F[发送服务器命令]
    D --> G[获取在线玩家]
    D --> H[踢出/封禁玩家]
    E --> I[服务器重启]
    F --> J[服务器启动/停止]
    F --> K[备份游戏数据]
    G --> L[定时更新玩家列表]
    H --> M[更新玩家状态]
    I --> N[记录日志并通知]
    K --> N
    M --> N
    L --> G
    N --> O[结束]

Loading

💊已知问题

1.受服务端限制,rcon发送的文本中无法保留空格,已自动替换为下划线

2.受服务端限制,rcon无法发送中文

💕Contributors

Kiros
Kiros

🚇 ⚠️ 💻
Vincentzyx
Vincentzyx

💻
Lorenzo Ariemma
Lorenzo Ariemma

💻

📈Star History

Star History Chart

palworld-server-protector-dotnet's People

Contributors

allcontributors[bot] avatar kiroshan avatar lorenzo93 avatar vincentzyx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

palworld-server-protector-dotnet's Issues

希望config纪录更多设置

我有重启整个server的习惯,
希望config纪录:
自动关服
自动启动
自动存档
自动获取在线玩家
这些设置,谢谢

希望增加功能 感谢

希望增加 备份时检测备份路径是否存在 不存在则创建路径而不是提示目录不存在
希望增加 开机自启选项

自动存档不可用

在最新版本中依旧无法正常使用自动存档功能
游戏存档目录和备份存放目录均已设置 权限为完全控制
点击备份时提示Complete Save完成存档
但是在存放目录没有正常保存 文件夹为空
并没有生成错误日志

关于运行监控的问题

能不能通过25575端口来检测服务端是否假死后,再自动启动服务端
最近好多次出现服务端显示运行中,其实已经蹦了,25575端口也是不通的,
目前来说单纯的进程关闭的检测已经不能满足服务端重启了

遊戲更新0.1.4.1會一直報錯

[12:45:55] 服务端启动失败。
[12:46:30] 进程运行状态:未运行
[12:46:30] 正在尝试启动服务端(-port=8211 -players=32 -log -nosteam -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS)...
[12:46:30] 服务端启动失败。

Whitelist function

Hi,

I'm Italian and I speak only english (except italian). I've translated your readme using a translator so I'm not sure if I got everything correct.
Is there in your software a whitelist function?
Is there support for translations? I'm a C# developer and I could help :)

自定义存档目录

当启动路径选择的非\common\PalServer下的PalServer.exe时,自动备份存档会显示找不到路径,存档的备份路径是根据根目录+下层目录这个逻辑来备份的,如果选择的是其他路径,就会出现找不到存档目录的情况,所以希望能够添加一个自定义设置存档路径的功能

Language support

Hi!

I'd like to try the tool, I got the gist and got it to run but it'd be much helpful if there was a toggle to change the language.
I understand for some of the services you use WeChat and DingTalk, but im more interested in everything else :)

English support please 👍

多开时无法正确识别进程

var processes = Process.GetProcessesByName(processName);
L421使用了进程名字来判断进程,导致多开的管理软件无法正确识别进程

因不会C#语言,GPT告诉我可以通过如下代码识别进程的目录

Process process = Process.GetProcessesByName("notepad")[0];
string filePath = process.MainModule.FileName;  
string directoryPath = Path.GetDirectoryName(filePath);

烦请作者修复

希望在 Rcon界面加一个 服务器定时存档功能,比如每1分钟发送/Save指令

这么做的原因是,这个服务器程序,如果意外崩溃,或电脑意外关机/停电,可能会导致玩家的进度回滚到 之前的时间(有的时候可能是快1小时,这很离谱。),虽然 有服务器文件自动存档,但哪个太占用硬盘资源了,而且时至少半小时,1小时的回滚,

如果有了服务器存档,每分钟保存一次,即使服务器程序崩溃,回档时间也只在1分钟左右,这不会影响正常游戏进度。

希望被采纳。

備份重複問題

請問備份目錄內會有過去備份的內容並重複往上疊加該如何處理呢。
問題1
問題2
問題3

Rcon命令发送失败问题

NPRMRM}J{%6 }3O91L$ 32D
image
这个Rcon端口是配置默认的25575,发送指令失败是我的管理员密码不对吗,这个密码是具体指哪个密码

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.