Giter Site home page Giter Site logo

Comments (4)

Disquse avatar Disquse commented on May 29, 2024

This is not an issue actually. This is a kind of thing you can do by yourself. Session manager is just a router and in-game session related stuff are used and tied to natives. There was few experiments done on session manager to support seamless transitions between sessions. However I still don't have a time and motivation to finish it. Do note that "seamless" are actually not so seamless on player's side (at least when I did my experiments it wasn't). A better idea of "simulating" higher slots was given by the cfx.re developers (about using roaming bubbles) but research will take some time.

UPD: you can see how a transition looks like from player's side on this GIF https://gfycat.com/radiantspryichneumonfly

from cfx-server-data.

Den5i avatar Den5i commented on May 29, 2024

@Disquse thanks, do you know how can I get ahold of those experiments source code? On the GIF that you've sent user is reconnecting to the same server, whereas I'd like to test if it's possible to pass a server id or IP to to connect to it. In case if a project has multiple servers separated by map locations, it would smooth the gameplay by just typing a command when moving to a new location.

from cfx-server-data.

Disquse avatar Disquse commented on May 29, 2024

You can use 0x4019AE4956D4393 to trigger seamless session join/host. The latest argument is a struct. If you won't pass any data to it, the game will host a new session. If you pass session data the game will try to join it. Make sure you log every message in session manager just to be sure that something is happening. For leaving I was using game transition manager natives. Not sure if it's the right way to leave session.

whereas I'd like to test if it's possible to pass a server id or IP to to connect to it

No it's not possible. And won't likely to happen ever, too much core CFX stuff needs to be rewritten to achieve that, not worth it.

from cfx-server-data.

T-001v2r3 avatar T-001v2r3 commented on May 29, 2024

This is not an issue actually. This is a kind of thing you can do by yourself. Session manager is just a router and in-game session related stuff are used and tied to natives. There was few experiments done on session manager to support seamless transitions between sessions. However I still don't have a time and motivation to finish it. Do note that "seamless" are actually not so seamless on player's side (at least when I did my experiments it wasn't). A better idea of "simulating" higher slots was given by the cfx.re developers (about using roaming bubbles) but research will take some time.

UPD: you can see how a transition looks like from player's side on this GIF https://gfycat.com/radiantspryichneumonfly

Can you share an example on how to use that native? i can't figure it out

from cfx-server-data.

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.