Giter Club home page Giter Club logo

backupmap's Introduction

Minecraft BDS CSR BackupMap

Minecraft BDS CSR plugin


本类库是 Minecraft基岩版服务端的扩展插件, 依赖[梦之故里]开发的插件载入器和BDSNetRunner插件 以及我的另一个开源类库 Tools,相关链接如下:

项目 关联地址
MinecraftBDS https://www.minecraft.net/en-us/download/server/bedrock/
BDSNetRunner https://github.com/zhkj-liuxiaohua/BDSNetRunner
Tools https://github.com/cngege/Tools

使用方法

  1. 下载梦之故里启动器
  2. 下载Minecraft BDS
  3. 下载梦之故里BDSNetRunner插件
  4. 下载本插件及依赖(Tools)
  5. 将Minecraft BDS所有文件移入梦之故里启动器文件夹中MCPE文件夹下
  6. 按照Mojang官方教程配置好BDS文件
  7. 将BDSNetRunner放入MCPE同级的MCModDll文件夹中
  8. 在MCPE文件夹中新建CSR文件夹,并将本插件和Tools.dll文件放入该文件夹
  9. 启动梦之故里启动器(双击MCModDllExe文件夹中的debug.bat批处理,或者根据教程在网页端启动)
  10. 在BDS命令窗口中提示 [BackupMap] 自动备份组件已加载。 即可等待出现配置面板
  11. 面板第一个输入控件处填插件循环备份存档间隔时间 仅填数字,总时间不要小于一分钟
  12. 面板第二个输入控件填备份的存档将要保存到的文件夹,右边按钮点击后可更方便选择
  13. 下面的复选框控制 备份到的文件夹有重名文件时是跳过还是覆盖
  14. 面板右下角按钮点击后将配置写入到本地配置文件中(BackUpMap/BackupMap.ini),没有出现提示表示成功
  15. 点击面板右上角❌关闭面板窗口 无需重启服务端插件已开始工作

此处输入图片的描述

注意❗:插件仅第一次打开才会弹出面板进行配置。如果需要重新配置,可以删除 BackUpMap/BackupMap.ini 文件,重启服务端,即会再次弹出配置面板。

backupmap's People

Contributors

cngege avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

backupmap's Issues

最新插件导致服务端假死

我们服务器发现在更新你的最新插件后,服务端在3个小时内必假死。(服务端的csr文件夹中我只放了dll文件没放另外几个)
我已经退回了原来不会假死的版本,并开启了一个新的服务端,这个服务端只运行了你的最新插件和CSR(所有的文件都放进去了)
我没有找到输出日志的地方,控制台假死前没有输出任何的错误,假死后只能强制关闭进程
我确认不是因为我点击了服务端黑色窗口导致进入快速编辑模式挂起服务端,因为为了防止这样挂起服务端,我已经把快速编辑模式禁用了
请问我该如何帮助排查bug?

备份导致崩服

[2022-04-06 07:12:16 BackupMap ]5S后开始备份存档
Saving...
The command is already running
已获取备份文件列表,准备备份
[BackupMap Error] 执行压缩失败,将备份的文件夹复制到备份目录,错误:System.IO.DirectoryNotFoundException: 未能找到路径“C:\Users\15490\Desktop\1.16.40.02_Server_V1.5RC1\bedrock-server-1.16.40.02\plugins\BackUpMap\tmp\637848259415300277\Bedrock level”的一部分。
   在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   在 System.IO.FileSystemEnumerableIterator`1.CommonInit()
   在 System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
   在 System.IO.DirectoryInfo.EnumerateFileSystemInfos(String searchPattern, SearchOption searchOption)
   在 System.IO.Compression.ZipFile.DoCreateFromDirectory(String sourceDirectoryName, String destinationArchiveFileName, Nullable`1 compressionLevel, Boolean includeBaseDirectory, Encoding entryNameEncoding)
   在 System.IO.Compression.ZipFile.CreateFromDirectory(String sourceDirectoryName, String destinationArchiveFileName)
   在 BackupMap.AutoBackup.<>c__DisplayClass22_0.<init>b__3()


   由于 Exception.ToString() 失败,因此无法打印异常字符串。

在执行备份后,命令行提示如上,随后崩服。
tmp文件夹下存档文件并没有及时删除,错误也不是一运行备份就报的,是在db文件全部复制到tmp目录下的时候报的,报错的同时,服务端的存档名和dat文件也出现在了tmp目录下,看不清是先报错还是先把dat文件复制进去的
在资源管理器 关联的句柄中 并没有看到相关进程

手动备份,文件打包

建议加入手动备份,有时候服务器有特殊情况需要备份,但下次自动备份时间太长了
大量零碎的文件在百度网盘的文件夹自动备份里很容易出问题,如果输出的不是一个文件夹,而是一个文件,那自动上传差文件可以很轻易的发现,没有压缩都可以的

插件第二次备份报错

`C:\Users\Administrator\Desktop\1.16.40.02_Server_V1.5beta\bedrock-server-1.16.40.02>cmd /c "nanolauncher.exe -r -1 -p .\BDSJSRunner.dll .\BDSNetRunner.dll .\trapdoor-0.9.81-1.16.40.2.dll .\bedrock_server.exe"
{[插件]JS插件平台已装载。
{[插件] Net插件运行平台(社区版)已装载。此平台基于LGPL协议发行。
version=1.16.40.2
Active code page: 65001


|__ | | |
| |
__ __ _ _ __ | | ___ ___ _ __
| | '
/ _ | '_ \ / _ |/ _ \ / _ | '
|
| | | | (| | |) | (| | () | () | |
|
|| _,_| .
/ _,|_/ __/||
| |
|
|

github:https://github.com/hhhxiao/TrapDoor
License: GPL
trapdoor version: 0.9.81-1.16.40.2
build time: Nov 14 2021 12:14:52

[CSR] load CSR\AntiBeacon.csr.dll
[AntiBeacon] 请等待版本适配..
[AntiBeacon] 反信标刷物已加载。适用版本:1.16.40.2
[CSR] load CSR\BackupMap.csr.dll
Get Api sendText failed.
Get Api JSErunScript failed.
Get Api JSEfireCustomEvent failed.
Get Api setscoreboardValue failed.
Get Api setServerMotd failed.
Get Api getscoreById failed.
Get Api setscoreById failed.
Get Api postTick failed.
Get Api getItemRawname failed.
Get Api readHardMemory failed.
Get Api writeHardMemory failed.
[BackupMap] 自动存档备份组件已加载。
[CSR] load CSR\BehavoirLogV2.csr.dll
[Behavior]行为日志已装载!
[CSR] load CSR\BlackBE.csr.dll
[BlackBE] Loaded.
[CSR] load CSR\WsFakePlayer.csr.dll
ws://127.0.0.1:11451
[WsFakePlayer] Loaded.
读取JS文件:.\js\Easychat.js
读取JS文件:.\js\shamplayer.js
sham player >> 假人插件加载完成
NO LOG FILE! - setting up server logging...
[2022-03-31 09:36:25 INFO] Starting Server
[2022-03-31 09:36:25 INFO] Version 1.16.40.2
[2022-03-31 09:36:25 INFO] Session ID 72b83c06-fe8e-4784-a9e4-b0e00d83a579
[2022-03-31 09:36:25 INFO] Level Name: server-property
[2022-03-31 09:36:25 INFO] Game mode: 0 Survival
[2022-03-31 09:36:25 INFO] Difficulty: 3 HARD
[WsFakePlayer] Connect to server success.
[2022-03-31 09:36:25 INFO] opening worlds/server-property/db
[2022-03-31 09:36:28 INFO] IPv4 supported, port: 30101
[2022-03-31 09:36:28 INFO] IPv6 supported, port: 30102
[2022-03-31 09:36:28 INFO] IPv4 supported, port: 19132
[2022-03-31 09:36:28 INFO] IPv6 supported, port: 19133
[2022-03-31 09:36:28 INFO] Server started.
[INFO] trapdoor init finish, server start.
No targets matched selector
No targets matched selector
No targets matched selector
[2022-03-31 09:36:47 INFO] Player connected: tieji, xuid: -6580269050516284592
[BlackBE] [INFO] 对tieji的云黑检测成功.
[2022-03-31 09:36:55 BackupMap ]5S后开始备份存档
Saving...
The command is already running
已获取备份文件列表,准备备份
存档全部复制成功
There are 1/30 players online:
tieji
[2022-03-31 09:37:36 BackupMap ]5S后开始备份存档
The command is already running
The command is already running
已获取备份文件列表,准备备份
System.IO.IOException: 文件“plugins\BackUpMap\tmp\server-property\db\2564122.ldb”已经存在。
在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
在 System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
在 BackupMap.AutoBackup.BackupDB(String list, String savepath)
因备份失败而终止
[2022-03-31 09:37:41 INFO] Server stop requested.
[2022-03-31 09:37:41 INFO] Stopping server...`

请问这个怎么解决啊
备份报错之后 关服也关不掉了
存档和服务端已经打包好了 如果需要的话可以发给您
谢谢

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.