-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling .ink files in Windows for Unity throws an Exception #16
Comments
I get the exact same error when I updated to ink 0.3.5. I tried downloading different versions of Newtonsoft.Json.dll, but none of them seem to work. Will try ink 0.3.4 while we wait for the fix. |
Oh dear, sorry to hear this guys! Will see if we can work out what's gone wrong here... |
Having the same error log. Ink settings in Unity Editor said something about API compatibilities being .net 2.0 and having to be changed to .net 2.0 (which is said on the main page of this github, but doesn't make any sense to me). I clicked the button "fix" under the message and it solved nothing. |
Same error here, ink-unity 0.3.5, Unity 5.4.0b18, Windows 10. Will try downgrading to 0.3.4 |
This should be fixed in the latest version where we've removed our dependency on Newtonsoft.Json.dll. But let us know if you still have any problems! |
I'm running Unity 5.3.5f1 for Windows. When do a clean pull of the ink-unity-integration project, and try to compile an inkfile (such as Basic/story.ink) I get the following error:
From my understanding, Unity3d's current Mono framework version only supports dlls compiled for .NET Framework 3.5 or earlier. Looking at the Nuget packages.config files for the Visual Studio solution, they specify different target frameworks for Newtonsoft.Json.dll in the ink-engine-dll and inklecate projects. For the ink-engine-dll project, it's "net35". For the inklecate project, it's "net45" which is fine ... until you bring inklecate_win.exe and ink-engine.dll into Unity and throw them in the same directory. They both want different Newtonsoft.Json dlls for different framework targets and this causes the issue.
![diffdlls](https://cloud.githubusercontent.com/assets/1876691/16321423/c1e9337c-396a-11e6-8cba-714bbb9cd08e.png)
If I'm not mistaken you have moved some files around yes? I'm betting you don't see this behavior on Mac OS, but I'm not sure why exactly. I only know that it happens in Windows. If I separate both inklecate_win.exe and ink-engine.dll into their own directories and give them the Newtsonsoft.Json.dlls they want, all is well. Then of course there are two Json dlls hanging around which feels icky.
Update: The solution is to compile Inklecate using the .NET 3.5 version of the Netwonsoft dll and all is well. This requires some changes in the VS solution file.
The text was updated successfully, but these errors were encountered: