Hello. I have some experience with Unity but I am new to modding Daggerfall Unity. So I decided to download the Daggerfall Tools for Unity and follow the modding tutorials. But I hit a roadblock. When I open a new project and import Daggerfall Tools for Unity package, I get several errors in the console. This is a sreenshot of the console:
https://imgur.com/YvoXOln
I opened the script in question and in the first line, I saw this (along with the other several red underlines):
https://imgur.com/SFvXgu8
I am between noob and intermediate level in programming, so I came to understand that the class CodeCompiler tries to inherit from ICodeCompiler but cannot find it. I looked into ICodeCompiler and found it in Microsoft .NET documentation, so I reasoned it should be integral to Unity. That's where I'm stuck.
Can anyone help me with resolving this issue? I feel there is a very basic thing missing in this scheme but I can't put my finger on it.
On a side note; am I supposed to create a Unity project just anywhere and import the Daggerfall Tools for Unity package? Don't I need to access the original Daggerfall files somewhere in the project folder?
Thanks a lot for the help, in advance
P.S. sorry for both img and url, but imgur is blocked in Turkey (I use a VPN) so I cannot see the pictures in the post, so I couldn't be sure if you could access them.
Daggerfall Tools for Unity cannot compile
- MasonFace
- Posts: 543
- Joined: Tue Nov 27, 2018 7:28 pm
- Location: Tennessee, USA
- Contact:
Re: Daggerfall Tools for Unity cannot compile
Hello!
What version of Unity are you using?
What version of Unity are you using?
- archmagus
- Posts: 6
- Joined: Thu Feb 21, 2019 8:22 pm
- MasonFace
- Posts: 543
- Joined: Tue Nov 27, 2018 7:28 pm
- Location: Tennessee, USA
- Contact:
Re: Daggerfall Tools for Unity cannot compile
I'd suggest installing Unity version 2018.2.11f1, although I don't think that should have prevented the project from compiling.
It may not fix the problem, but it may be worth a try until someone can offer a better solution.
It may not fix the problem, but it may be worth a try until someone can offer a better solution.
- archmagus
- Posts: 6
- Joined: Thu Feb 21, 2019 8:22 pm
Re: Daggerfall Tools for Unity cannot compile
Unity 2018.2.11f1 does the same. Well, the search continues
- TheLacus
- Posts: 1305
- Joined: Wed Sep 14, 2016 6:22 pm
Re: Daggerfall Tools for Unity cannot compile
Hi archmagus!
Go to Player Settings and change Api Compatiblity Level to .NET 2.0. This should solve compilation errors If you intend to make mods I also suggest you to clone Daggerfall Unity instead of using DTFU in a new project.
Go to Player Settings and change Api Compatiblity Level to .NET 2.0. This should solve compilation errors If you intend to make mods I also suggest you to clone Daggerfall Unity instead of using DTFU in a new project.
- archmagus
- Posts: 6
- Joined: Thu Feb 21, 2019 8:22 pm
Re: Daggerfall Tools for Unity cannot compile
That did the trick, Unity let me off with a few warnings!TheLacus wrote: ↑Wed Mar 06, 2019 10:05 pm Hi archmagus!
Go to Player Settings and change Api Compatiblity Level to .NET 2.0. This should solve compilation errors If you intend to make mods I also suggest you to clone Daggerfall Unity instead of using DTFU in a new project.
Thanks a lot, I also cloned the project. One question though, I see my game saves when I run the game from within Unity. Is that because the game saves are kept in a common folder? If so, where is that?
- Kamer
- Posts: 583
- Joined: Mon Mar 05, 2018 9:26 pm
Re: Daggerfall Tools for Unity cannot compile
I was gonna post about this. Thanks for sharing.
- TheLacus
- Posts: 1305
- Joined: Wed Sep 14, 2016 6:22 pm
Re: Daggerfall Tools for Unity cannot compile
If you still need this information you can find it here (see Persistent Data Path)archmagus wrote: ↑Wed Mar 06, 2019 10:21 pmThat did the trick, Unity let me off with a few warnings!TheLacus wrote: ↑Wed Mar 06, 2019 10:05 pm Hi archmagus!
Go to Player Settings and change Api Compatiblity Level to .NET 2.0. This should solve compilation errors If you intend to make mods I also suggest you to clone Daggerfall Unity instead of using DTFU in a new project.
Thanks a lot, I also cloned the project. One question though, I see my game saves when I run the game from within Unity. Is that because the game saves are kept in a common folder? If so, where is that?
- Kamer
- Posts: 583
- Joined: Mon Mar 05, 2018 9:26 pm
Re: Daggerfall Tools for Unity cannot compile
I keep getting this error whenever I load up DF Tools for Unity
I also don't have the "Daggerfall tools" option on Unity. This basically makes the entire thing useless as I can't create mods.
Spoiler!
I also don't have the "Daggerfall tools" option on Unity. This basically makes the entire thing useless as I can't create mods.