inkle / ink-unity-integration

Unity integration for the open source ink narrative scripting language.
http://www.inklestudios.com/ink
Other
578 stars 101 forks source link

Problems upgrading to/installing 1.1.1 #172

Closed klootas closed 1 year ago

klootas commented 2 years ago

I'm having trouble doing a clean install/update of the Unity package (both on Unity 2021.2 and 2022.1)

Following the installation instructions under "Via Package Manager" as described on doesn't work (it doesn't specify a version, so I'm not sure how it could really). Here's what happens when I try what's suggested on https://github.com/inkle/ink-unity-integration:

An error occurred while resolving packages: Project has invalid dependencies: com.inkle.ink-unity-integration: Error when executing git command. remote: Repository not found. fatal: repository 'https://github.com/inkle/com.inkle.ink-unity-integration.git/' not found

I also tried updating my (functioning) 1.0.2 OpenUPM package that looks like this:

{
  "dependencies": {
    "com.inklestudios.ink-unity-integration": "1.0.2",
  },
  "scopedRegistries": [
    {
      "name": "OpenUPM",
      "url": "https://package.openupm.com",
      "scopes": [
        "com.inklestudios.ink-unity-integration"
      ]
    }
  ]
}

Here's what happens when I go to Unity Package Manager and hit "Update to 1.1.1":

A meta data file (.meta) exists but its asset 'Packages/com.inklestudios.ink-unity-integration/InkLibs/InkCompiler/ink_compiler.csproj' can't be found. When moving or deleting files outside of Unity, please ensure that the corresponding .meta file is moved or deleted along with it. UnityEditor.AssetDatabase:Refresh () Microsoft.Unity.VisualStudio.Editor.VisualStudioIntegration/<>c__DisplayClass8_0:b__0 () (at Library/PackageCache/com.unity.ide.visualstudio@2.0.16/Editor/VisualStudioIntegration.cs:100) UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

Couldn't delete Packages/com.inklestudios.ink-unity-integration/InkLibs/InkCompiler/ink_compiler.csproj.meta because it's in an immutable folder.

A meta data file (.meta) exists but its asset 'Packages/com.inklestudios.ink-unity-integration/InkLibs/InkCompiler/ink_compiler.csproj' can't be found. When moving or deleting files outside of Unity, please ensure that the corresponding .meta file is moved or deleted along with it. UnityEditor.AssetDatabase:Refresh () Microsoft.Unity.VisualStudio.Editor.VisualStudioIntegration/<>c__DisplayClass8_0:b__0 () (at Library/PackageCache/com.unity.ide.visualstudio@2.0.16/Editor/VisualStudioIntegration.cs:100) UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

Couldn't delete Packages/com.inklestudios.ink-unity-integration/InkLibs/InkCompiler/ink_compiler.csproj.meta because it's in an immutable folder.

A meta data file (.meta) exists but its asset 'Packages/com.inklestudios.ink-unity-integration/InkLibs/InkCompiler/ink_compiler.csproj' can't be found. When moving or deleting files outside of Unity, please ensure that the corresponding .meta file is moved or deleted along with it.

Couldn't delete Packages/com.inklestudios.ink-unity-integration/InkLibs/InkCompiler/ink_compiler.csproj.meta because it's in an immutable folder.

A meta data file (.meta) exists but its asset 'Packages/com.inklestudios.ink-unity-integration/InkLibs/InkCompiler/ink_compiler.csproj' can't be found. When moving or deleting files outside of Unity, please ensure that the corresponding .meta file is moved or deleted along with it.

Couldn't delete Packages/com.inklestudios.ink-unity-integration/InkLibs/InkCompiler/ink_compiler.csproj.meta because it's in an immutable folder.

Any ideas?

Thanks!

tomkail commented 2 years ago

Hey! We changed the package name from com.inklestudios to com.inkle for boring reasons; looks like that's the issue here. Try removing the old one and then following the instructions again!

klootas commented 2 years ago

Thank you for your fast answer! Same thing tho:

An error occurred while resolving packages: Project has invalid dependencies: com.inkle.ink-unity-integration: Error when executing git command. remote: Repository not found. fatal: repository 'https://github.com/inkle/com.inkle.ink-unity-integration.git/' not found

Note that following this link results in a 404: https://github.com/inkle/com.inkle.ink-unity-integration.git

Unlike other Git references I have in my manifest file (which also includes versions) such as: "com.rlabrecque.steamworks.net": "https://github.com/rlabrecque/Steamworks.NET.git?path=/com.rlabrecque.steamworks.net#20.0.0",

tomkail commented 2 years ago

Ah! Thanks, that's probably the root of the issue. I'd missed the branch name in the instructions; now fixed! Tested on my end and it works fine. Try: "com.inkle.ink-unity-integration": "https://github.com/inkle/ink-unity-integration.git#upm",

klootas commented 2 years ago

Now we're talking - works perfectly! Many thanks!