Jump to content

[Solved] Unity and PartTools problem.


Recommended Posts

For some bizarre reason PartTools stopped working in my Unity.

I spent 3 hours at least trying to figure out why and what happened, even reinstalled unity, no result. My work on modelling is stalled.

Simple process, I'm creating an empty project, dragging PartTools folder under assets, after everything is imported I'm going to either Tools>KSP Part Tools or a Part Tools component under an empty GameObject. When I'm setting the GameData directory unity throws two errors and hangs.

Can anybody decode what's happening here?

vQCdKWj.png

Error description 1:


Error: Empty part config file
UnityEngine.Debug:LogError(Object)
ConfigNode:PreFormatConfig(String[])
ConfigNode:Load(String)
UrlConfig:CreateNodeList(UrlDir, UrlFile)
UrlFile:.ctor(UrlDir, FileInfo)
UrlDir:Create(UrlDir, DirectoryInfo)
UrlDir:.ctor(UrlDir, DirectoryInfo)
UrlDir:Create(UrlDir, DirectoryInfo)
UrlDir:.ctor(UrlDir, DirectoryInfo)
UrlDir:Create(UrlDir, DirectoryInfo)
UrlDir:.ctor(UrlDir, ConfigDirectory)
UrlDir:.ctor(ConfigDirectory[], ConfigFileType[])
KSPPartTools.GameDatabase:LoadDataDirectory()
KSPPartTools.GameDatabase:SetDataDirectory(String)
KSPPartTools.GameDatabase:set_GameDataDirectory(String)
KSPPartTools.PartToolsWindow:DrawGameDatabaseSetup()
KSPPartTools.PartToolsWindow:OnGUI()
UnityEditor.DockArea:OnGUI()



Error description 2:


NullReferenceException: Object reference not set to an instance of an object
ConfigNode.RecurseFormat (System.Collections.Generic.List`1 cfg, System.Int32& index, .ConfigNode node)
ConfigNode.RecurseFormat (System.Collections.Generic.List`1 cfg)
ConfigNode.Load (System.String fileFullName)
UrlDir+UrlConfig.CreateNodeList (.UrlDir parentDir, .UrlFile parent)
UrlDir+UrlFile..ctor (.UrlDir parent, System.IO.FileInfo info)
UrlDir.Create (.UrlDir parent, System.IO.DirectoryInfo info)
UrlDir..ctor (.UrlDir parent, System.IO.DirectoryInfo info)
UrlDir.Create (.UrlDir parent, System.IO.DirectoryInfo info)
UrlDir..ctor (.UrlDir parent, System.IO.DirectoryInfo info)
UrlDir.Create (.UrlDir parent, System.IO.DirectoryInfo info)
UrlDir..ctor (.UrlDir root, .ConfigDirectory rootInfo)
UrlDir..ctor (.ConfigDirectory[] dirConfig, .ConfigFileType[] fileConfig)
KSPPartTools.GameDatabase.LoadDataDirectory ()
KSPPartTools.GameDatabase.SetDataDirectory (System.String value)
KSPPartTools.GameDatabase.set_GameDataDirectory (System.String value)
KSPPartTools.PartToolsWindow.DrawGameDatabaseSetup ()
KSPPartTools.PartToolsWindow.OnGUI ()
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Applications/buildAgent/work/c514da0c8183631c/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)


Edited by Enceos
Link to comment
Share on other sites

Try pointing it to a fresh KSP install? Looks like it might be freaking out over a corrupt or incomplete config somewhere as it tries to pick up stuff in the database.

lo-fi, you're my hero ) I didn't even suspect KSP install was bad :)

Link to comment
Share on other sites

You're very welcome :) with the logs complaining about config nodes, it had to be KSP related. Happy to help!

If you look through KSP's log after it's loaded the parts you may even find the specfic culprit in that install. Part Tools' error handling isn't all that, so doesn't take much to make it say "no". Might just be an incorrectly formatted config file.

Link to comment
Share on other sites

You're very welcome :) with the logs complaining about config nodes, it had to be KSP related. Happy to help!

If you look through KSP's log after it's loaded the parts you may even find the specfic culprit in that install. Part Tools' error handling isn't all that, so doesn't take much to make it say "no". Might just be an incorrectly formatted config file.

Steam made a mistake somewhere while updating to 1.0.4. Checking file integrity didn't solve the issue, had to make a fresh install.

Link to comment
Share on other sites

  • 2 years later...
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...