adde0109 / Proxy-Compatible-Forge

Works with: 1.16.5 - 1.18.2 - 1.19.x - 1.20.x
Other
34 stars 14 forks source link

This mod does not work in Minecraft version 1.18.2 #28

Closed Joe-REAL-0 closed 11 months ago

Joe-REAL-0 commented 11 months ago

Velocity version : 3.2.0 mod version : 1.18.2 - v1.4.4 I followed the instructions in README to configure config, set the velocity secret in the subserver,but when I try to connect the subserver,It still return this:

Disconnecting VANILLA connection attempt: This server has mods that require Forge to be installed on the client. Contact yo ur server admin for more details.

and the console logged a error :

Channels [upgradednetherite_items:main,utilitix:netchannel,yes_steve_model:network,inventorysorter:net,mantle:network,bong o:netchannel,jea:netchannel,upgradednetherite:main,libx:netchannel,curios:main,tconstruct:network,botania:main,bloodmagic:main,quark:main,bi ngolobby:netchannel,immersiveengineering:main,minemention:netchannel,mekanism:mekanism,patchouli:main,lootr:main_network_channel,create:main ] rejected vanilla connections

This situation has no different from when I didn't install the mod, and I'm sorry I can't provide any information related to bugs of the mod

adde0109 commented 11 months ago

Did you connect using a proxy tha supports modern forge?

Joe-REAL-0 commented 11 months ago

Did you connect using a proxy tha supports modern forge?

Hadn't yet. Acturally I don’t know which proxy support mordern forge.

adde0109 commented 11 months ago

https://github.com/adde0109/Ambassador You could use this plugin with velocity in order for it to work.

Joe-REAL-0 commented 11 months ago

https://github.com/adde0109/Ambassador You could use this plugin with velocity in order for it to work.

Well,now It come to a Exception:

**Exception**

Exception verifying forwarded player info java.lang.Exception: Got empty packet at org.adde0109.pcf.ModernForwarding.handleForwardingPacket(ModernForwarding.java:38) ~[proxy-compatible-forge-1.18.2-1.1.4.jar%2310 4!/:1.18.2-1.1.4] at net.minecraft.server.network.ServerLoginPacketListenerImpl.handler$zcg000$onHandleCustomQueryPacket(ServerLoginPacketListenerImpl .java:1060) [server-1.18.2-20220404.173914-srg.jar%23120!/:?] at net.minecraft.server.network.ServerLoginPacketListenerImpl.m_7223_(ServerLoginPacketListenerImpl.java) [server-1.18.2-20220404.17 3914-srg.jar%23120!/:?] at net.minecraft.network.protocol.login.ServerboundCustomQueryPacket.m_5797_(ServerboundCustomQueryPacket.java:46) [server-1.18.2-20 220404.173914-srg.jar%23120!/:?] at net.minecraft.network.protocol.login.ServerboundCustomQueryPacket.m_5797_(ServerboundCustomQueryPacket.java:7) [server-1.18.2-202 20404.173914-srg.jar%23120!/:?] at net.minecraft.network.Connection.m_129517_(Connection.java:177) [server-1.18.2-20220404.173914-srg.jar%23120!/:?] at net.minecraft.network.Connection.channelRead0(Connection.java:162) [server-1.18.2-20220404.173914-srg.jar%23120!/:?] at net.minecraft.network.Connection.channelRead0(Connection.java:53) [server-1.18.2-20220404.173914-srg.jar%23120!/:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) [netty-all-4.1.68.Final.jar%2355!/: 4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-all-4.1.68.Final. jar%2355!/:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-all-4.1.68.Final. jar%2355!/:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-all-4.1.68.Final.ja r%2355!/:4.1.68.Final] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) [netty-all-4.1.68.Final.jar%2355!/:4.1 .68.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296) [netty-all-4.1.68.Final.jar%2355!/:4.1.68. Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-all-4.1.68.Final. jar%2355!/:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-all-4.1.68.Final. jar%2355!/:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-all-4.1.68.Final.ja r%2355!/:4.1.68.Final] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) [netty-all-4.1.68.Final.jar%2355!/:4.1 .68.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296) [netty-all-4.1.68.Final.jar%2355!/:4.1.68. Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-all-4.1.68.Final. jar%2355!/:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-all-4.1.68.Final. jar%2355!/:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-all-4.1.68.Final.ja r%2355!/:4.1.68.Final] at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) [netty-all-4.1.68.Final.jar%2355!/:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-all-4.1.68.Final. jar%2355!/:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-all-4.1.68.Final. jar%2355!/:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-all-4.1.68.Final.ja r%2355!/:4.1.68.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [netty-all-4.1.68.Final.jar%235 5!/:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-all-4.1.68.Final. jar%2355!/:4.1.68.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-all-4.1.68.Final. jar%2355!/:4.1.68.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [netty-all-4.1.68.Final.jar%2355!/:4.1.6 8.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) [netty-all-4.1.68.Final.jar%2355! /:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719) [netty-all-4.1.68.Final.jar%2355!/:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655) [netty-all-4.1.68.Final.jar%2355!/:4.1.68.F inal] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581) [netty-all-4.1.68.Final.jar%2355!/:4.1.68.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) [netty-all-4.1.68.Final.jar%2355!/:4.1.68.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) [netty-all-4.1.68.Final.jar%2355!/:4 .1.68.Final] at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-all-4.1.68.Final.jar%2355!/:4.1.68.Final] at java.lang.Thread.run(Thread.java:833) [?:?]

With an INFO : Direct connections to this server are not permitted!

Joe-REAL-0 commented 11 months ago

https://github.com/adde0109/Ambassador You could use this plugin with velocity in order for it to work.

Well,now It come to a Exception:

Exception With an INFO : Direct connections to this server are not permitted!

I uninstall this mod and try to connect with only the morden forge support plugin,It worked and I successfully connected,but the subserver return me a message : please reconnect. I reconnect to the proxy,and transport to the subserver,then Ambassador plugin throw a message in my chat box :

Unsupported command argument type detected!Pleace install Proxy-Compatible-Forge mod on this backend server to have access to commands.

The console logged an ERROR:

ERROR

Failed to load patreon information java.net.UnknownHostException: raw.githubusercontent.com at sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:567) ~[?:?] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) ~[?:?] at java.net.Socket.connect(Socket.java:633) ~[?:?] at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304) ~[?:?] at sun.net.NetworkClient.doConnect(NetworkClient.java:178) ~[?:?] at sun.net.www.http.HttpClient.openServer(HttpClient.java:534) ~[?:?] at sun.net.www.http.HttpClient.openServer(HttpClient.java:639) ~[?:?] at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:266) ~[?:?] at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380) ~[?:?] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:193) ~[?:? ] at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1242) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128) ~[?:?] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1665) ~[?:?] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) ~[?:?] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224) ~[?:?] at vazkii.quark.base.handler.ContributorRewardHandler$ThreadContributorListLoader.run(ContributorRewardHandler.java:124) [Quark-3.2- 358.jar%23104!/:3.2-358]

adde0109 commented 11 months ago

Looks like you didn't configure the player forwarding correctly. You need to set the proxy forwarding mode to modern if you want to use modern player info forwarding

Joe-REAL-0 commented 11 months ago

Looks like you didn't configure the player forwarding correctly. You need to set the proxy forwarding mode to modern if you want to use modern player info forwarding

The server group I'm running has some sub-servers with version 1.12.2, so I can't switch player forwarding to modern because it would make those sub-servers unable to connect. However, the plugin you provided almost solves my problem. Now I can connect my 1.13+ forge server through the proxy, even though players will encounter an error when connecting via console. Anyway, this error doesn't affect gameplay in any way.

unilock commented 11 months ago

You could try BungeeForge (alongside Ambassador) to enable "legacy" player info forwarding for pre-1.13 Forge servers.