nado Posted August 22, 2012 Posted August 22, 2012 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 Quote
OvermindDL1 Posted August 22, 2012 Posted August 22, 2012 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?!). Quote
LexManos Posted August 22, 2012 Posted August 22, 2012 And exactly how are your sending your packet? Quote I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
nado Posted August 23, 2012 Author Posted August 23, 2012 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. Quote
LexManos Posted August 23, 2012 Posted August 23, 2012 Are you specifying the correct channel in your packet? Kinda need to see the full construction and how things are set. Quote I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
nado Posted August 23, 2012 Author Posted August 23, 2012 Ok here is a basic overview of whats going on http://pastebin.com/BKDwRsiU If I didn't include anything important let me know. 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.