它是什么?
在由代理连接的网络中,代理后面的每个服务器通常都会发送自己的资源包。玩家从大厅切换到生存服时,可能需要经历一次额外的加载屏幕;而如果在每个服务器上托管资源包,则需要在每台服务器上开放端口。
RPE Proxy 将资源包的发送过程移至 Velocity 代理。它与 RP Engine 配合使用,该插件可将自定义物品、模型、HUD 等构建到资源包中。
你能获得什么
- ✔ 每次加入网络仅下载一次。 玩家在加入网络时接收资源包,切换服务器时不会重新发送,除非新服务器使用了不同的资源包。
- ✔ 由代理提供服务。 代理会保留每个资源包的副本,并通过一个端口提供服务。你的服务器通过玩家的连接传递资源包,因此无需开放其他端口,且资源包永远不会离开你的机器。
- ✔ 或中继模式。 不想开放端口?
mode: relay 会将你原本服务器会发送的链接,通过 ResourcePack AI 免费的资源包主机进行转发。
- ✔ 兼容 PackSquash。 即使两个服务器分别对相同的资源包进行压缩,它们仍被视为同一个资源包。
- ✔ 没有它也不会出错。 如果玩家的连接未经过 RPE Proxy,其服务器仍会像以前一样直接发送资源包。
设置方法
- 将
RPE-Proxy.jar 放入你的 Velocity plugins 文件夹并重启代理。
- 在代理上开放端口
8183,并在 plugins/rpe-proxy/config.yml 中将 serve.public-address 设置为带有该端口的服务器地址。
- 在代理后面的每个服务器上,在 RP Engine 的
config.yml 中设置 proxy.enabled: true 并重启。
完整指南请参阅 文档。
What is it?
On a network, every server behind the proxy normally sends its own resource pack. A player going from the lobby to survival can sit through a second loading screen, and hosting the pack yourself means opening a port on every server.
RPE Proxy moves the sending to your Velocity proxy. It works with RP Engine, the plugin that builds custom items, models, HUDs and more into a resource pack.
What you get
- ✔ One download per network join. A player is sent the pack when they join the network, and switching servers sends nothing, unless the new server uses a different pack.
- ✔ Served from the proxy. The proxy keeps a copy of each pack and serves it on one port. Your servers hand it the pack through the player's connection, so nothing else has to be opened and the pack never leaves your machines.
- ✔ Or relayed. Prefer not to open a port?
mode: relay sends the link your servers would have sent, from ResourcePack AI's free pack host.
- ✔ Works with PackSquash. Two servers that build the same pack count as the same pack, even when each squashes it separately.
- ✔ Nothing breaks without it. A player whose connection does not run through RPE Proxy is sent the pack by the server, as before.
Setting it up
- Put
RPE-Proxy.jar in your Velocity plugins folder and restart the proxy.
- Open port
8183 on the proxy and set serve.public-address in plugins/rpe-proxy/config.yml to your server's address with that port.
- On every server behind the proxy, set
proxy.enabled: true in RP Engine's config.yml and restart it.
The full guide is in the docs.
评论 0
登录后参与评分
还没有评论,来抢沙发吧