-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade implementation to support Netcode For Game Objects v1.0-pre (Formerly MLAPI) #3
base: master
Are you sure you want to change the base?
Conversation
Thanks for the PR, this is great 😄 I'll give it a test when I get chance and merge if possible 👍 |
No problem! I'm mid porting my old game from UNet across to MLAPI, so I have not even managed to test it myself yet... (1800 errors, down to 4). I should be able to test it my side properly soon I also have an implementation of IDissonancePlayer for MLAPI which I will either add to this PR, or do another PR for later. |
Amazing 👏 Feel free to comment here if you have any issue 👍 |
Here's a working implementation of
I've built a game with this that's up and running, and I can confirm it works. The only other change I've had to make to this project is switching usage of |
Awesome! I have an implementation my side which I planned on merging into this PR, but feel free to open a seperate PR for your implementation. (I have been a bit busy porting my game to newer tech) |
Good call on the IsHost -> IsServer changes. Ill have to review that before completing this PR |
Thanks both, @Widdershin feel free to PR this :) I will get around to testing this one and merging. |
Sweet I'll make some PRs soon. One more thing (will make a separate PR for this), but wanted to mention it now in case anyone needs it. All uses of If is anyone is hitting the |
Whoops, was not aware that was how it worked. Ill update it now Not even been able to test as I got really busy with work / the project |
Back on this today, got a release tomorrow which has required me to make the switch from UNET to MLAPI. MLAPI is all different since I did this, but I just ported the games codebase over to MLAPI, now known as Netcode for Game Objects (NFGO? Lame acronym) Going to rework this PR to handle NFGO 1.0s prerelease as I require it for my game. Should have it reworked today |
Ported anyway. Still not tested though as my games just in an unusable state while I port other stuff Will be attempting to implement IDissonancePlayer for a MlapiPlayer class as my game uses the HlapiPlayer class |
…hich is not supported with Mlapis NetworkVariable. I cant actually see why it was a sync var, since it also sends it across an RPC
Looks like I am supposed to call that beforehand. I dont recall seeing that in the docs so.... |
Fixed. Tested and working! |
Nice! Just as a heads up as well, there's an official implementation published on the Unity Store now :) |
Unsure if you are taking PRs, but I was planning on using this for my game which I am currently migrating to MLAPI and needed to upgrade this implementation to support the latest public release.