Jump to content

[1.7.2]How to setup your own channels


KeeganDeathman

Recommended Posts

My client side needs to periodically report which block each player is currently selecting, and which direction he's facing. In 1.6.4 I used a network mod channel. Now I am contemplating sending a packet through a netty channel.

 

I did the the time server tutorial, so I get the basics of netty now. What I'm wondering is how to discover the address of the server the game is connected to.

Link to comment
Share on other sites

Im still learning netty as well, cpw seems to have a grasp on it. And he's written a nice layer on top of the MC protocol that'll let you pass custom information back and forth using standard netty procedures.

https://github.com/MinecraftForge/MinecraftForge/blob/95c12b6c20a456de7c24707388d4cb9cedc1cc44/src/main/java/net/minecraftforge/common/network/ForgeNetworkHandler.java

It would be nice if someone wrote a comprehensive tutorial on the net system cuz god knows I suck at tutorials.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

Im still learning netty as well, cpw seems to have a grasp on it. And he's written a nice layer on top of the MC protocol that'll let you pass custom information back and forth using standard netty procedures.

https://github.com/MinecraftForge/MinecraftForge/blob/95c12b6c20a456de7c24707388d4cb9cedc1cc44/src/main/java/net/minecraftforge/common/network/ForgeNetworkHandler.java

It would be nice if someone wrote a comprehensive tutorial on the net system cuz god knows I suck at tutorials.

 

See my reply here:

 

http://www.minecraftforge.net/forum/index.php/topic,15403.msg78805.html#msg78805

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.