Coder Social home page Coder Social logo

Multiplayer? about brickgame HOT 7 CLOSED

iUltimateLP avatar iUltimateLP commented on June 19, 2024
Multiplayer?

from brickgame.

Comments (7)

AndrewScheidecker avatar AndrewScheidecker commented on June 19, 2024

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:

  • You'd likely want to compress the data before replication, as it's currently quite large. Simple run-length-encoding would get you a lot, as well as only sending as many bits as are needed for the number of materials. Using Morton order for the bricks would probably give the RLE more leverage, though it might be more complexity than it's worth.
  • You'd need to have some logic similar to how the BrickGridComponent shows BrickRenderComponents within some radius, but instead of showing BrickRenderComponents, it would be replicating nearby regions to clients.
  • You'd also want to distinguish between replicating a whole region when a client first sees it, and replicating a smaller chunk when it's modified by some other player.
  • Finally, you need a way to simulate brick changes locally, so that when a player places/destroys bricks it doesn't have to wait for a round trip to the server before displaying the result.

from brickgame.

iUltimateLP avatar iUltimateLP commented on June 19, 2024

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?

from brickgame.

DefinitlyEvil avatar DefinitlyEvil commented on June 19, 2024

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

from brickgame.

iUltimateLP avatar iUltimateLP commented on June 19, 2024

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?

from brickgame.

DefinitlyEvil avatar DefinitlyEvil commented on June 19, 2024

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

from brickgame.

iUltimateLP avatar iUltimateLP commented on June 19, 2024

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..

from brickgame.

DefinitlyEvil avatar DefinitlyEvil commented on June 19, 2024

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

from brickgame.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.