Technoguyfication / Minecraft-Unity3D

Vanilla-compatible Minecraft multiplayer client written from scratch in C#
MIT License
65 stars 14 forks source link

UnassignedReferenceException: The variable Head of PlayerController has not been assigned. #7

Open ATXLtheAxolotl opened 2 years ago

ATXLtheAxolotl commented 2 years ago

I was bored one day and decided to see if someone had made Minecraft in unity! Thank you for doing so. However I originally ran into the problem of account migration I simply solved this by hard writing the username into the code, as you can see in the following screenshot. However whenever I try to join the 1.13.2 server, I get the error "UnassignedReferenceException: The variable Head of PlayerController has not been assigned.", after further inspection there appears to be no head model inside the player controller Screenshot 2021-11-27 105829 Screenshot 2021-11-27 105854 .

Technoguyfication commented 2 years ago

Hey, wow, sorry I didn't see this issue forever ago. What version of the game are you connecting to? If I recall correctly this only works on 1.13 servers. You might also want to go a handful of commits back because it might have broken in the last few commits. Sorry for the inactivity in this repo, starting school+work has left very little time for this project :(

Edit: I didn't see you mention what version of the game you were using. Try this commit instead: https://github.com/Technoguyfication/Minecraft-Unity3D/commit/27ff2b8c442d6c835f1650650bedf2c2474b552f