Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

I don't know why I failed NetCode tutorial

Discussion in 'NetCode for ECS' started by mailfromthewilds, Feb 24, 2020.

  1. mailfromthewilds

    mailfromthewilds

    Joined:
    Jan 31, 2020
    Posts:
    219
    I did everything they said. In total I made 2 scripts. Afterwards I had to fix compile errors.

    But my cube never moved after pressing WASD.

    What could be wrong?
     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,815
    Please post link to tutorial, your code and exact error message.
     
  3. mailfromthewilds

    mailfromthewilds

    Joined:
    Jan 31, 2020
    Posts:
    219
    there was no error, just that the WASD didnt move the cube. i think the connection was estabilished successfuly

    The tutorial I used is:
    https://docs.unity3d.com/Packages/com.unity.netcode@0.0/manual/getting-started.html

    the version I used is 2019.3.2f1 instead of 2019.3.b11 but the version I used is newer (i think) which they specified should be okay..
     
  4. Evil-Otaku

    Evil-Otaku

    Joined:
    Oct 17, 2012
    Posts:
    75
    Check your code with theirs here, https://github.com/Unity-Technologies/multiplayer/tree/master/sampleproject/Assets/Samples/NetCube
     
    mailfromthewilds likes this.
  5. FlexStudio05

    FlexStudio05

    Joined:
    Feb 26, 2020
    Posts:
    1
    Tried following the new version of that tutorial today. ( https://docs.unity3d.com/Packages/com.unity.netcode@0.1/manual/getting-started.html)

    In the tutorial and their code on github they use DatastreamReader.Context which is inaccessible due to its protec lvl
    They also use DataStreamWriter.Write which probably should be WriteInt in those instances but idk.

    Seems like they didn't update the code from the previous tutorial
     
    mailfromthewilds likes this.
  6. timjohansson

    timjohansson

    Unity Technologies

    Joined:
    Jul 13, 2016
    Posts:
    473