Jump to content

Setting up PropTools in Unity


Recommended Posts

At the time of writing, I've managed to kludge together a primitive Internal space, and manually positioned a couple of props by derping around with quaternion rotation. Obviously, constantly editing internal.cfg files to tweak prop positions isn't feasible in the long term, and so I would like to figure out how to set up the new PartTools/PropTools properly.

My request for assistance can be broken down into two major questions:


1) How do I set the hierarchy / scripts up correctly?

ksp_internals_proptools_help_01_by_sumghai-d7gsgiw.png

As can be seen in the annotated composite screenshot above, my hierarchy for Internal Spaces currently consists of the following

- Internals_FSPX, a GameObject basically used to organize all my internals in a nice place (in a similar manner that PartToolLibs_FSPX does for the part exteriors)

- Internal_KirsDockingModule, a GameObject specifically defining the FusTek Kirs Docking Module internal space entry. This contains various bits and pieces such as Kerbal transforms, internal cameras, double-click-to-focus collider hotspots and a simple internal light source.

- A Blender model prefab also called Internal_KirsDockingModule, the actual geometry of the internal space itself, sans props

- Props_Internal_KirsDockingModule, a GameObject that I assume is where props would be positioned via proxy bounding boxes

My main problem is that, after creating a simple prop (an endcap piece we'll call KarmonyHatchFrame), I am unable to access it via the PropTools window, nor can I export any internal configs. Furthermore, opening up the PropTools/PartTools windows results in a blank dialog that (literally) won't close unless I force Alt-F4 on it.

I know that I'm supposed to drag certain components / Mono scripts into the various GameObjects, but the process is frustratingly non-intuitive and obviously not providing the desired result. What am I missing here?


2) What do the numbers in the proxy line in the Prop configs mean?

Are they bounding box coordinates, dimensions, rotation angles or a combination of some/all of the above?

Edited by sumghai
Resolved.
Link to comment
Share on other sites

Which Parttools are you using there?

I'm using 0.20 myself, tried 0.23 and couldn't get it to stop throwing errors, so went back to 0.20. It's hiding in the 0.23 parttools thread somewhere.

Once you've got 0.20 parttools you can get a tab up in Unity which is parttools, and one of the options on it allows you to import an IVA model to work on the internals with. So once you've got the parttools tab working, start a new scene then import the IVA you want. It should be fairly simple from there.

Link to comment
Share on other sites

I have PartTools 0.20 installed.

I tried open up a tab for PartTools (via Tools -> KSP Part Tools), but all I get is the dreaded blank uncloseable dialog - no options to import IVAs, nothing. Starting a new scene did not help, either. I'll also note that my status bar and console start getting NullReferenceException: Object reference not set to an instance of an object errors.

I've tried completely uninstalling and reinstalling Unity, to no avail.

Link to comment
Share on other sites

I've finally determined the cause of the error, as detailed here.

Essentially, PartTools stumbled when it came across what it considered an improperly-formatted cfg file (i.e. Romfarer's Lazor system config.cfg). Temporarily removing said file from GameData whenever I need to do some editing now allows PartTools to load correctly.

I'll mark this as resolved, and inform Romfarer of the issue.

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