DragonetMC / Dragonet-Legacy

Old version of the Dragonet Server Software.
http://dragonet.org/
Other
101 stars 28 forks source link

MCPE Networking Talk #60

Closed alejzeis closed 8 years ago

alejzeis commented 9 years ago

This issue has been left open so developers can talk about the networking. For the original issue, please see below.


I'm a new member to the team, and this project seems really cool. It could use some additions though. I noticed that there were packet issues, and I'm not sure if this has been tested with a bad network (packet loss). I propose we migrate the RakNet handling code over to my library (JRakLib). It's released under the GPL v3 (never mind, I have to change it to LGPL) as it is a port of PocketMine's RakLib. There should not be any legal issues as long as you give credit to PM and me.

TheDiamondYT1 commented 9 years ago

This issue will be left open for collaborators to talk about networking.

TheDiamondYT1 commented 9 years ago

To confirm: server now shows up in world list.

DefinitlyEvil commented 9 years ago

@jython234 I fixed the spawning problem which I forgot a return; and it caches huge packets in JRakLib' recovery queue. But now the problem is server receives client's packets very late(more than 20 seconds).

alejzeis commented 9 years ago

@DefinitlyEvil packets should be in the recovery queue to be resent when needed. They are removed when an ACK for that packet is received.

On Sunday, October 11, 2015, The Evil Man notifications@github.com wrote:

@mastercoms https://github.com/mastercoms @RandomAltThingy https://github.com/RandomAltThingy Please focus on the topic.

— Reply to this email directly or view it on GitHub https://github.com/DragonetMC/Dragonet/issues/60#issuecomment-147205472.

DefinitlyEvil commented 9 years ago

@jython234 I know, I used to put the non-compressed ones in it and it caused heap memory full.

alejzeis commented 9 years ago

@DefinitlyEvil I used to send chunk packets uncompressed, never had a heap full.

On Sunday, October 11, 2015, The Evil Man notifications@github.com wrote:

@jython234 https://github.com/jython234 I know, I used to put the non-compressed ones in it and it caused heap memory full.

— Reply to this email directly or view it on GitHub https://github.com/DragonetMC/Dragonet/issues/60#issuecomment-147213069.

DefinitlyEvil commented 9 years ago

@jython234 Now let's talk about packet lag problem. Packets are delayed to receive on server and idk why.

alejzeis commented 9 years ago

@DefinitlyEvil The problem is not JRakLib's fault, it's most likely not enough packets being handled on your side (handler.handlePacket())

DefinitlyEvil commented 9 years ago

I did handle all packets in every tick.

DefinitlyEvil commented 9 years ago

I used while(handle.handlePacket()){}

DefinitlyEvil commented 9 years ago

@jython234 Help!

TheDiamondYT1 commented 9 years ago

@DefinitlyEvil Please give me access to the website repo

DefinitlyEvil commented 9 years ago

@RandomAltThingy What's about for?

DefinitlyEvil commented 8 years ago

It seems that the networking issue is fixed. :) Closing this issue.