Posted August 22, 201213 yr Sorry to be a little off topic, but I was wondering about how to correctly set up my packet handling. Is it ok to just have: @NetworkMod( clientSideRequired = true, serverSideRequired = false, clientPacketHandlerSpec = @SidedPacketHandler(channels={"EntangleCraft"}, packetHandler=ClientPacketHandler.class), serverPacketHandlerSpec = @SidedPacketHandler(channels={"EntangleCraft"}, packetHandler=ServerPacketHandler.class), connectionHandler = EntangleCraft.class, versionBounds = "[1]" ) ,given that both of those packetHandler classes implement IPacketHandler? I assume something else needs to be done as my packets aren't sending
August 22, 201213 yr Do *NOT* hijack other topics. Very rude. Make your own. Just split you off and moved you to the proper board (which you were not in any way, what the heck?!).
August 22, 201213 yr And exactly how are your sending your packet? I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
August 23, 201213 yr Author Is support/bug reports really the place? I always thought this was for installation issues and stuff. Anyhow, my server packet handler sends packets to all clients like this MinecraftServer server = ModLoader.getMinecraftServerInstance(); server.getConfigurationManager().sendPacketToAllPlayers(packet); Feel like I'm gonna get raged at for using something from ModLoader, especially since I use it again for sending from client to server: ModLoader.sendPacket(packet); Just to clarify, the title of this thread isn't my problem; I just want to know how to set up packets correctly. This was Kinniken's thread title, sorry about the hi-jack.
August 23, 201213 yr Are you specifying the correct channel in your packet? Kinda need to see the full construction and how things are set. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
August 23, 201213 yr Author Ok here is a basic overview of whats going on http://pastebin.com/BKDwRsiU If I didn't include anything important let me know.
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.