paulloz / godot-ink

Ink integration for Godot Engine.
MIT License
607 stars 42 forks source link

The type or namespace name 'ErrorType' does not exist in the namespace 'Ink' #36

Closed Menyten closed 3 years ago

Menyten commented 3 years ago

Hi!

I'm having some major problems installing this plugin. Currently when I try to build the project I get this error The type or namespace name 'ErrorType' does not exist in the namespace 'Ink'. I'm not really sure what to do here as I've followed the installation instructions to a T.

Here's the full log.

Project "build-test.sln" (Restore target(s)):
    Message: Building solution configuration "Debug|Any CPU".
    Project "build-test.csproj" (_IsProjectRestoreSupported target(s)):
    Done building project "build-test.csproj".
    NuGetMessageTask: Determining projects to restore...
    Project "build-test.csproj" (_GenerateRestoreProjectPathWalk target(s)):
    Done building project "build-test.csproj".
    Project "build-test.csproj" (_IsProjectRestoreSupported target(s)):
    Done building project "build-test.csproj".
    Project "build-test.csproj" (_GenerateRestoreGraphProjectEntry target(s)):
    Done building project "build-test.csproj".
    Project "build-test.csproj" (_GenerateProjectRestoreGraph target(s)):
    Done building project "build-test.csproj".
    RestoreTask: Committing restore...
    RestoreTask: Assets file has not changed. Skipping assets file writing. Path: C:\Users\Joel\Documents\Godot\build-test\.mono\temp\obj\project.assets.json
    RestoreTask: Restored C:\Users\Joel\Documents\Godot\build-test\build-test.csproj (in 70 ms).
    RestoreTask: 
    RestoreTask: NuGet Config files used:
    RestoreTask:     C:\Users\Joel\AppData\Roaming\NuGet\NuGet.Config
    RestoreTask: 
    RestoreTask: Feeds used:
    RestoreTask:     https://api.nuget.org/v3/index.json
    RestoreTask: All projects are up-to-date for restore.
Done building project "build-test.sln".
Project "build-test.sln" (Build target(s)):
    Message: Building solution configuration "Debug|Any CPU".
    Project "build-test.csproj" (default targets):
        Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
        Skipping target "CoreGenerateAssemblyInfo" because all output files are up-to-date with respect to the input files.
        Csc: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\Roslyn\csc.exe /noconfig /unsafe- /checked- /nowarn:1701,1702,1701,1702 /fullpaths /nostdlib+ /errorreport:prompt /warn:4 /define:GODOT;GODOT_WINDOWS;GODOT_PC;TRACE;TOOLS;DEBUG;NETFRAMEWORK;NET472;NET20_OR_GREATER;NET30_OR_GREATER;NET35_OR_GREATER;NET40_OR_GREATER;NET45_OR_GREATER;NET451_OR_GREATER;NET452_OR_GREATER;NET46_OR_GREATER;NET461_OR_GREATER;NET462_OR_GREATER;NET47_OR_GREATER;NET471_OR_GREATER;NET472_OR_GREATER /highentropyva+ /reference:C:\Users\Joel\Documents\Godot\build-test\.mono\assemblies\Debug\GodotSharp.dll /reference:C:\Users\Joel\Documents\Godot\build-test\.mono\assemblies\Debug\GodotSharpEditor.dll /reference:C:\Users\Joel\Documents\Godot\build-test\ink-engine-runtime.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Drawing.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.IO.Compression.FileSystem.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Numerics.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Runtime.Serialization.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Xml.Linq.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\Facades\netstandard.dll" /debug+ /debug:portable /filealign:512 /optimize- /out:C:\Users\Joel\Documents\Godot\build-test\.mono\temp\obj\Debug\build-test.dll /subsystemversion:6.00 /target:library /warnaserror- /utf8output /deterministic+ /langversion:7.3 addons\paulloz.ink\InkDock.cs addons\paulloz.ink\InkStory.cs addons\paulloz.ink\PaullozDotInk.cs Test.cs "C:\Users\Joel\Documents\Godot\build-test\.mono\temp\obj\Debug\.NETFramework,Version=v4.7.2.AssemblyAttributes.cs" C:\Users\Joel\Documents\Godot\build-test\.mono\temp\obj\Debug\build-test.AssemblyInfo.cs /warnaserror+:NU1605
        Csc: Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\Roslyn
        C:\Users\Joel\Documents\Godot\build-test\addons\paulloz.ink\InkStory.cs(427,48): error CS0234: The type or namespace name 'ErrorType' does not exist in the namespace 'Ink' (are you missing an assembly reference?) [C:\Users\Joel\Documents\Godot\build-test\build-test.csproj]
    Done building project "build-test.csproj" -- FAILED.
Done building project "build-test.sln" -- FAILED.
paulloz commented 3 years ago

Hi, that's probably a version mismatch issue.
Here's what you might have seen in the issue report template before deleting it:

Environment

  • OS:
  • Godot version:
  • godot-ink version:
  • ink version:

It'd help identify what's going on if you could fill in the info.

Menyten commented 3 years ago

Hi, that's probably a version mismatch issue. Here's what you might have seen in the issue report template before deleting it:

Environment

  • OS:
  • Godot version:
  • godot-ink version:
  • ink version:

It'd help identify what's going on if you could fill in the info.

Sorry about that! Here's my environment

OS: Windows 10 Home 64 Godot: Godot v3.2.3 stable mono win64 godot-ink: 0.8 ink: the dll I tried with was from ink v1.0 I also tested with v0.9

Menyten commented 3 years ago

Looks like it is working now. I must apologize. I got the ink-engine-runtime.dll from the wrong repo. 😓

paulloz commented 3 years ago

This error only happens if you're using godot-ink >= 0.8 with ink < 1.0.0. The version introduced breaking changes in the error management.
I added a note on the release page.