Coder Social home page Coder Social logo

Mirror update about mpssamples HOT 8 CLOSED

playfab avatar playfab commented on June 3, 2024
Mirror update

from mpssamples.

Comments (8)

dgkanatsios avatar dgkanatsios commented on June 3, 2024

hey, thanks for the heads-up! On my TODO list, however if you or anyone else would like to submit a PR, we'd be more than welcome!

from mpssamples.

dominicmoret avatar dominicmoret commented on June 3, 2024

Came across the same issue. Would be nice to update, can't get it working at the moment

from mpssamples.

BenjaminKobjolke avatar BenjaminKobjolke commented on June 3, 2024

I think this was still not fixed?
Because I tried to run the UnityServer project and I got some errors from Mirror

from mpssamples.

dgkanatsios avatar dgkanatsios commented on June 3, 2024

@BenjaminKobjolke you say it doesn't work with the version of Mirror currently in the MpsSamples repo? I started to work on it but got sidetracked, if anyone can answer my question here, that would be really helpful. Thanks!

from mpssamples.

BenjaminKobjolke avatar BenjaminKobjolke commented on June 3, 2024

@BenjaminKobjolke you say it doesn't work with the version of Mirror currently in the MpsSamples repo? I started to work on it but got sidetracked, if anyone can answer my question here, that would be really helpful. Thanks!

I did not test your complete project.
I just wanted to try out prefab and the first step was to create a server and upload it to prefab.
Since I already have a project that uses mirror I tried to add the scripts from your repository to my project.
That's when I got the errors.

I then tried to downgrade my Mirror version by using the one from your repository.
But then I got errors in my scripts because my scripts already implement the latest functions of the newer Mirror version.

I tried the latest latest Mirror version from gitHub (v35.0.1) with your scripts,

from mpssamples.

GoToNightmare avatar GoToNightmare commented on June 3, 2024

@BenjaminKobjolke you say it doesn't work with the version of Mirror currently in the MpsSamples repo? I started to work on it but got sidetracked, if anyone can answer my question here, that would be really helpful. Thanks!

NetworkServer.RegisterHandler<ReceiveAuthenticateMessage>(OnReceiveAuthenticate);
public struct ReceiveAuthenticateMessage : NetworkMessage
{
	public string PlayFabId;
}
private void OnReceiveAuthenticate(NetworkConnection arg1, ReceiveAuthenticateMessage arg2)
{
	var conn = _connections.Find(c => c.ConnectionId == arg1.connectionId);
	if (conn != null)
	{
		conn.PlayFabId = arg2.PlayFabId;
		conn.IsAuthenticated = true;
		OnPlayerAdded.Invoke(arg2.PlayFabId);
	}
}

Edit: Mirror package from github, not from asset store.
https://github.com/vis2k/Mirror/releases

from mpssamples.

dgkanatsios avatar dgkanatsios commented on June 3, 2024

hey @GoToNightmare @BenjaminKobjolke @dominicmoret I just made #37, if you have time to take a look before merging, we'd really appreciate it :)

from mpssamples.

dgkanatsios avatar dgkanatsios commented on June 3, 2024

Merged, feel free to re-open if there are any issues, thank you all!

from mpssamples.

Related Issues (15)

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.