#1 Simple UNITY Multiplayer with PHOTON FUSION ADVANCE KCC | Initial Project

Поділитися
Вставка
  • Опубліковано 10 тра 2023
  • This is a simple example of implementing Photon Fusion Network Mecanim Animator using the UNITY Starter Assets Third Person Controller for model and animation and Photon Advance KCC for controller. You can also use your own custom model later.
    !Important
    I recommend using Unity 2021 LTS atm because there is still a compatibility issue found for Fusion-KCC-Sample-1.1.5, released on Mar 07, 2023, with Unity 2022 version*.
    Content:
    =======================================
    00:12 - What you will get.
    00:40 - Get Photon Advance KCC.
    03:15 - UNITY Starter Assets Third Person Controller.
    04:11 - Sample Package.
    04:54 - Setting-Up.
    10:48 - Finalizing.
    12:02 - Play Testing.
    16:27 - Demo.
    Resources:
    =======================================
    1. Get Photon Fusion Advanced KCC
    =======================================
    📥 Download: doc.photonengine.com/fusion/c...
    a. Sign up if you don't have an account in PHOTON yet.
    b. Extract fusion-kcc-sample-1.1.5.zip
    c. Add Project from UNITY HUB.
    d. Add/Create Photon Fusion App Id in PhotonAppSettings or via Fusion Hub.
    2. UNITY Starter Asset 3rd Person.
    =======================================
    a. Add Asset: assetstore.unity.com/packages...
    b. Import Starter Asset 3rd Person from package manager.
    as we only used for models and animation, so check only ThirdPersonController/Character and import.
    3. Sample Package.
    =======================================
    📥 Download: drive.google.com/drive/folder...
    Import following custom package to project. with option:
    A. Script Only Package
    ====================================
    If you want to follow along step-by-step Video or StepToReproduce.txt.
    Import: FusionKCCxStarterAssetThirdPerson_ScriptOnly.unitypackage
    Size: 4Kb
    B. Full Package
    ====================================
    Contain all result, so you can move to next-step directly.
    Import: FusionKCCxStarterAssetThirdPerson.unitypackage
    Size: 1,1Mb
    4. Check ReadMe.txt and StepToReproduce.txt for detailed step.
    5. Multiplayer Test
    Simply using parrelsync or any other project instancing to test multiplayer.
    📥 parrelsync: github.com/VeriorPies/ParrelS...
    📥 DualPlay: assetstore.unity.com/packages...
    Note:
    UNITY Starter Assets Third Person Controller package is licensed under the Unity Companion License. For full license terms, please see: unity3d.com/legal/licenses/Un...
    ====================================================
    *Tested on 15/06/2023 15:30 GMT+7 with steps:
    - Download Photon Fusion Advanced KCC from doc.photonengine.com/fusion/c...
    - extracted zip file
    - open in UNITY 2022.3.0f1
    - Missing KCC class
    #madewithunity #unity #multiplayer #photon #tutorial #gamedev

КОМЕНТАРІ • 43

  • @joil1996
    @joil1996 11 місяців тому +1

    Thank you so much, you were great!

    • @rualssyarif
      @rualssyarif  10 місяців тому

      Hi, thanks much appreciated!

  • @ahmetems.2418
    @ahmetems.2418 8 місяців тому

    Thank you so much, this tutorial is so great.

    • @rualssyarif
      @rualssyarif  8 місяців тому

      You're very welcome! I'm delighted to hear that you found the tutorial helpful.

  • @yagizeraslan
    @yagizeraslan Рік тому +1

    Great tutorial! Thanks for your efforts :)

    • @rualssyarif
      @rualssyarif  Рік тому

      Hi friend, thank you verry much it means alot :). n also motivates me. because this is my hobby and I enjoy doing it

  • @hieptranngoc2584
    @hieptranngoc2584 4 місяці тому

    thanks

  • @nemnem66
    @nemnem66 6 місяців тому

    Hi can two different devices from different networks appear in the scenes? In my case I was trying with a friend and we tried "Start Host" and Start client but the "Start Client" Connection is taking too long. am i missing something?

  • @alperen475
    @alperen475 6 місяців тому

    Could you please make a video with KCC v2 for Ready Player Me, it would be great if there was a chat system.

  • @hamdikhouaja5410
    @hamdikhouaja5410 Рік тому +2

    Very helpfull, you are the best, can you explain did you make readyplayer me with fusion BR, also is it possible that this project could be downloadable....?

    • @rualssyarif
      @rualssyarif  Рік тому +2

      thanks man, much appreciate. Yes for implementation of ReadyPlayerMe with BR200 I will share it too and of course it can be downloaded. currently still in the process of making the documentation. sometimes documenting what we have edited is more difficult than the editing itself hahaha

  • @FarSam25
    @FarSam25 9 місяців тому +1

    very helpful tutorial thank you so much!
    but how can i connect it to photon cloud?

    • @rualssyarif
      @rualssyarif  8 місяців тому

      Hi, to connect, enter your Photon Cloud AppId in the Fusion-Fusion Hub-Fusion AppId menu. Make sure the red light has turned green. If not, you can click the 'Open the Photon Dashboard' button once again automatically, as shown in the video: ua-cam.com/video/cJzSUGjhca8/v-deo.htmlsi=yE_2v4mx7gQV6ej2&t=106

    • @FarSam25
      @FarSam25 8 місяців тому

      @@rualssyarif Thank you I really appreciate it

  • @veronicalidya4122
    @veronicalidya4122 3 місяці тому

    Assets\FusionKCCxSA\Scripts\SimpleAnimator.cs(9,13): error CS0246: The type or namespace name 'KCC' could not be found (are you missing a using directive or an assembly reference?)
    how to fixt it?

    • @rualssyarif
      @rualssyarif  Місяць тому

      hi thank, Can you tell me which version of Fusion you're using?

  • @Muhammadali22103
    @Muhammadali22103 11 місяців тому +1

    Hi! I wants to make offline multiplayer fps game using MFPS asset available on asset store. But i dont know how to remove photon networking from mfps.
    Can you please make a tutorial on it?? Please

    • @rualssyarif
      @rualssyarif  10 місяців тому

      Hi, thank you for your comment. I'm not very familiar with MFPS as I don't have that asset. Also, as far as I know, in Photon, offline multiplayer means running Photon as a single player locally without connecting to a server with a single code. Is this what you are trying to achieve? If so, you can find more information about it here: forum.photonengine.com/discussion/19520/is-there-an-offline-mode-in-fusion

  • @mk-3079
    @mk-3079 3 місяці тому

    Bro can you do this for Fusion 2? They do not have Advanced KCC for Fusion 2

    • @rualssyarif
      @rualssyarif  Місяць тому

      hi thanks, i plan to share it around next week for this, sorry for the delay

  • @naveendevaraj6221
    @naveendevaraj6221 11 місяців тому +1

    Hi bro can you make video for mobile input with this advance KCC sample.

    • @rualssyarif
      @rualssyarif  11 місяців тому

      Hey bro, afaik, the advanced KCC Sample already has built-in support for mobile controls. You can find more information about it here: doc.photonengine.com/fusion/current/technical-samples/fusion-kcc-sample#mobile_controls

  • @ibzy_
    @ibzy_ 10 місяців тому +1

    The KCC download from Photon keeps telling me it's corrupt? Anybody else getting this?

    • @ibzy_
      @ibzy_ 10 місяців тому +1

      OK, anybody else suffering with this - rename the file, replacing .zip with .unitypackage. Then import, no extraction needed 👍

    • @rualssyarif
      @rualssyarif  10 місяців тому

      Cool, I've never thought of renaming it into a unitypackage before. Thank you very much for your contribution.

  • @ReinellS
    @ReinellS Рік тому +1

    Hi dude how to use invector third person assets for the fusion maybe you know.

    • @rualssyarif
      @rualssyarif  Рік тому

      Hi, it must be very challenging 😅, haven't tried it so far.

    • @ReinellS
      @ReinellS Рік тому

      @@rualssyarif hmm oky thanks

    • @rualssyarif
      @rualssyarif  Рік тому +1

      @@ReinellS If I'm not mistaken, there is already a multiplayer asset for Invector in AssetStore

    • @ReinellS
      @ReinellS Рік тому

      @@rualssyarif it is asset for mirror network. ah anyways now I don't need invector. :d thanks for help

  • @harshitaaggarwal4836
    @harshitaaggarwal4836 Рік тому +1

    hey, i only want start auto host or client option in this, also i don't want the ui appearing on the top. Can you please in removing them.

    • @rualssyarif
      @rualssyarif  Рік тому

      Hi, to achieve that, you'll need to create a custom start UI where you include a button that calls the StartAutoClient() in NetworkDebugStart when clicked, to switch the game mode to AutoStartHostorClient.
      To hide the menu, you can locate the Menu game object in the hierarchy, which contains the menu component. Uncheck the "showMenu" option to hide the menu without removing its functionality, or disable the component to completely deactivate it. hope it help

    • @harshitaaggarwal4836
      @harshitaaggarwal4836 Рік тому +1

      @@rualssyarif thanks for your help

  • @naveendevaraj6221
    @naveendevaraj6221 11 місяців тому +1

    Exception: Found missing NetworkBehaviour reference in NetworkBehaviours[] list on [Id:None](Advanced Player (Third Person)(Clone)). Re-baking of object required. Please check prefab or scene object and make sure NetworkBehaviour list is up to date.
    Fusion.NetworkObject.GetWordCount (Fusion.NetworkObject obj) (at Fusion/Fusion.Runtime/Object/NetworkObject.cs:333) current sample project from photon fusion Advance KCC has script missing in prefab. kindly check current sample project and let me know how to solve this issue.

    • @naveendevaraj6221
      @naveendevaraj6221 11 місяців тому

      I can't control payer in playground scene because of above error.

    • @rualssyarif
      @rualssyarif  11 місяців тому +1

      Hi, thank you for evaluating this asset. You can try baking the scene object when the prefab context is active by accessing it through "Menu / Fusion / Bake Scene Objects". If necessary, click on "Rebuild Prefab Table" afterward. lmk if that solves the problem. You can try doing it.

    • @naveendevaraj6221
      @naveendevaraj6221 11 місяців тому

      @@rualssyarif Hi, thank you for your response. I already did both bake scene objects and rebuild prefab table but nothing changed. Now i find out actual problem from your video (6:45) the advanced player have KCC component. In new sample project from photon fusion has don't have KCC it show warning notification with the associated script can not be loaded...... in above network culling component as well as i can't add kCC component to that prefab. kindly help me to solve this issues.

    • @rualssyarif
      @rualssyarif  11 місяців тому +1

      ​@@naveendevaraj6221 If that's the case, I will check on my side first. In the meantime, just to make sure, are you using Unity 2022 LTS atm?
      or else providing any step-by-step instructions to reproduce the issue would be very helpful.

    • @naveendevaraj6221
      @naveendevaraj6221 11 місяців тому

      @@rualssyarif I using Unity 2022.3.2f1 LTS