GeyserMC / MCProtocolLib

A library for communication with a Minecraft client/server.
MIT License
722 stars 201 forks source link

Problem when sending a ServerChunkDataPacket packet #380

Closed leomelki closed 6 years ago

leomelki commented 6 years ago

Hello, today i have a problem with the ServerChunkDataPacket packet. I made some chunks by setting blocks on the BlockStorage, blocklight and skylight but when i am sending the packet to the client, some chunks are not rendered by it (but they exists (we can see the hitbox of the blocks but they don't render). Do you know what i did wrong ? Thanks you really much. (I know this is probably not a problem of your fantastic lib but any help would be really nice 👍 )

109C commented 6 years ago

Make sure you're sending enough chunks to fully load around the player.

leomelki commented 6 years ago

Yes, I tried to send a 16x16x16 block of chunks but it's not rendering properly :(

leomelki commented 6 years ago

Did you try this packet with a vanilla minecraft client ? I am on this problem for more than 2 days :,(

leomelki commented 6 years ago

No, i will send you a video tomorrow (some chunks are loading but the others doesn't). They aren't rendering but the client handle them. The hitbox of the block are here. It is really weird. Thanks you for replying

leomelki commented 6 years ago

Here is the video : https://youtu.be/pYPrXIiP588 Thank you very much

0-x-2-2 commented 6 years ago

you are sending the chunks wrong then i have been sending chunks perfectly fine and they work as intended

leomelki commented 6 years ago

w-o-a-h, can you send me how you send the chunks please ? I really don't know whats wrong with my code ^^ Thank you very much for responding !

0-x-2-2 commented 6 years ago

I have no idea what your issue is its most likely something todo with lazy chunks tho http://wiki.vg/Protocol should help you

leomelki commented 6 years ago

I already spent much time on it ^^ I do something like: Create a chunk instance Setting blocks in getBlocks(), getMetadata() and getSkyLight() Sending the chunks in multiple server chunk packets at the same time (1 packet for 1 colmun)

Inder00 commented 6 years ago

To close

PoLsKiPaLaCz commented 6 years ago

@Inder00 utkaj pizde 11 latku