I don't know why I failed NetCode tutorial

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?

Please post link to tutorial, your code and exact error message.

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…

Check your code with theirs here, https://github.com/Unity-Technologies/multiplayer/tree/master/sampleproject/Assets/Samples/NetCube

1 Like

Tried following the new version of that tutorial today. ( Getting started with NetCode | Unity NetCode | 0.1.0-preview.6)

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

1 Like

The code in https://github.com/Unity-Technologies/multiplayer/tree/master/sampleproject/Assets/Samples/NetCube has been updated to the new version of netcode now, we will work on getting the getting started guide updated too

2 Likes