Jump to content

Unity buginess? .23 Part Tools help please.


Recommended Posts

I was sending a new batch of parts through Unity, so I decided to update my part tools to .23 first. I downloaded them, and noticed they were no longer a "unity asset" so I followed the directions and dragged them into my project. Unity didn't mind until I tried to add them to a part. Then it gave me a pop-up saying

"Can't add script

Can't add script behaviour PartToolsEditor. You need to fix all complie errors in all scripts first!"

I am self trained on Unity, so this is greek to me. Any suggestions?

I have already tried redownloading (Not corrupt), loading through the asset package loader like the old part tools (nothing to load), and am frankly out of ideas. Help is appreciated.

Link to comment
Share on other sites

Unfortunately I can't provide a ton of help without being there to see exactly what you did, but my advice is this:

Click the status bar at the bottom of the window - this probably has an identical message to the pop-up. It'll bring up a list of all errors that have occurred. Look for stuff like "Parse error" and see if you can figure out what's causing it in the script. Then see if it's because there's something not set up properly in the project that's causing that part of the script to bug out (e.g. a file is missing causing a null reference). If everything looks normal outside the script, you'll have to edit the script until it plays nice :\

Best of luck!

Link to comment
Share on other sites

Unfortunately I can't provide a ton of help without being there to see exactly what you did, but my advice is this:

Click the status bar at the bottom of the window - this probably has an identical message to the pop-up. It'll bring up a list of all errors that have occurred. Look for stuff like "Parse error" and see if you can figure out what's causing it in the script. Then see if it's because there's something not set up properly in the project that's causing that part of the script to bug out (e.g. a file is missing causing a null reference). If everything looks normal outside the script, you'll have to edit the script until it plays nice :\

Best of luck!

Hmm it is mentioning a missing "name space" The exact statement is

"Assets/Editor/PartToolsEditor.cs(7,5): error CS0246: The type or namespace 'KSPPartTools' Could not be found. Are you missing a using directive or an assembly reference?"

This still means nothing to me. . . .

How did you install your part tools?

Unzipped them to a folder and dragged the folder in to my project as per

You can just drag & drop them into the asset browser.

Probably good practice to delete the old version beforehand.

link here

Yes the old part tools are deleted, in fact I uninstalled Unity entirely and started over (thought maybe I had an old version)

Link to comment
Share on other sites

My understanding is that for PartTools 0.23, you need to install PartTools 0.20 first, import it into your project (the traditional way), and then overwrite the PartTools 0.20 files in your project folder with the ones provided for 0.23.

Link to comment
Share on other sites

Well, try reinstalling Parttools 0.20 then copy the 0.23 to the assets folder.
My understanding is that for PartTools 0.23, you need to install PartTools 0.20 first, import it into your project (the traditional way), and then overwrite the PartTools 0.20 files in your project folder with the ones provided for 0.23.

Thanks. That was my mistake. Working much better now.

Link to comment
Share on other sites

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...