VisualPinball / VisualPinball.Unity.Hdrp

High Definition Render Pipeline support.
GNU General Public License v3.0
7 stars 1 forks source link

Errors on import - Unable to add package #2

Closed baroquedub closed 3 years ago

baroquedub commented 3 years ago

Using Unity 2020.2.1f1 Following the HDRP instructions from here: https://docs.visualpinball.org/creators-guide/setup/installing-vpe.html I have VPE 0.0.1-preview.8 installed but when I try to install VisualPinball.Unity.Hdrp is get the following errors:

[Package Manager Window] Unable to add package [file:C:/Users/baroq/VPE/VisualPinball.Unity.Hdrp/VisualPinball.Unity.Hdrp-master]:
  Package org.visualpinball.engine.unity.hdrp@file:C:\Users\baroq\VPE\VisualPinball.Unity.Hdrp\VisualPinball.Unity.Hdrp-master has invalid dependencies or related test packages:
    org.visualpinball.unity.assetlibrary.hdrp (dependency): Package [org.visualpinball.unity.assetlibrary.hdrp@0.0.1-preview.6] cannot be found
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
[Package Manager Window] Cannot perform upm operation: Unable to add package [file:C:/Users/baroq/VPE/VisualPinball.Unity.Hdrp/VisualPinball.Unity.Hdrp-master]:
  Package org.visualpinball.engine.unity.hdrp@file:C:\Users\baroq\VPE\VisualPinball.Unity.Hdrp\VisualPinball.Unity.Hdrp-master has invalid dependencies or related test packages:
    org.visualpinball.unity.assetlibrary.hdrp (dependency): Package [org.visualpinball.unity.assetlibrary.hdrp@0.0.1-preview.6] cannot be found [NotFound].
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
[Package Manager Window] Error adding package: file:C:/Users/baroq/VPE/VisualPinball.Unity.Hdrp/VisualPinball.Unity.Hdrp-master.
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
freezy commented 3 years ago

Yeah sorry we're in the middle of changing the setup. If meanwhile you need a working setup, clone all the org's repos and add them as packages to your Unity project in this order:

  1. VisualPinball.Unity.AssetLibrary
  2. VisualPinball.Unity.AssetLibrary.Hdrp
  3. VisualPinball.Engine
  4. VisualPinball.Unity.Hdrp

Going forward those will all be published on a scoped registry, so you'll just have to add one, or use the default project we will provide.

baroquedub commented 3 years ago

Thanks. I can comfirm that works. Initially I got a bunch of errors after importing 'VisualPinball.Unity.AssetLibrary' (sorry didn't copy them). I just uninstalled the package and retried (pointing to the same unzipped folder and json file) and that time it worked without errors. Other package loaded just fine.

freezy commented 3 years ago

AssetLibrary uses git LFS, so if you pulled the zip, some files weren't included. git clone should work though.

freezy commented 3 years ago

Closing, this is now all documented.