Can't load DF Tools

Discuss modding questions and implementation details.
Post Reply
User avatar
Allerka
Posts: 65
Joined: Fri Apr 24, 2020 11:07 pm

Can't load DF Tools

Post by Allerka »

So I wanted to start trying my hand at some modding stuff. Installed Unity 2018, downloaded DFTFU 1.6.1, etc. I start following the Getting Started Guide (which I realize is horribly outdated, but is the only set of instructions I can find). DFU is setup, check, Unity is setup, check, new 3D project, check. I import the DF Tools package. The guide says to expect a single error about .NET, instead I get this:
2020-05-27_20-41-39.png
2020-05-27_20-41-39.png (214.7 KiB) Viewed 1084 times
(If you can't read it, it's all errors in CodeCompiler.cs, saying type names couldn't be found in namespaces)

Certainly not what I was expecting. I looked a little further down the documentation, and saw to do something with the DaggerfallUnity prefab, including specifying the Arena2 folder. Instead, all I see is this:
2020-05-27_20-43-39.png
2020-05-27_20-43-39.png (78.6 KiB) Viewed 1084 times
Which I assume stems from the first issue. I'm more than a little confused how the basic steps fail almost immediately. The rest of the guides posted here and on the website assume I already have DF Tools installed and working, so they're not much help. I tried looking up the API Documentation and all I get is a blank page. I've tried also loading the DFU files into the project, attempting to interact with all the scenes and not just BasicScene, and nothing's worked.

I don't have a ton of experience in Unity, most of it is from doing their basic tutorial projects a few years back (And it probably didn't inspire much confidence in the engine when even their sample code on some of them didn't work). I've been making video games in Ruby and JavaScript for years, but my C# experience is almost nil beyond those tutorials (and another basic online gaming course in XDA I did once). So maybe it's something basic I'm missing. Any thoughts?

User avatar
Jay_H
Posts: 4062
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Can't load DF Tools

Post by Jay_H »

Are you using Unity 2018.2.21f1?

User avatar
Allerka
Posts: 65
Joined: Fri Apr 24, 2020 11:07 pm

Re: Can't load DF Tools

Post by Allerka »

Yep, that's the one!
2020-05-28_08-05-36.png
2020-05-28_08-05-36.png (6.74 KiB) Viewed 1057 times

User avatar
MasonFace
Posts: 543
Joined: Tue Nov 27, 2018 7:28 pm
Location: Tennessee, USA
Contact:

Re: Can't load DF Tools

Post by MasonFace »

First thing to check is to make sure that you've enabled the full .NET 2.0 API. It's easy to miss in the instructions, but it's very important.

Annotation 2020-05-28 082124.png
Annotation 2020-05-28 082124.png (97.69 KiB) Viewed 1049 times
Edit: Also, it shows you're using Unity version 2018.4.21f1, not 2018.2.21f1. I doubt that's the issue though.

User avatar
BadLuckBurt
Posts: 948
Joined: Sun Nov 05, 2017 8:30 pm

Re: Can't load DF Tools

Post by BadLuckBurt »

MasonFace wrote: Thu May 28, 2020 1:22 pm Edit: Also, it shows you're using Unity version 2018.4.21f1, not 2018.2.21f1. I doubt that's the issue though.
another user had the same issue with 4.21, using 2.21 fixed it for them
DFU on UESP: https://en.uesp.net/w/index.php?title=T ... fall_Unity
DFU Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt

.

User avatar
MasonFace
Posts: 543
Joined: Tue Nov 27, 2018 7:28 pm
Location: Tennessee, USA
Contact:

Re: Can't load DF Tools

Post by MasonFace »

BadLuckBurt wrote: Thu May 28, 2020 2:36 pm another user had the same issue with 4.21, using 2.21 fixed it for them
Ah, good to know.

I think the GitHub page is a little misleading where it says "Minimum Unity3D version - 2018.2.21f1" since it implies that versions later than 2018.2.21f1 will work. I think that's confused some folks, myself included.

User avatar
BadLuckBurt
Posts: 948
Joined: Sun Nov 05, 2017 8:30 pm

Re: Can't load DF Tools

Post by BadLuckBurt »

MasonFace wrote: Thu May 28, 2020 3:00 pm Ah, good to know.

I think the GitHub page is a little misleading where it says "Minimum Unity3D version - 2018.2.21f1" since it implies that versions later than 2018.2.21f1 will work. I think that's confused some folks, myself included.
Agreed, I also installed the wrong version first time around. The 2018.4.21f1 is easy to confuse because you tend to focus on the 21f1 bit
DFU on UESP: https://en.uesp.net/w/index.php?title=T ... fall_Unity
DFU Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt

.

l3lessed
Posts: 1400
Joined: Mon Aug 12, 2019 4:32 pm
Contact:

Re: Can't load DF Tools

Post by l3lessed »

Plus, if a player tries to switch to a newer unity, it will fubar their whole rep and mods when it tries to convert the language over. I've done this twice in the last year and a half. The first time on purpose because I thought I wanted to be up to date on the engine. The second was a mistake. Took my rebuilding from the base repo and a days time to fix this.
My Daggerfall Mod Github: l3lessed DFU Mod Github

My Beth Mods: l3lessed Nexus Page

Daggerfall Unity mods: Combat Overhaul Mod

Enjoy the free work I'm doing? Consider lending your support.

User avatar
Allerka
Posts: 65
Joined: Fri Apr 24, 2020 11:07 pm

Re: Can't load DF Tools

Post by Allerka »

MasonFace wrote: Thu May 28, 2020 1:22 pm First thing to check is to make sure that you've enabled the full .NET 2.0 API. It's easy to miss in the instructions, but it's very important.
Yep, it was set to that by default.
Edit: Also, it shows you're using Unity version 2018.4.21f1, not 2018.2.21f1. I doubt that's the issue though.
Dang, that's a good catch! You're right, I was focused on the 21f1 (I was using 23f1 at first, so was focused on switching that to the right number). So, switching to that version and starting over, my compiler errors from importing the package went down from 23 to 12, and it was all from CodeCompiler.cs. I made sure .NET 2.0 was turned on (it wasn't in this version), which reduced to it a single error about a missing SimpleJson in CreateModEditorWindow.cs. So I tracked down that library off Github and copied it in. But the error was still there. Then I noticed in the script file it was "SimpleJson" while the library I downloaded was "SimpleJSON". I matched up the capitalization, and 'eyyyy, I can see the tools now! Huzzah!

So, I have no idea if there's a flaw in the DF Tools package (I didn't see a copy of SimpleJSON in the asset import list), Unity screwed up (it seems to do this sort of thing to me constantly), or just my eternal bad luck when it comes to coding (I am notorious among my friends and co-workers for somehow getting code to essentially say 2 + 2 = 5). Bloody weird that much of a version difference was the whole thing, but I can't say I'm surprised with the things I've encountered. At least it was something relatively straightforward! On to the next tutorial!

Post Reply