跳到正文

EOSP2P – P2P Implementation through Epic Online Service (PoC)

作者:SZKTAS

This mod add a multi-player connection method by utilizing P2P interface powered by Epic Online Service.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Introduction

This mod aims to add P2P connection for both client and dedicated server through Epic Online Service, in order to add a multiplayer connection method whenever direct access to public IP is not available (for hosting player or server), e.g. behind Nedwork Address Translation.

Requirements

This mod can only operate on the following platforms:

  • Windows (x86_64)
  • Windows (arm64) (not yet tested)
  • Linux (x86_64), with GNU C Library version 2.17+* (not yet tested)
  • Linux (arm64), with GNU C Library version 2.17+*
  • MacOS (x86_64), with system version at least OS X 10.15 (Catalina)
  • MacOS (arm64) (not yet tested)

* System bundled with Musl C can try gcompat
* Android is not supported due to technical issues

Details

Client

Joining

If the mod successfully loaded and operate, input a connection address with correct format will both works as like normal server address in "Add Server" and "Direct Connection"
Direct Connection
Add Server

Hosting

If the mod successfully loaded and operate, after Open To LAN operation, the connection address through P2P will also printed in chat. It is able to copy through clicking, just like the original LAN port.
Connection address in chatbox after Open to LAN

Server

The connection address through P2P will be printed just after "Start serving on..". Note that the connection address do not include brackets.
Connection address in dedicated server log

Commands

The following commands works on both dedicated server and client.

  • /eosp2p status: Show if mod operates or not, with reason.
  • /eosp2p eosaddress: Show the connection address of the current world. Error thrown if not yet published.

Known Issues (that I failed to solve)

  • Frequent connect and disconnect may causes issues.
  • The correct close reason may not shown up (as the connection close before the close reason arrived)
  • Server PING function will shows that server not accessible instead of latency

Credits

This project incorporates the following open-source software libraries. We gratefully acknowledge the authors and contributors for their amazing work.

常见问题

EOSP2P – P2P Implementation through Epic Online Service (PoC) 支持哪些 Minecraft 版本?

EOSP2P – P2P Implementation through Epic Online Service (PoC) 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

EOSP2P – P2P Implementation through Epic Online Service (PoC) 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分