Unity-Technologies / multiplayer-community-contributions

Community contributions to Unity Multiplayer Networking products and services.
MIT License
421 stars 161 forks source link

Can't add package to Unity Project #184

Open SkeasySimple opened 1 year ago

SkeasySimple commented 1 year ago

Hello all,

I am using Unity 2021.3.11f1 and have installed Netcode for Gameobjects (1.0.2) and Multiplayer Tools (1.0.0) via Packet Manager. Currently I'm trying to install the Facepunch transport, but unfortunately fail every try. I tried downloading it from the website and realizing it doesnt work with the new Netcode for Gameobjects. So i do need the one here on Github.

I already tried to add the name "com.community.netcode.transport.facepunch" (without quotes) under "Add package by name" and also tried the following link under "Add package by gitURL": https://github.com/Unity-Technologies/multiplayer-community-contributions/tree/main/Transports/com.community.netcode.transport.facepunch

I get the following error message when trying with the name: [Package Manager Window] Cannot perform upm operation: Package [com.community.netcode.transport.facepunch] cannot be found [NotFound]. UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

When trying to use the link, I get the following two error messages: [Package Manager Window] Cannot perform upm operation: Unable to add package [https://github.com/Unity-Technologies/multiplayer-community-contributions/tree/main/Transports/com.community.netcode.transport.facepunch]: Package name 'https://github.com/Unity-Technologies/multiplayer-community-contributions/tree/main/Transports/com.community.netcode.transport.facepunch' is invalid. [InvalidParameter]. UnityEditor.EditorApplication:Internal_CallUpdateFunctions ().

and

[Package Manager Window] Error adding package: https://github.com/Unity-Technologies/multiplayer-community-contributions/tree/main/Transports/com.community.netcode.transport.facepunch. UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

Do you guys have any idea whats going on? I am very thankfull for your help!

Regards Skeasy

SkeasySimple commented 1 year ago

Solution:

  1. I downloaded a .zip from this repo: https://github.com/Unity-Technologies/multiplayer-community-contributions
  2. Uploaded the package.json it in the Package Manager under "Add package from disk"
image image