Jump to content

Kiuseii

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Kiuseii's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Okey, fixed it by rewriting my packet handler and writing it like you've done (ModMessages). Works without warnings now.
  2. Sorry, forgot that the repo was private. It should be okey now
  3. Hello, I'm getting Unknown custom packet identifier: argonauts:simple_channel but when i send the packet it works. After some search, the problem could be the symmetry of encoding and decoding but even after writing a simple buf.readInt() and buf.writeInt() i also get the message. Also, i'm sending an nbt with my packet. I've seen that it exist buf.writerIndex() but don't know how to correctly use it. (Show i just use index + 1 each time i had something, or should i use an other number ?) Could i add multiple data in one buffer ? I'm send that packet each tick when i refill the mana capability of the player. Here is the source of my packet : https://github.com/Ddasb/argonauts/blob/master/src/main/java/com/kiuseii/argonauts/network/packets/AttributesDataSyncS2CPacket.java Source of my capability : https://github.com/Ddasb/argonauts/blob/master/src/main/java/com/kiuseii/argonauts/capabilities/attributes/AttributesCapability.java My Packet handler : https://github.com/Ddasb/argonauts/blob/master/src/main/java/com/kiuseii/argonauts/network/PacketHandler.java Where i refill the mana : https://github.com/Ddasb/argonauts/blob/master/src/main/java/com/kiuseii/argonauts/events/ModEvents.java Thanks for the help provided
×
×
  • Create New...

Important Information

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