It is really good that you listen to the feedback, I am seeing in the previous videos somebody was saying in the comment how to create lobby and join the players, You created this video then. Kepp continue this way, really great. I am suggesting to make a video to explain different ways of creating multiplayer games in Unity like FishNet, Photon, Unity's new networking solution and Mirror. In this way, people will get some general info on how is the multiplayer work.
Thank you very much Ahmad. What a lovely comment! :-) I will do my best to help everyone get a good start on their multiplayer journey. Nice comments such as this one is a big motivational factor for a small creator like me!
The Checker texture you used when making the Example scene is what i need for my Game. So i was wondering if you could like drop a link or where to find it in replies to this comment. Great tutorial btw!
Amazing!!! Would def love to see a part 2, maybe include a way to create a room name or lobby with a password or way to invite a specific person to play against?
This actually seems really easy! For someone like me who has little to no coding skills, I feel like this tutorial would actually make me able to do Unity multiplayer in less than 10 minutes. I can really see this being handy for beginners to multiplayer. Nice video and interesting system by Alteruna!
@@SterioMade Funny writing it as a reply to another persons comment. Anyhoot. Simply something wrong in the ownership check you are doing. Worth looking into. Good luck.
This was really great man! They have done some updates since your vid but nothing complicated that couldn't be figured out. I really like this setup so far and I plan to keep using it! Do you have a video on the chat box function? That would be great to learn as well! Thanks again!
Hello, I was wondering if you knew of the bug of not being able to look around after you join. I looked through the code and corrected it, but the mouse movement had no impact on the looking around, so it was just stuck in place. I'm a little confused, but otherwise great tutorial. If you could get back that would be awesome too! Thank you so much for this easy multiplayer option!
It seems like it works fine, but I can't test multiplayer myself, because if I open a built instance of the game or run in Unity, it will connect, but all other instances of the game will just be stuck on "Reconnecting..." for what seems like forever as far as I can tell.
hey I know this is an older video but Im having an issue where who ever creates the lobby. camera lags badly but only for the host any other client/player doesn't do that. I cant find out why
Hmm, not familiar with this, but I don't personally use Alteruna. Probably worth seeing if they can help out in their Discord. Any chance you are handling movement or camera movement in FixedUpdate? That would at least cause lag
For some reason the players move fine on their own screen but to the other player they are flying around above and when they rotate they rotate around a point in the middle of the stage rather than their head. I am using the script in the desc.
The script i use can ONLY use a camera in the scene tagged with main camera. The players should not have cameras on them or reference wrong cameras. It sounds like what is happening with you. But i could be wrong. Sounds really weird. I have not had this happen a single time, but definately something off about your scene setup if you've copied my script directly.
Well this setup is super basic, and fairly straight forward, so something must surely be off in the setup. Try and have a look step by step as to what the difference is. It is the best way of debugging 🙂
@@BobsiTutorial i did everything in your tutorial and the server for alteruna is a ghost town no help multiple people are complaining in the comments fix it please
@@ItsOmeyYT I have done this multiple times and also been out teaching at a university on this same setup. There is definitely something you are forgetting, because it does work for sure 🙂Maybe something on the avatar setup, disabling of input or alike.
@@ItsOmeyYT Please specify where? The only places i see is in start and update, and those seem correct (because you want to leave if you are not the owner.)
I haven't personally stress tested it, so that might be more fitting for their discord. I have looked a bit into their documentation and it seems like it should be a pretty performant setup. I imagine it more performant than Unitys new (NetCode) for sure, but more than mirror or FishNet i can't say. But also as a networking solution, with the whole server setup, i'd see this as more of a competitor to Photon, and I would prefer this over Photon PUN by far. Photon fusion seems really good, but also troublesome to work with. And Alteruna also has really damn good pricing compared to Photon in my opinion. So that also matters i think 🙂 I hope that answer atleast gave some kind of value!
The playlist is just meant for general multiplayer, but if I do end up making a whole series of Alteruna, i'll split them up 🙂 Thank you for the feedback!
@@jubinjajoria2870 Hopefully we'll release more videos, but that would require Alteruna to be happy with the performance of this one ^^ Also, the youtube algorithm pushes episode 1 of videos more than any other 😂 Look at my devlog videos. First one is ep. 1, rest does not mention episodes.
I have a mistake MissingReferenceException: An object of type 'Transform' has been destroyed, but you are still trying to access it. Your script should either check if it has a null value, or you should not destroy the object.
There are 2 audio listeners in the scene. Please ensure there is always exactly one audio listener in the scene. this thing shows up and Alteruna rooms stuck in (connecting...)
hey I followed the tutorial it works if I build it with the default platform if I change platforms to UWP, universal windows Platform, it cannot connect
I'm getting "Object reference not set to an instance of an object" on line 37 of the PlayerController script, im assuming it has something to do with the camera because i dont have one, but im not sure what to do.
The full error is "NullReferenceException: Object reference not set to an instance of an object PlayerController.Start () (at Assets/Scripts/PlayerController.cs:37)"
where is the IsMe in visual scripting, i dont really know anything about the usual c# scripting people use, i only know the node scripting so this is pretty hard for me, i have a fully working movement script in visual scripting and i dont want to change it
its ok man, but i tried using your script and there isnt a camera, do i add one myself? if i do, when i walk around it doesnt follow the camera's rotation for some reason.@@BobsiTutorial
That's an extremely big concept to tackle. I would greatly recommend to start by just getting familiar with the network development concepts. Then it will make sense
Hello sir. Do you have a simple sitting on chair tutorial in unity?Like there will be an arrow on top chair and when you click it you will sit on chair. Thank you sir.
i tried applying this to my own game and whenever somebody joins you can control them as well as yourself im gonna keep working on it but i was just wondering if its a common problem.
I Have a basic game set up, but one thing is collisions, how can i set up collisions, like if player a touches player b then something happens for both the players like take tag for example, how to share the den between two players or even any variable
"share then den"? I'm not really sure what you mean. Either way, it's up to you how you want to handle that. You can have them do it locally when the collision occurs, if you are the owner, then you do some logic. Or you could have some single player (possibly ID 0) handle the logic or what not.
@@BobsiTutorial Actually, I am new in alteruna stuff, I have build a game of TAG 3D in which there are 2 players one of the player is marked with "main player" So that handels all the logic even though both players have same script, how to change like a player Id variable in the script according to the index of player joined the alteruna room.
alteruna is one of the best multiplayer plugins i have seen but there is 1 problem there is an option to spawn the players in manualy i want to do that but how?
By the way. Could you do a tutorial on how to optimize it? I mean it's very laggy and if someone who's not connected to the same network as me will have a lot of "ping". Idk if you can fix this but I would really appreciate. Thank you
@@eppl1184 This is probably more of a task for the support in the Alteruna Discord. If it is something they want me to make a video about, they can let me know ^^ I would imagine a fix for this could be to lerp stuff manually. So sync the positions and lerp between current position and the synced position. This should smooth things out.
I am able to move both players separately which is great! However I am doing this from a top-down camera perspective (so I didn't use your player controller script), and the cinemachine camera follow is only working on the first player that was spawned. For the second player in the build run the camera is still following wherever the other '1st' player moves. Any suggestions on having a new camera also spawn that follows the second player?
First of all, nice video!! I do have a weird issue tho, in unity everything works like normal, but when i build the project and try to join a room, i suddenly fall through the ground...
Does the ground have a collider? Does the player have a character controller or collider? Is the spawnpoint ensured above the ground? Something is causing you to not collider with the ground it would seem 🙂
Good tutorial! I had an issue when i go multiplayer and open two windows or more, in the second window appears two players with the same movement, also cant see the other players in their current location, do you know how to fix it?
I know a lot of the system has changed since you made this tutorial, but I am having quite a few issues, mainly my "IsMe" does not seem to be working, I cannot control my own character or any of them. Is there anywhere else I could read the small changes to the Altaruna SDK, I am trying to incorporate into an existing project, but thank you your video is wonderful!
Hey man, great video. I'm having a small issue. The enemy AI script that I am using to control my enemy characters does not execute on the multiplayer server. The enemies just sit there motionless. I don't know if you have any information on that but anything would help, thanks.
Alteruna is mostly funcitoning like a server with no sense of logic (hence why you don't upload your game to the server). So nothing will run on the server, at most it is used to store simple values and synchronize informaiton between players. So a player (often player 0) should run the logic.
Sadly didnt work for me i used danis tut on how to walk and get a grappling gun the problem is with it the camera is in player so if i delete player i wouldnt have a camera anymore... tried mixing it with your code but it didnt work... if u have a solution for that i would be happy!
Hello Bobsi, I made it up to where you added the room menu and when I tried to test it like you It just kept connecting and eventually said License query failed. Not sure how to proceed from here
Hi, great tutorial! I have tried this on my mac and everything works, however when i run it on my android device nothing works. The screen stays at Connecting... state and nothing happens. The error I got is: Error Unity Alteruna:Error:Exception accrued while tying to send or handle license query. Error Unity Exception: HttpClient task failed to query. Error Unity An error occurred while sending the request. I want to make multiplayer mobile game for android. Does Alteruna multiplayer support mobile device?
hello i have a problem with the room menu, i just cant press on start, it says connecting, then connects,i try clicking start it dosent work. can you help?
@@BobsiTutorial ohh that was a joke(johny sins was a pornstar) but your video was really helpful and I'm really thankful that I did watched it. But I have a question please enlighten me.. is Alteruna really functionable even in publishing and uploading a game in marketplaces, and I'm confused which thing should i follow; Alteruna, fishnet. or Photon I heard a lot about multiplayer engines.
@star84eva I got the joke ;-) Also why i said "hol up" ^^ For your question about choosing an engine, it is really about what suits you. Out of your options here FishNet is the Odd one out. Alteruna and Photon both have the selling point of running on their own server. FishNet needs another transport to function online (steam, dedicated server, epic services, etc.) To get that one out the way. FishNet seems like a crazy scalable system, but out of the options, also the hardest one to get to release because of the transport setup. Alteruna and Photon are pretty much direct competitors in the space now. Photon has more proven time on the market, and most likely has the bigger structure and more well rounded system. They do however also have a more strict form of price model. They limit you on the CCU (Concurrently Connected Users), which i am not a fan of. Alteruna does not limit you on CCU or Rooms, only bandwidth, which is great for us small indie/hobby developers! But they are a newer system, which has its pros and cons. Pros of this being: support from developers, growing community, cheap, prone to change for the better. Some cons however being: Not servers worldwide (yet) and no proven games on the market (yet). So to answer your question very shortly: Do you want the most control and scalability at the cost of convenience, then FishNet is your guy. Do you want the convenience and a proven well rounded system, then Photon is your guy. Do you want the convenience, cheapest and a small/niche community, then Alteruna is the option. Keep in mind that all of this are my personal observations, and are not by any means cut in stone :-) I hope this helps you! If you got more questions, you can also join my discord.
@@BobsiTutorial Wow thanks! well said captain.. what really my motive is to make a 3d mobile multiplayer game could be low poly theme but I'm stuck on which network engine i supposed to use and I want to try publishing it on playstore but of course I'm looking for a standard quality game so detail by detail I want the game server will function well but u said still there were no proven game on the market. By the way i joined your discord just by now I''ll observe and learn from what yo guys shared out there.
@@star84eva7 Sounds like you have a plan. Maybe also join the Alteruna community. The devs are pretty active in there, so maybe ask them about the mobile capabilities for your game 🙂 I don't have too much experience with Alteruna for now. But i do not it is extremely simple to get started with and the pricing is cheap, so if they do have the mobile capabilities you need, i think it is a solid choice. If you are familiar with server hosting yourself, maybe FishNet is a safe bet. I don't dislike Photon, but I don't like/support the limited CCU business model.
i am getting some strange behaviours. i did everything like in the video and copyed the playercontroller 1:1. when i now start 2 instances of the game and try to move with player 1, i move player two and vista versa
That sounds strange. Probably something wrong with the Avatar.IsMe call. If you copied/downloaded it directly, maybe the setup of the character is not correct and it can't grab the avatar?
I'm trying to have a singular object exist between both player's games (a soccer ball). I tried using some of the object spawning code from that tutorial video, but that always spawns two balls and they aren't synced and just a lot of problems. How could I have a non-player object exist and have the ability to be manipulated by both players?
Woah. This comment slipped through the cracks, apologies about that! You're likely spawning the ball from something that exists either twice or individually on each client. Try and have a single manager in the scene to handle the spawning for you.
I am curious about something and maybe someone can help… I am trying to create a capture the flag world game. I want to make it work that the world is always active and if you are not online, your base can be taken by someone that is online at the time on a particular server. When I log back on, if no one has taken my base, it still belongs to me…. Is this possible? Does the server work like that? Any advice is appreciated.
I'm not sure, you might have to ask in the Alteruna Discord. I don't think the Alteruna servers allow for permanent up-time like that, I think they run on room/lobby logic, meaning when everyone leaves, the instance/room shuts down.
@ my other thought was to do a main game, then do a tower defence game on a server, but I would want your items and accomplishments you get in game to carry over to the tower defence.
This is very specific, but something i could look into for the future ^^ Generally, thirds person and first person when it comes to the setup is very similar, and you should be easily able to do that part for yourself. And having highly interactive games such as first or third person games, isn't exactly great for the browser, just so you know ^^
@@BobsiTutorial yes i have been doing some research but still can’t find a tutorial when people join in a game in webgl and we can see the other person’s character joining the game as well. It’s possible and i hv seen project does this but yeah it’s not open source. Would be great if you can make this tutorial man. Pretty sure a lot of people wanted this as well 👍🏻
I don't have these files anymore, so unfortunately not. If things aren't working, might be a good idea to join the Alteruna discord. They are very helpful in there.
Hi bobsi, sorry for coming (again) but I am experiencing an issue, so I made a script where the player looks up and down but when I go to multiplayer it doesn't do the same?
Good tutorial. Unfourtunatly, Alteruna screwed me over, their webssite is broken and like two weeks into coding their service stooped working right too.
@@BobsiTutorialthe guy just gave me a crappy vague answer like my data is mismanaged or whatever. But that doesnt make sense because I also tested an old version of my game which worked prior and that’s not working either.
@@BobsiTutorialthe website works again my my game still doesn’t. What happens is I create a lobby and have another window join in. It doesn’t join until like a minute later and a bunch of stuff is broken like animations.
@@MicahDaRhuler So it sounds like an issue on your side and not that their service is down like your original message. Now this is still clearly frustrating, but it's hard to do something about it, if we don't know the issue. The classic approach here would be to start a new project, and start introducing stuff one by one, until you find the/a culprit.
Good tutorial, theres a problem tho It never shows the option automatically spawn player and when i was in a multiplayer game, i was able to control the other player for some reason Do you know how i can fix these problems.
@@BobsiTutorial so the game kinda works, but whenever a player joins the game freezes and whenever the other instance of the game is closed then the game starts working. what should i do heres a explanation basically whenever another player joins the game, it freezes for both player but i can kinda move where basically i can press a button and if i go to another instance of the game it would have moved but then i cant move or do anything then once the other instance of the game is closed or the player leaves, then the player is able to move but when some one joins then it freezes again
my problem is like i make a player and i make the visor and it like it shows the whole body and it doesnt point where the visor is it like shows the whole body
What do you think about Alteruna? 😀
Join my discord: discord.gg/HRfzz58NYk
Can you make more videos about Alteruna please 🙏
@@BobsiTutorial alteruna Is awesome, now me and my friends can finally play games I make 😀
I am Egyptian and I watched the video with subtitles and I liked the way you explained it❤
Glad you like it!
Ive been trying to do this for so long now and this tutorial was the one i needed. Thx :)
Happy to help out! ^^
Much more useful than 20-30 minute or even 2 hour videos. Thank you so much!
Glad you think so!
fr
Please do more Alteruna regarded videos! It helps me so much developing my Multiplayer Game and I feel like ur the only RUclipsr to explain it
Working on a new one right now ^^ Should hopefully be out very soon!
@@BobsiTutorial Thanks man! Appreciate it
Looks great! Can't wait for part 2!
Thank you very much ^^
It is just stunning how easy and beginner friendly is that thanks for News and tutorial
Agreed. And I am always happy to help out. Thank you for the nice comment ^^
It is really good that you listen to the feedback, I am seeing in the previous videos somebody was saying in the comment how to create lobby and join the players, You created this video then. Kepp continue this way, really great. I am suggesting to make a video to explain different ways of creating multiplayer games in Unity like FishNet, Photon, Unity's new networking solution and Mirror. In this way, people will get some general info on how is the multiplayer work.
Thank you very much Ahmad. What a lovely comment! :-)
I will do my best to help everyone get a good start on their multiplayer journey. Nice comments such as this one is a big motivational factor for a small creator like me!
The Checker texture you used when making the Example scene is what i need for my Game. So i was wondering if you could like drop a link or where to find it in replies to this comment. Great tutorial btw!
It's just ProBuilder of the Unity package 🙂
Oh wow, so many new multiplayer frameworks coming out lately!
Yeah, it is wonderful for the community, and competitors are always good for us as the consumer 😄
Incredible Tutorial! Works perfectly.
Happy to hear! Thanks for the nice comment
crazy how easy it is to set all this up! thanks for the tutorial🙂
Happy to help out!
Amazing!!!
Would def love to see a part 2, maybe include a way to create a room name or lobby with a password or way to invite a specific person to play against?
Currently already working on part 2 with synchronizing and RPC's which should allow you to do most with networking ^^
This actually seems really easy! For someone like me who has little to no coding skills, I feel like this tutorial would actually make me able to do Unity multiplayer in less than 10 minutes.
I can really see this being handy for beginners to multiplayer.
Nice video and interesting system by Alteruna!
Do you have any plans to expand on Alteruna with other videos on it in the future?
Glad you enjoyed!
@@BobsiTutorial The player movement and cam glitches to other client when they join!
@@SterioMade Funny writing it as a reply to another persons comment. Anyhoot. Simply something wrong in the ownership check you are doing. Worth looking into. Good luck.
@@BobsiTutorial Where's the sync cause the movement isn't multiplayer players control each other came with camera.
BRO U ARE A GENIUS THANK YOUUUU
Glad I can help out
@@BobsiTutorial 😁😁😁
Are you able to continue this as a series and make a video on how to make nametags with alteruna?
This is definately something i could look into. I'll take it up with the Alteruna team 😀
Really helpful thanks
Happy to help out
This was really great man! They have done some updates since your vid but nothing complicated that couldn't be figured out. I really like this setup so far and I plan to keep using it! Do you have a video on the chat box function? That would be great to learn as well! Thanks again!
Hi, Thank you! Glad you like it. unfortunately I don't have a video on the chat system
For anyone in the Future when adding the Transform Synchronizable script to the player the Unique ID is added to this now
Good note.
Great tutorial everything works fine i can see other players but you cant move or look around (I know im a year late)
Well I am 13 days slow to a reply, so no harm done. Appreciate the kind words!
So nice thank you for the vid
Glad you like the video!
@@BobsiTutorial yeah thanks for your Answer your vid are all nice that tutorials are what i need for my hdame
Hello, I was wondering if you knew of the bug of not being able to look around after you join. I looked through the code and corrected it, but the mouse movement had no impact on the looking around, so it was just stuck in place. I'm a little confused, but otherwise great tutorial. If you could get back that would be awesome too! Thank you so much for this easy multiplayer option!
Should work. It is a 1-to-1 copy of the code I used in the video, and I use the same character controller for nearly every project I start 🙂
Hello, your video helped me in my game, but when I use a gun in a game all players shoot and sound at the same time you know what I mean??
Likely the ownership check is incorrect. Apologies for the slow response
It seems like it works fine, but I can't test multiplayer myself, because if I open a built instance of the game or run in Unity, it will connect, but all other instances of the game will just be stuck on "Reconnecting..." for what seems like forever as far as I can tell.
I would join the Alteruna discord and ask them.
hey I know this is an older video but Im having an issue where who ever creates the lobby. camera lags badly but only for the host any other client/player doesn't do that. I cant find out why
same
Hmm, not familiar with this, but I don't personally use Alteruna. Probably worth seeing if they can help out in their Discord. Any chance you are handling movement or camera movement in FixedUpdate? That would at least cause lag
I really want have a tutorial where Bob explains how to do multiplayer with characters
For some reason the players move fine on their own screen but to the other player they are flying around above and when they rotate they rotate around a point in the middle of the stage rather than their head. I am using the script in the desc.
The script i use can ONLY use a camera in the scene tagged with main camera. The players should not have cameras on them or reference wrong cameras. It sounds like what is happening with you. But i could be wrong. Sounds really weird. I have not had this happen a single time, but definately something off about your scene setup if you've copied my script directly.
My first player is controller second player and vice versa, most interesting is that i use exactly your code from the video
Well this setup is super basic, and fairly straight forward, so something must surely be off in the setup.
Try and have a look step by step as to what the difference is. It is the best way of debugging 🙂
@@BobsiTutorial i did everything in your tutorial and the server for alteruna is a ghost town no help multiple people are complaining in the comments fix it please
@@ItsOmeyYT I have done this multiple times and also been out teaching at a university on this same setup. There is definitely something you are forgetting, because it does work for sure 🙂Maybe something on the avatar setup, disabling of input or alike.
@@BobsiTutorial nope it's your script its supposed to be Avatar_IsMe instead of !Avatar_isMe I looked in there support
@@ItsOmeyYT Please specify where? The only places i see is in start and update, and those seem correct (because you want to leave if you are not the owner.)
no way its this ez man.
thanks bro.
Happy i can help out ^^
This was more simple than the FishNet tutorial
It is really that easy!
Hi! How well does it perform compared to FishNet, Photon, Unity's new networking solution and Mirror?
I haven't personally stress tested it, so that might be more fitting for their discord. I have looked a bit into their documentation and it seems like it should be a pretty performant setup. I imagine it more performant than Unitys new (NetCode) for sure, but more than mirror or FishNet i can't say.
But also as a networking solution, with the whole server setup, i'd see this as more of a competitor to Photon, and I would prefer this over Photon PUN by far. Photon fusion seems really good, but also troublesome to work with.
And Alteruna also has really damn good pricing compared to Photon in my opinion. So that also matters i think 🙂
I hope that answer atleast gave some kind of value!
I think you should keep it separate from the fishnet playlist.
The playlist is just meant for general multiplayer, but if I do end up making a whole series of Alteruna, i'll split them up 🙂 Thank you for the feedback!
@@BobsiTutorial Wait... Then why did you name it Ep. 1? LOL, I thought you have some plans for it.
@@jubinjajoria2870 Hopefully we'll release more videos, but that would require Alteruna to be happy with the performance of this one ^^
Also, the youtube algorithm pushes episode 1 of videos more than any other 😂
Look at my devlog videos. First one is ep. 1, rest does not mention episodes.
I have a mistake
MissingReferenceException: An object of type 'Transform' has been destroyed, but you are still trying to access it.
Your script should either check if it has a null value, or you should not destroy the object.
Luckily missing references and null reference exceptions are the easiest to debug 🙂 A null check should be fine
Great video! Do you know where i can get more information about Alteruna?
I have multiple videos on Alteruna, but you can also visit their website where they have documentation and their Discord! :-)
Thanks bro ❤❤❤
Very welcome!
There are 2 audio listeners in the scene. Please ensure there is always exactly one audio listener in the scene.
this thing shows up and Alteruna rooms stuck in (connecting...)
Just remove one of the audio listeners. There might be 2 cameras for example?
@BobsiTutorial ty it works and can you make tutorial about how to make tag game mod with Alteruna like the crab game?
@BobsiTutorial and if you can't make it just tell me where I find the tutorial
good it works thx you!
Happy to help out!
thank you so much.
Happy to help out! ^^
Hi sir, I'm having trouble adding this code to the Player controller, if(!_avatar.IsMe) return; My character can't move and gets a Warning warning
Have you ensured that you have the Alteruna namespace added?
Got a problem: when I move one player the other move too? they're mimicking each other
edit: nvm I missed the bit about the ownership in the script!
It's always the ownership! ;)
what is the thing that you use to build the scenery?
Pro builder. It's a Unity tool you can get in the package manager
hey I followed the tutorial it works if I build it with the default platform if I change platforms to UWP, universal windows Platform, it cannot connect
You'd probably have to ask in the Alteruna Discord. I am not familiar with the issue.
it says License Query failed for unknown reasons.
idk what to do
The Alteruna discord is probably the best bet for this. They are super helpful in there.
can you use fish networking in commercial projects?
Oh absolutely. Already work with multiple companies which do 🙂It is probably one (if not #1) most scalable systems out there.
and its free to use commercially?@@BobsiTutorial
I'm getting "Object reference not set to an instance of an object" on line 37 of the PlayerController script, im assuming it has something to do with the camera because i dont have one, but im not sure what to do.
The full error is "NullReferenceException: Object reference not set to an instance of an object
PlayerController.Start () (at Assets/Scripts/PlayerController.cs:37)"
if it mentionds the camera or Camera.main or something on that line, it's because you need a camera in the scene tagged with main camera.
@@BobsiTutorial Okay thank you i will try tomorrow, great tutorial and explanations too, I will subscribe :)
Hey mate, once i had fully set it up, there was no option for joining a room, only start so the second player could not join the room. Any ideas why?
Hmm, no clue. They update it on the fly, probably a better question for the Alteruna Discord.
WTH That is almost impossible to believe ??!! what magic is done behind the scene
haha!
where is the IsMe in visual scripting, i dont really know anything about the usual c# scripting people use, i only know the node scripting so this is pretty hard for me, i have a fully working movement script in visual scripting and i dont want to change it
Unfortunately I am not familiar with visual scripting what so ever
its ok man, but i tried using your script and there isnt a camera, do i add one myself? if i do, when i walk around it doesnt follow the camera's rotation for some reason.@@BobsiTutorial
can you make a video on how to alter any script to work with alteruna. I cant figure it out. this a great tutorial.
That's an extremely big concept to tackle. I would greatly recommend to start by just getting familiar with the network development concepts. Then it will make sense
i cant put the prefab into the avatar slot in the network thingie
Is the avatar component on the prefab?
Hello sir.
Do you have a simple sitting on chair tutorial in unity?Like there will be an arrow on top chair and when you click it you will sit on chair.
Thank you sir.
Unfortunately, this is not something i have a tutorial on 🙂
I hope you can make a simple tutorial for it sir
thanks for tutorial
💖💖💖💖
Happy to help out! ^^
@@BobsiTutorial 💖💖
i tried applying this to my own game and whenever somebody joins you can control them as well as yourself im gonna keep working on it but i was just wondering if its a common problem.
Something would be wrong with the ownership/auth check
What ive noticed is that its highly laggy. Dont know if its just me.
Where in the world are you located? Right now their servers are in EU, but they are focusing on expanding very soon.
@@BobsiTutorial that explains the lag then thanks
hello i wonna say thank you and also when i sent my friend the game file we were able to play but after 1 or 2 minutes are game would crash
Have a chat with the Alteruna guys. I am sure they'll be able to help you out!
@@BobsiTutorial OK I will try
I Have a basic game set up, but one thing is collisions, how can i set up collisions, like if player a touches player b then something happens for both the players like take tag for example, how to share the den between two players or even any variable
"share then den"?
I'm not really sure what you mean. Either way, it's up to you how you want to handle that. You can have them do it locally when the collision occurs, if you are the owner, then you do some logic. Or you could have some single player (possibly ID 0) handle the logic or what not.
@@BobsiTutorial Actually, I am new in alteruna stuff, I have build a game of TAG 3D in which there are 2 players one of the player is marked with "main player" So that handels all the logic even though both players have same script, how to change like a player Id variable in the script according to the index of player joined the alteruna room.
can you make a tutotial of shooting with alteruna??
It's not in the near future at least 🙂
alteruna is one of the best multiplayer plugins i have seen but there is 1 problem there is an option to spawn the players in manualy i want to do that but how?
Yeah, og the network manager, you can choose to do that 😁
@@BobsiTutorial im sorry but is still dont understand how i need to do it?
Hey, nice tutorial. I have a question, Is It possible to import our custom server, like VDS?
I don't believe Alteruna allows for other transports, as their product is the hosting which they provide.
@@BobsiTutorial I get a lot of lag while playing with my friend thats why I am asking, how can I fix it?
@@hypersomnia4 What server are you playing on?
camera doesn't move to player, your does how i put camera in player
Try and start by duplicating my setup 1-to-1
@@BobsiTutorial ?
Thank you!
Happy to help out ^^
By the way. Could you do a tutorial on how to optimize it? I mean it's very laggy and if someone who's not connected to the same network as me will have a lot of "ping". Idk if you can fix this but I would really appreciate. Thank you
@@eppl1184 This is probably more of a task for the support in the Alteruna Discord. If it is something they want me to make a video about, they can let me know ^^
I would imagine a fix for this could be to lerp stuff manually. So sync the positions and lerp between current position and the synced position. This should smooth things out.
@@eppl1184 Where are you located? Right now their servers are in EU north, but they are looking into setting up new ones ^^
Ohhh, so I can’t do anything to fix that for now. I’m in EU east, i believe that’s the problem. Thanks again!
I am able to move both players separately which is great! However I am doing this from a top-down camera perspective (so I didn't use your player controller script), and the cinemachine camera follow is only working on the first player that was spawned. For the second player in the build run the camera is still following wherever the other '1st' player moves. Any suggestions on having a new camera also spawn that follows the second player?
You would simply need to check ownership of the player and only assign the cinemachine camera to follow the one which the connection owns :-)
Im having some problems with the Network everything else work its just that the player doesn´t show
btw tutorial Great would recommend
ty ty. Try and take it step by step again and see where you missed something ^^
For some reason it didn't have a mesh filter and renderer but i fixed it now🎉@@BobsiTutorial
Great Tutorial, but could you link the project to github or some staff, cause it would be a backup for me. Thanks for that great Tutorial!
Unfortunately I don't have the project anymore :(
This is great!. but i have a few problem. the rotation of the players camera doesnt show up.
what do you mean that it doesn't show up?
@@BobsiTutorial i have a visor that rotates with the camera. but the other players in the server cant see the rotation of the visor
@@bramwolters1393 does the visor have a transform sync on it?
Bruh... it doesnt. Thank you so much!!!!
It works!!!! THXXXXXXXXXXXX
First of all, nice video!!
I do have a weird issue tho, in unity everything works like normal, but when i build the project and try to join a room, i suddenly fall through the ground...
Does the ground have a collider? Does the player have a character controller or collider? Is the spawnpoint ensured above the ground?
Something is causing you to not collider with the ground it would seem 🙂
@BobsiTutorial
figured it out.
i was using composite colider not mesh
thx anyway
Good tutorial! I had an issue when i go multiplayer and open two windows or more, in the second window appears two players with the same movement, also cant see the other players in their current location, do you know how to fix it?
Sounds like parenting or ownership issues
I know a lot of the system has changed since you made this tutorial, but I am having quite a few issues, mainly my "IsMe" does not seem to be working, I cannot control my own character or any of them. Is there anywhere else I could read the small changes to the Altaruna SDK, I am trying to incorporate into an existing project, but thank you your video is wonderful!
I did find some API documentation on their website!
I think my issue was just a simple parenting error, keep up the good work!
@@techweasel glad you got it solved 🙂
@@BobsiTutorial Thank you, I release one game each month (as a personal challenge) so anything that speeds up multiplayer is great!
@@techweasel Great challenge! Where do you release them? 🙂
Hmm, For some reason I can’t join rooms, fix?
Strange. Should be straight forward. Try and add your license again
For some reason when i connect to a server the cursor disappears and i can't close the Room Gui
You have cursor.visible set somewhere, just need to find it. Probably on the player script from my description.
I need help, i can't put the player in the avatar variable. I would really need some help on that.
Your player is not an avatar then. Try and watch the setup again 😀
Hey man, great video. I'm having a small issue. The enemy AI script that I am using to control my enemy characters does not execute on the multiplayer server. The enemies just sit there motionless. I don't know if you have any information on that but anything would help, thanks.
Alteruna is mostly funcitoning like a server with no sense of logic (hence why you don't upload your game to the server). So nothing will run on the server, at most it is used to store simple values and synchronize informaiton between players. So a player (often player 0) should run the logic.
Sadly didnt work for me i used danis tut on how to walk and get a grappling gun the problem is with it the camera is in player so if i delete player i wouldnt have a camera anymore... tried mixing it with your code but it didnt work... if u have a solution for that i would be happy!
I would always keep the camera in the scene and then grab the camera for the player on ownership in the script 🙂
Hello Bobsi, I made it up to where you added the room menu and when I tried to test it like you It just kept connecting and eventually said License query failed. Not sure how to proceed from here
Try and re-add your license.
I just follow your video. But when an other player join the server the player #1 control the player #2 ... vice versa. Could you help pls?
This definately sounds like a script issue. I have the playercontroller script in the description. Try with this 🙂
did you solve the problem? if yes then how, i have the same issue
@@justiiiii Unfortunately no...
Hello, I cannot click any UI elements because the Player controller captures the mouse before it detects a click. Can you help?
do you have an event system in the scene?
@@BobsiTutorial Yes.
I made the multiplayer wokr and the player to spawn with it, but the player model is in the sky when I spawn in. whats happening?
Maybe you just offset the body/graphics on the prefab?
Hi, great tutorial! I have tried this on my mac and everything works, however when i run it on my android device nothing works. The screen stays at Connecting... state and nothing happens. The error I got is: Error Unity Alteruna:Error:Exception accrued while tying to send or handle license query.
Error Unity Exception: HttpClient task failed to query.
Error Unity An error occurred while sending the request. I want to make multiplayer mobile game for android. Does Alteruna multiplayer support mobile device?
I believe so, but you'd have to as them in their discord or check their website. But the error just simply looks like a license activation error.
hello i have a problem with the room menu, i just cant press on start, it says connecting, then connects,i try clicking start it dosent work.
can you help?
Hmm, sounds strange. You're saying it then connects? So what's the problem?
You need to add EventSystem in your scene
wow thank you
i will make johny sims game
Hol up... What game now?
@@BobsiTutorial ohh that was a joke(johny sins was a pornstar) but your video was really helpful and I'm really thankful that I did watched it. But I have a question please enlighten me.. is Alteruna really functionable even in publishing and uploading a game in marketplaces, and I'm confused which thing should i follow; Alteruna, fishnet. or Photon I heard a lot about multiplayer engines.
@star84eva I got the joke ;-) Also why i said "hol up" ^^
For your question about choosing an engine, it is really about what suits you. Out of your options here FishNet is the Odd one out. Alteruna and Photon both have the selling point of running on their own server. FishNet needs another transport to function online (steam, dedicated server, epic services, etc.)
To get that one out the way. FishNet seems like a crazy scalable system, but out of the options, also the hardest one to get to release because of the transport setup.
Alteruna and Photon are pretty much direct competitors in the space now. Photon has more proven time on the market, and most likely has the bigger structure and more well rounded system. They do however also have a more strict form of price model. They limit you on the CCU (Concurrently Connected Users), which i am not a fan of.
Alteruna does not limit you on CCU or Rooms, only bandwidth, which is great for us small indie/hobby developers! But they are a newer system, which has its pros and cons.
Pros of this being: support from developers, growing community, cheap, prone to change for the better.
Some cons however being: Not servers worldwide (yet) and no proven games on the market (yet).
So to answer your question very shortly:
Do you want the most control and scalability at the cost of convenience, then FishNet is your guy.
Do you want the convenience and a proven well rounded system, then Photon is your guy.
Do you want the convenience, cheapest and a small/niche community, then Alteruna is the option.
Keep in mind that all of this are my personal observations, and are not by any means cut in stone :-)
I hope this helps you! If you got more questions, you can also join my discord.
@@BobsiTutorial Wow thanks! well said captain.. what really my motive is to make a 3d mobile multiplayer game could be low poly theme but I'm stuck on which network engine i supposed to use and I want to try publishing it on playstore but of course I'm looking for a standard quality game so detail by detail I want the game server will function well but u said still there were no proven game on the market. By the way i joined your discord just by now I''ll observe and learn from what yo guys shared out there.
@@star84eva7 Sounds like you have a plan. Maybe also join the Alteruna community. The devs are pretty active in there, so maybe ask them about the mobile capabilities for your game 🙂
I don't have too much experience with Alteruna for now. But i do not it is extremely simple to get started with and the pricing is cheap, so if they do have the mobile capabilities you need, i think it is a solid choice.
If you are familiar with server hosting yourself, maybe FishNet is a safe bet. I don't dislike Photon, but I don't like/support the limited CCU business model.
i am getting some strange behaviours. i did everything like in the video and copyed the playercontroller 1:1. when i now start 2 instances of the game and try to move with player 1, i move player two and vista versa
That sounds strange. Probably something wrong with the Avatar.IsMe call. If you copied/downloaded it directly, maybe the setup of the character is not correct and it can't grab the avatar?
@@BobsiTutorial i found the problem. you need to make sure that the character controller of all other clients getting disabled if !_avatar.IsMe
@@bastelbudi uhh what? btw i have the same issue
I'm trying to have a singular object exist between both player's games (a soccer ball). I tried using some of the object spawning code from that tutorial video, but that always spawns two balls and they aren't synced and just a lot of problems.
How could I have a non-player object exist and have the ability to be manipulated by both players?
Woah. This comment slipped through the cracks, apologies about that!
You're likely spawning the ball from something that exists either twice or individually on each client. Try and have a single manager in the scene to handle the spawning for you.
@@BobsiTutorial oh wow I didn't expect to actually get a response, thank you so much, I will try that!
I am curious about something and maybe someone can help… I am trying to create a capture the flag world game. I want to make it work that the world is always active and if you are not online, your base can be taken by someone that is online at the time on a particular server. When I log back on, if no one has taken my base, it still belongs to me…. Is this possible? Does the server work like that? Any advice is appreciated.
I'm not sure, you might have to ask in the Alteruna Discord. I don't think the Alteruna servers allow for permanent up-time like that, I think they run on room/lobby logic, meaning when everyone leaves, the instance/room shuts down.
@ my other thought was to do a main game, then do a tower defence game on a server, but I would want your items and accomplishments you get in game to carry over to the tower defence.
is there a way to sync movment because when i move in 1 tab it doesnt register for the other tab
The transform sync component should handle that
I love you
:))
any tips on getting the players to sync right when going high speed?
what do you mean with "sync right"?
@@BobsiTutorial choppy movement/not syncing across the players network when moving too fast
@@RealMunkey hmm, sounds strange. I don't work much with Alteruna, so maybe try and ask in their Discord 🙂
Can you do a tutorial on webgl 3rd person multiplayer
This is very specific, but something i could look into for the future ^^
Generally, thirds person and first person when it comes to the setup is very similar, and you should be easily able to do that part for yourself.
And having highly interactive games such as first or third person games, isn't exactly great for the browser, just so you know ^^
@@BobsiTutorial yes i have been doing some research but still can’t find a tutorial when people join in a game in webgl and we can see the other person’s character joining the game as well. It’s possible and i hv seen project does this but yeah it’s not open source. Would be great if you can make this tutorial man. Pretty sure a lot of people wanted this as well 👍🏻
@@JarsotakethatL Well Alteruna is not WebGL ready for now. but it is something they are working on 🙂
can we use this for webgl 3rd person?
As far as I am aware, Alteruna does not support WebGl yet, but it is in the scope.
how can i synchronize animations and maybe you could make a video on it?
I don't think they have an automatic way to do it, so the best way would be to use synchronized values and constantly set those in the animator.
is there anyway you can just provide a package where all of this is already set up, for some reason it is not working on mine? thanks!
I don't have these files anymore, so unfortunately not. If things aren't working, might be a good idea to join the Alteruna discord. They are very helpful in there.
Hi bobsi, sorry for coming (again) but I am experiencing an issue, so I made a script where the player looks up and down but when I go to multiplayer it doesn't do the same?
Not really enough information to go off of here...
@@BobsiTutorial I found the issue, sorry for disturbing.
nice video but can you by any chance make it 3rd person
You can just make it third person. The multiplayer setup doesn't really change ^^
Good tutorial. Unfourtunatly, Alteruna screwed me over, their webssite is broken and like two weeks into coding their service stooped working right too.
oh wow, didn't know about this. Sorry to hear. They're not responding on their discord and such?
@@BobsiTutorialthe guy just gave me a crappy vague answer like my data is mismanaged or whatever. But that doesnt make sense because I also tested an old version of my game which worked prior and that’s not working either.
@@MicahDaRhuler I'm confused. It sounds to me like their website and service is online as normal, but something isn't working for you?
@@BobsiTutorialthe website works again my my game still doesn’t. What happens is I create a lobby and have another window join in. It doesn’t join until like a minute later and a bunch of stuff is broken like animations.
@@MicahDaRhuler So it sounds like an issue on your side and not that their service is down like your original message. Now this is still clearly frustrating, but it's hard to do something about it, if we don't know the issue.
The classic approach here would be to start a new project, and start introducing stuff one by one, until you find the/a culprit.
Can i also play with a diffrent computer on the multiplayer?
yes, you can.
Good tutorial, theres a problem tho
It never shows the option automatically spawn player and when i was in a multiplayer game, i was able to control the other player for some reason
Do you know how i can fix these problems.
Most likely didn't do the disabling correctly in the script.
@@BobsiTutorial so the game kinda works, but whenever a player joins the game freezes and whenever the other instance of the game is closed then the game starts working.
what should i do
heres a explanation
basically whenever another player joins the game, it freezes for both player but i can kinda move where basically i can press a button and if i go to another instance of the game it would have moved but then i cant move or do anything
then once the other instance of the game is closed or the player leaves, then the player is able to move but when some one joins then it freezes again
@@3VOX3 sounds like maybe some of the disabling logic is wrong. Try and re-watch that part again perhaps.
Thanks, the game is now working!
I will definitely watch and try some of your other altertuna videos
When i drag the RoomMenu into it my icon turns into a X and won't let me put it in
Might be a good idea to ask in the Alteruna discord. That way you can also send an image or video of the issue 🙂
my problem is like i make a player and i make the visor and it like it shows the whole body and it doesnt point where the visor is it like shows the whole body
I am not sure what your issue is here
Is there a way to make this multiplayer function work through a webGL build?
I'm unsure if Alteruna has WebGL support. You should be able to see on their website or ask in their Discord.
Heyy where can you open the testing window? Thanks!
create a build of the game and make a server in editor and join it on the build version
You can build or use parrelsync
how do i disable the mouse lock so i can click back in the menu?
Cursor.lockState = CursorLockmode.None I believe