8000 GitHub - 3DMXM/SR2MP: 史莱姆牧场2 联机 Mod 修复版 · GitHub
[go: up one dir, main page]

Skip to content
3DMXMPublic
forked from Egor935/SR2MP

About

史莱姆牧场2 联机 Mod 修复版

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

93 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

史莱姆牧场2 联机 Mod 修复版 SR2MP

Support the project: https://boosty.to/egor_ice

Multiplayer compatibility

Both players must run the same SR2MP build. The current network protocol is version 6 and is not compatible with older builds.

After joining, SR2MP transfers the host save, validates the loaded actor manifest, and only then enables gameplay synchronization. The in-game overlay shows the current synchronization phase.

On clients, the ready handshake also waits for the loaded player's physics/input loop to resume. A client that is still being unfrozen by the save loader therefore remains in the synchronization phase instead of receiving live gameplay traffic prematurely.

构建与打包 DLL

构建环境:Windows、.NET SDK/MSBuild,以及 .NET Framework 4.7.2 Developer Pack。仓库根目录下还需要存在 .deps 依赖目录,其中包含 BepInEx 和游戏互操作程序集。

在仓库根目录打开 PowerShell,执行以下命令重新构建 Release 版本,并将最终 DLL 复制到 dist 目录:

dotnet build .\SR2MP.sln -c Release -t:Rebuild
New-Item -ItemType Directory -Force .\dist | Out-Null
Copy-Item .\SR2MP\bin\Release\SR2MP.dll .\dist\SR2MP.dll -Force

构建成功后,发布文件为 dist\SR2MP.dll。安装时将其复制到游戏的 BepInEx 插件目录:

Copy-Item .\dist\SR2MP.dll "<游戏目录>\BepInEx\plugins\SR2MP.dll" -Force

参与联机的所有玩家必须安装完全相同版本的 DLL;当前网络协议版本为 6,与旧版本不兼容。

调试版本与日志

使用以下命令构建带调试日志和 PDB 符号文件的 Debug 版本:

dotnet build .\SR2MP.sln -c Debug -t:Rebuild
New-Item -ItemType Directory -Force .\dist-debug | Out-Null
Copy-Item .\SR2MP\bin\Debug\SR2MP.dll .\dist-debug\SR2MP.dll -Force
Copy-Item .\SR2MP\bin\Debug\SR2MP.pdb .\dist-debug\SR2MP.pdb -Force

运行游戏后,SR2MP 会将本次运行的完整日志写入 BepInEx\SR2MP-debug.log,并将上一次不超过 8 MB 的日志保留为 BepInEx\SR2MP-debug.previous.log。日志包含同步阶段变化、存档传输、控制包明细,以及每 5 秒一次的收发包、Actor 和远端玩家状态汇总。提交问题时请同时提供双方的这两个日志文件。

Credits

About

史莱姆牧场2 联机 Mod 修复版

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0