Project Zomboid

Project Zomboid

Not enough ratings
[B41/42]BetterNetworking网络优化
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
2.582 MB
23 May, 2024 @ 9:13am
27 Jul @ 9:42pm
13 Change Notes ( view )

Subscribe to download
[B41/42]BetterNetworking网络优化

Description
This mod supports all game versions. It runs parallel to the game. For B42, you need to find and install the multiplayer mod yourself somewhere on the Internet.
本模组支持所有游戏版本,它不依赖游戏运行。对于B42版本,你需要自己在网上找联机模组,本模组只是个优化网络通信的模组。

!!!This is a mod that requires to run at both Server and Clients side!!!
!!!本模组需要同时在服务器和客户端上运行!!!

This Mod works parallel to game's original connection. Servers running this KCP tunnel can accept connections from clients running / not running this tunnel at the same time.
本模组不影响游戏的直接联机方式,运行了本模组的服务器可以同时接受以前的直连玩家以及运行了本模组的玩家联机游玩。只不过直连服务器的玩家没有网络优化效果,仅此而已

The KCP protocol being used by many games comes to Project Zombiod! KCP is a fast and reliable application level protocol being used by many famous game titles including Genshin Impact. This mod provides a working KCP tunnelling software based on KCP protocol that can reduce network delay and avoid package loss.
KCP协议是许多游戏使用的网络通信协议。它是一个快速可靠的应用层协议,被业内许多著名游戏用作网络通信,其中就包含了原神。本mod提供了一个基于KCP协议的隧道软件,可以有效改善高峰期延迟、避免丢包等网络问题。KCP自带丢包重传与纠错算法,从理论上避免了UDP的丢包问题,同时它改善了重传机制,在拥塞时能够快速重传数据,降低网络延迟,降低网络波动。

Supports Windows and Linux/MacOS!For Linux and MacOS, you need to figure out how to install KCPTube by yourself. Anyway, KCP Tube is open source, you can compile it yourself (on any operating system).
支持 Windows 和 Linux/MacOS!不过Linux/MacOS用户需要自己摸索安装软件的方法,毕竟代码都开源了,大不了自己编译呗。

How to Use使用方法

Any of the following 3 methods is OK! Choose whichever you like!
一下三种方法任选其一即可!

Instant Configuring 极速配置
Unpack "BetterNetworking.7z" in mod folder. Run "BetterNetworking.exe". Done.
解压缩mod文件夹里的"BetterNetworking.7z"(必须解压缩,不能直接在压缩包里运行),运行“BetterNetworking.exe”。

This approach is intended for those unfamiliar with networking. I encourage you to use manual configuring to fine tune KCP performance. Due to the complexity of internet, this approach may fail to connect for your network, therefore, in this case, you have to find someone who knows manual configuring to help you.
这个极速配置是方便网络通信方面完全不懂的玩家使用的。如果你有能力,建议手动配置,这样能够更好的优化网络性能。但是请务必记得,由于网络环境复杂多变,这种简易的配置可能没法成功连接。这时候你就需要想办法找知道怎么手动配置的人帮你了。

找不到mod文件夹怎么办? 怎么解压缩?...
---不会百度么?没长手么?是不是还需要教你怎么插电源,怎么开机关机?

Manual Configuring手动配置

You need to open mod folder and run the tunnelling software by yourself. Read the QuickStartGuid.pdf first for quick start. Refer to the Github page for advanced usage.
必须打开Mod文件夹,手动运行隧道软件。想要快速上手,运行前需要阅读使用说明,否则无法成功建立隧道。需要多个客户端同时连接等高级配置功能,情访问相应的Github网页。

This approach is intended for those who knows some basic knowledge about networking.
这个方法适合于懂得一定网络通信知识的人

Advanced Manual Configuring高级手动配置

Visit the Github repo of KCP Tube to view instructions.
访问KCP Tube的Github页面查看配置指南。

I am NOT the programmer of this tunnelling software. VISIT Github Page for details.
本人不是软件作者,详情情访问Github网页。
https://github.com/cnbatch/kcptube

You can view the schematic diagram of KCP Tube here
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3259552108
点击此处查看KCP隧道原理图
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3259556518

Disclaimer免责声明
If you concern about virus, please DELETE the exe file and download it form Github. The *.conf files and *.bat files can be opened with notepad. You can check them by yourself.
如果你担心电脑病毒,请删除可执行文件,自行从Github上下载软件。文件夹内的 *.conf和 *.bat 文件都是纯文本格式,可以用记事本打开自行查看。

The Mod Creator is not the programmer of this tunnelling software! The Mod Creator is only a user who wants to share this software to all PZ players because the networking code of PZ sucks.
本人不是软件作者,本人只是一个普通玩家,因为游戏的网络通信代码写的很烂,而国内网络高峰期会丢弃UDP数据包,所以将这个隧道软件分享给大家。希望能解决部分问题,提升游戏体验。


What is KCP protocol?什么是KCP协议?
KCP is a fast and reliable protocol that can achieve the transmission effect of a reduction of the average latency by 30% to 40% and reduction of the maximum delay by a factor of three, at the cost of 10% to 20% more bandwidth wasted than TCP. It is implemented by using the pure algorithm, and is not responsible for the sending and receiving of the underlying protocol (such as UDP), requiring the users to define their own transmission mode for the underlying data packet, and provide it to KCP in the way of callback. Even the clock needs to be passed in from the outside, without any internal system calls.
KCP是一个快速可靠协议,能以比 TCP 浪费 10%-20% 的带宽的代价,换取平均延迟降低 30%-40%,且最大延迟降低三倍的传输效果。纯算法实现,并不负责底层协议(如UDP)的收发,需要使用者自己定义下层数据包的发送方式,以 callback的方式提供给 KCP。 连时钟都需要外部传递进来,内部不会有任何一次系统调用。

The entire protocol has only two source files of ikcp.h, ikcp.c, which can be easily integrated into the user's own protocol stack. You may have implement a P2P, or a UDP-based protocol, but are lack of a set of perfect ARQ reliable protocol implementation, then by simply copying the two files to the existing project, and writing a couple of lines of code, you can use it.
整个协议只有 ikcp.h, ikcp.c两个源文件,可以方便的集成到用户自己的协议栈中。也许你实现了一个P2P,或者某个基于 UDP的协议,而缺乏一套完善的ARQ可靠协议实现,那么简单的拷贝这两个文件到现有项目中,稍微编写两行代码,即可使用。

Visit https://github.com/skywind3000/kcp for technical details.
要了解更多技术细节,可以访问链接 https://github.com/skywind3000/kcp

What is KCP Tube?什么是KCP Tube?
KCP Tube is a tunnelling software written in C++ that implements KCP protocol. It supports both TCP and UDP traffic, while most of the other KCP tunnelling software supports only TCP traffic.
KCP Tube是一款使用C++便编写的隧道软件,实现了KCP协议,它同时支持传输TCP和UDP两种协议的数据流量。其他大多数的类似隧道都只支持TCP流量。绝大多数游戏都使用UDP传输数据,因此支持UDP流量对游戏玩家而言很重要。

Workshop ID: 3252822560
Mod ID: BetterNetworking

Workshop ID: 3252822560
Mod ID: BetterNetworking
Popular Discussions View All (1)
15
23 Jan @ 2:12am
PINNED: Supports 问题解答
法克*尤尔*马泽尔
38 Comments
法克*尤尔*马泽尔  [author] 11 Apr @ 11:27am 
额,具体是问什么
谢谢你泰罗 9 Apr @ 9:26am 
您好,关于你的这个mod,我有很多的问题想问
法克*尤尔*马泽尔  [author] 13 Feb @ 12:21pm 
@我要嗦绪山真寻牛牛 没有公网ip有概率可以用,需要使设置stun服务器。但这个不一定成功,要看你和你朋友各自的网络类型。
我要嗦绪山真寻牛牛 11 Feb @ 6:38pm 
纯小白,没有公网IP还能用吗?我看说明文档里说服务端要有公网IP
法克*尤尔*马泽尔  [author] 1 Feb @ 6:13pm 
做主机的话可以用,但主机就是自己电脑和自己电脑通信,不会丢包的。如果你自己做主机玩游戏还遇到黑屏卡顿等,那基本可以确定是硬盘读写速度不足导致存档文件加载不及时
123 1 Feb @ 5:23am 
我是主机可以使用吗
NoneSurvive 31 Jan @ 2:04am 
谢谢解答,确实,我是蹭别人的服务器在用,服务器没开我选的端口
法克*尤尔*马泽尔  [author] 30 Jan @ 1:15pm 
@NoneSurvive 如果是云服务器,可能是需要在安全组里配置端口
NoneSurvive 30 Jan @ 2:55am 
手动配置以后,测试连接,显示配置文件没问题,但是其他测试通不过,是服务器没有开放我设置的端口吗?但好像连防火墙都没打开啊?还是说有别的原因?
法克*尤尔*马泽尔  [author] 8 Jan @ 7:25am 
@PiCpo 那个程序内的速度统计不是很准。

额,后边的其实是没删除干净