Posted June 25, 20169 yr Is there anyone willing to teach me or give me a link to something that i can use to teach me how to make server and client packets. i have a custom inventory that i want to try to get to work again and the help would be appreciated.
June 25, 20169 yr Forge's documentation has a section on networking here. This includes the Simple Network Implementation, which you should use to send your packets. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
June 25, 20169 yr Author Thanks that helped alot. it doesnt tell me one thing is how do i make a packet that opens a gui. It gives me that basics but it doesnt give me the full story.
June 25, 20169 yr Send a packet to the appropriate side with the necessary information and then open a GUI from your packet handler. Are you sure you need to send a packet? What type of GUI is this and where are you opening it from? Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
June 25, 20169 yr Where are you trying to open it from? If it's on the server (e.g. when the player right clicks a block/item), just call EntityPlayer#openGUI directly and FML will send a packet to the client telling it to open the same GUI. If it's on the client (e.g. when the player presses a key), send a packet to the server and then call EntityPlayer#openGUI in the handler. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
June 25, 20169 yr Some stuff (1st point in this case, maybe others) if you didn't already catch it: http://www.minecraftforge.net/forum/index.php/topic,39341.msg207122.html#msg207122 1.7.10 is no longer supported by forge, you are on your own.
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.