AndrewScheidecker / BrickGame

A demo of Minecraft-style voxel rendering in UE4
401 stars 143 forks source link

Multiplayer? #17

Closed iUltimateLP closed 8 years ago

iUltimateLP commented 8 years ago

Hey, I thought how Multiplayer support works with the BrickGrid. I mean, what parts need to be replicated in order to get a multiplayer result, where both server and client can place / destroy blocks, use flashlight, sky updates, etc.?

AndrewScheidecker commented 8 years ago

I'm not sure how to replicate the flashlight and sky light updates, since I've never done blueprint replication. That should be relatively easy, though.

Replicating the bricks is more complicated:

iUltimateLP commented 8 years ago

I already did flashlight and sun, but the brick stuff is too complicated for me I think, as it uses C++ (at least I think so) and I'm not really familiar with this topic. I thought so: Every client has its own brick grid, and if somebody places a block, that will be replicated to all clients and there will be a block placed aswell, but I don't know how this will work.. If that's much C++ stuff, could you help me a bit with those compressing / decompressing?

DefinitlyEvil commented 8 years ago

For networking, you may wanna use Raknet(just a suggestion xD).

iUltimateLP commented 8 years ago

I had a look in RakNet and it's a nice library, but in which points is this better than the standard Unreal networking features it alrwady has?

DefinitlyEvil commented 8 years ago

I prefer 3rd-party libraries because they are more customizable. xD

iUltimateLP commented 8 years ago

I see they have replication of actors.. Is it hard to make it compatible to UE4? They have a link in their Readme.md about Unreal, but I can't access UDN..

DefinitlyEvil commented 8 years ago

@iUltimateLP Since UE is using C++ so technically you can integrate anything into it. xD