Davidee Posted August 22, 2012 Posted August 22, 2012 While testing my Legendary Beasts mod by running a "dedicated" server from my computer, I noticed the following issue: Conditions: Only have a "clientPacketHandlerSpec" defined -> ----client does not receive packets when playing on a dedicated server ---- client does receive packets on an integrated server Have both a "clientPacketHandlerSpec" and "serverPacketHandlerSpec" -> ----client does receive packets on a dedicated server ----client does receive packets on an integrated server Quote
cpw Posted August 22, 2012 Posted August 22, 2012 Update forge. it's a known bug with the earlier versions. Quote
Davidee Posted August 22, 2012 Author Posted August 22, 2012 On 8/22/2012 at 9:28 PM, cpw said: Update forge. it's a known bug with the earlier versions. Reproducing with Forge 4.0.0.222. Quote
cpw Posted August 23, 2012 Posted August 23, 2012 Can you share your @network mod annotation please? Quote
Davidee Posted August 23, 2012 Author Posted August 23, 2012 @NetworkMod (clientSideRequired = true, serverSideRequired = false, clientPacketHandlerSpec = @SidedPacketHandler(channels = CHANNEL,packetHandler = ClientPacketHandler.class), connectionHandler = ConnectionHandler.class) That's the Annotation. Like I said, it works fine in SinglePlayer (Integrated Server). Just doesn't work when connecting to a dedicated server, the onPacketData method isn't being called. Quote
cpw Posted August 24, 2012 Posted August 24, 2012 You only have a client side packet handler. In a dedicated server, it will never get called. Also update forge for proper behaviour of these.. Quote
Davidee Posted August 24, 2012 Author Posted August 24, 2012 On 8/24/2012 at 3:57 AM, cpw said: You only have a client side packet handler. In a dedicated server, it will never get called. Also update forge for proper behaviour of these.. It doesn't get called on the client when connecting to a dedicated server. However, to fix it I just made a dummy ServerPacketHandler, so it's okay. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.