Giter VIP home page Giter VIP logo

Comments (8)

SamuelBellomo avatar SamuelBellomo commented on May 18, 2024 1

Hey @tuleky thank you for this!
Please go ahead!
The only advice we'd give you is create smaller PRs for your individual features against the develop branch. (for example one PR for character data)
This'll be great to continue the conversation, see what you have in mind.

from com.unity.multiplayer.samples.coop.

ysftulek avatar ysftulek commented on May 18, 2024

I couldn't find a way to change those enum to scriptable objects, I think the reason is I haven't known multiplayer architecture well, sending huge CharacterClass via networkvariable every tick is so inefficient, we definitely have to use enum in this scenario.

One suggestion would be I think we don't networkvariable for syncing character classes for late joiners, there could be a little system which sends character classes to the new comers via rpc calls rather than networkvariable. That way we could use CharacterClass for sending data over network.

from com.unity.multiplayer.samples.coop.

SamuelBellomo avatar SamuelBellomo commented on May 18, 2024

Hey Tuleky! A quick solution for this, you could generate an ID dynamically (in your SO's OnValidate if it's not generated yet). That would give a way to identify SOs and be able to exchange only that ID on the network. What do you think?

from com.unity.multiplayer.samples.coop.

SamuelBellomo avatar SamuelBellomo commented on May 18, 2024

I would highly suggest keeping NetVars for that kind of data instead of RPCs. (See this article here on why https://docs-multiplayer.unity3d.com/docs/learn/rpcvnetvar)

from com.unity.multiplayer.samples.coop.

ysftulek avatar ysftulek commented on May 18, 2024

Hey Tuleky! A quick solution for this, you could generate an ID dynamically (in your SO's OnValidate if it's not generated yet). That would give a way to identify SOs and be able to exchange only that ID on the network. What do you think?

Hmm, that sounds nice. So we still need some kind of dictionary implementation for finding character class via using ID, what would we gain for doing that?

from com.unity.multiplayer.samples.coop.

SamuelBellomo avatar SamuelBellomo commented on May 18, 2024

The advantage is you wouldn't need an enum with a switch case. It could be populated dynamically. It would allow to add new classes or actions without code changes

from com.unity.multiplayer.samples.coop.

ysftulek avatar ysftulek commented on May 18, 2024

image

We also need a solution for imps, they need to be set up before launch.

from com.unity.multiplayer.samples.coop.

SamuelBellomo avatar SamuelBellomo commented on May 18, 2024

fixed

from com.unity.multiplayer.samples.coop.

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.