Me again :D
Right so i spent a day learning how to set up a unet project, managed to get a makinom controlled character, spawned via Unity's NetworkManager using NetworkManagerHUD. It worked both on LAN and Online fine (had to change server to USA to test with my friend as im in the UK but i got it all working including correct control movement, camera's, and synced animations! Just change the MakinomMachines to check isLocalPlayer etc and have a machine enable certain components (camera enable, aud listener etc), which i think is correct?)
I have tried to set up a schematic instead...
Show Dialogue - 1. Host > Start Server (Default Port) > Start Client (Set Ready, Local Client) > SpawnPlayer (NetworkSpawn)
2. Join > Start Client (Default Connection) > Spawn Player (NetworkSpawn)
Again that works absolutely fine, although I cant seem to see how I can get it working online. I am guessing the above schematic set up is for LAN only, How do I get it to connect through Unet and play with my friend in USA etc.
(I havent had chance to test the Makinom set up with my friend yet! I have tested the NetworkManagerHUD unity method and that works fine though (using makinom controls etc from UK server to USA server spawned via NetworkManager)
Thanks again!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Just gone back to looking at unet again and im running into some issues...
My main issue is Unity's matchmaking system. I have the players spawned via Unitys NetworkLobbyManager...The player and camera etc is controlled via makinom so far so good...That is until i try and sync variables or spawn an object through makinom, it throw's an error that it cant find local connection...Im guessing it's because Im using Unitys NetworkManager and im trying to spawn the object/sync vars through Makinoms network manager? I'm currently having to call Network.SpawnPrefab from a c# code instead that works fine.
Is there any way I can make that compatible with makinom? Or will I have to custom code some bits?
Just figured out how to do LAN android - android, PC - android etc through NetworkLobbyManager, Im guessing Makinom can do that too which does ease pressure on the matchmaking side of things for the time being!
Thanks!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Check your private messages. I would be honored if you could give me a hand with adding multiplayer to a game i am creating. Thanks,
RF