GithubHelp home page GithubHelp logo

arynnette / replicaservice Goto Github PK

View Code? Open in Web Editor NEW

This project forked from madstudioroblox/replicaservice

0.0 0.0 0.0 615 KB

Roblox state replication system

Home Page: https://madstudioroblox.github.io/ReplicaService/

License: Apache License 2.0

Lua 100.00%

replicaservice's Introduction

Madwork - ReplicaService

ReplicaService is a selective state replication system. ReplicaService helps you make server code which changes and replicates any state to select clients.

A state (in layman’s terms, a lua table that may contain almost anything) is wrapped with a Replica - like the name implies, it creates a replica (identical copy) of the wrapped state on the client-side of users you want to see that state. You may define clients who will see that replica, call mutator functions on the Replica to change the state (will change contents of the wrapped table) and make the clients listen to those changes or simply read the state whenever necessary. Furthermore, a Replica can be parented to another Replica (with a few exceptions discussed later), unloaded for select clients and, of course, destroyed.

What's good about ReplicaService:

  • Just replication, whatever you need replicated - The goal of ReplicaService is to streamline custom Roblox object replication from server to client. ReplicaService avoids being redundant and tackles as few concerns as possible.

  • Chunks & player houses - Selective replication allows you to make a "custom StreamingEnabled implementation" with full server-side control - load in nearby chunks, load in interiors and furniture only when the player enters those areas!

  • "It don't go brrrrr" - ReplicaService is completely event-based and only tells the client the data that changes - it keeps the network usage low and conserves computer resources.

  • Go big, go small - Use custom mutators for minimal bandwith and gain access to client-side listeners that react to bulk changes instead of individual values. Use built-in mutators for rapid implementations while still keeping your network use very low.

If anything is missing or broken, file an issue on GitHub.

If you need help integrating ReplicaService into your project, join the discussion.


ReplicaService is part of the Madwork framework Developed by loleris

It's documented: ReplicaService wiki

It's open source: Roblox library

replicaservice's People

Contributors

lm-loleris avatar

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.