Jump to content

[1.7.2]Sending a packet to the server with the new netty system


Miclebrick

Recommended Posts

This approach using the Gui Handler is interresting (and makes me think I still don't really understand why it is called Gui here). But what tickles me is the usage of MC obf stuff. The lesser we have, the lesser mod porting effort we have when MC updates ...

Link to comment
Share on other sites

Noppes: Yeh, I was aware of this, I just like having my packets as self containing objects so they are responsible for their own encoding/decoding. Your method is definitely the simpler option for beginners though! In the end it's just a matter of preference really as there are pros and cons to both. You should post your example on the wiki though as the more information out there the better!

Link to comment
Share on other sites

Forge rookie here-

I am going to use the NOPPES basic netty approach first.

The dynamic packet way is just a bit of information overload, and I would rather use a basic method for a mod or 2 (or many) to get a real understanding of what its doing and why it does it.... I want to LEARN netty, not just use it.  Then, later when I have a fancy mod doing a lot of stuff with a bunch of packets, once I understand Nopes basic netty I can tackle the fancy Wiki-Sirgingalot advanced netty

 

thats just my 2cents

The Noppes basic netty is a smaller lesson to learn,

I avoid InfoOverload Mindfry from having to learn all this 172 stuff at once to get my mod up from 164

Link to comment
Share on other sites

  • 2 weeks later...

There is an easier way to do networking. Ive made a simple example mod

 

https://dl.dropboxusercontent.com/u/3096920/NetworkExampleMod.zip

 

The Example works pretty good, but the ServerPacketHandler have to be registered inside load() of the mod-class and not in the commonProxy.

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.



×
×
  • Create New...

Important Information

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