Jump to content

[HELP] How to use PropTools in Unity?


CoffeeSE

Recommended Posts

As the title says, how do the Prop Tools in PartTools Version 0.20 work? Also, what are the orientations of the GameObject in Unity in relation to a Prop in KSP?

Edited by CoffeeSE
Link to comment
Share on other sites

No it's not that, I can't figure out how to get the Unity PropTools to work. The Unity [Tools>KSP PropTools] can see my internals.cfg file, but it can't import it into the Scene, the KSP PropTools opens, and I can select the internals.cfg, but when I click Spawn, Unity gives me a "Cannot create space" error.

Edited by CoffeeSE
Link to comment
Share on other sites

That tutorial was written by TouhouTorpedo, not porkjet.

Actually, I was talking about the discussion between porkjet and K3|Chris further into the thread. Unfortunately, looking back, I miss remembered it and it was more about creating props sorry. :(

Looking at your thread, have you tried setting the Dir URL to your gamedata and seeing if the squad stuff pops up when you click "open tools?" For me (I'm using PT 0.23 but the dialogue looks the same) having it set to game data brings up all squad and my own props/internals/etc in that box that opens.

Link to comment
Share on other sites

Wait, wait I got it. It writes to the internal.cfg, but the Quaternion rotations are still messed up and I can't specify the prop names in Unity, it has to be manually edited in. Do you know how to include the prop names in Unity and which way the GameObject arrows should face for each prop?

Link to comment
Share on other sites

Looking at your thread, have you tried setting the Dir URL to your gamedata and seeing if the squad stuff pops up when you click "open tools?" For me (I'm using PT 0.23 but the dialogue looks the same) having it set to game data brings up all squad and my own props/internals/etc in that box that opens.

I set my Dir URL to GameData, which works fine for regular PartTools (My GameData is located on an external HDD, while Unity is installed on the C:\ drive. Surely that doesn't matter, as long as I set the right path?).

When I click open tools, I get a blank window titled "Part Tools" that can't be dragged or closed (unless forcefully with Alt-F4). No SQUAD props/internals show up, nothing.

Perhaps it would be better if someone with a working setup took a screenshot of their hierachy, along with which components were assigned to which objects plus their associated settings, so that I can at least try to emulate them and see what the discrepancies are.

Just so you know, I've tried a fresh install of Unity 4.3 and PartTools 0.20, as well as starting a brand new project, but I still get blank Part Tools windows.

Edited by sumghai
Link to comment
Share on other sites

Untitled_zps56a54ab5.png

Gameobject just has the part tools component on it and is set to gamedata so that it can call on all internal spaces. When you have the part tools box spawn an internal space (in this case Soy), you use it's part tools.

I'm not sure why "open tools" is not working for you.

I'm also wondering, what's the reason for using part tools 0.20 over 0.23?

Edited by Orionkermin
Link to comment
Share on other sites

I'm going to try replicating your hierachy in just a sec.

I'm also wondering, what's the reason for using part tools 0.20 over 0.23?

According to TT, 0.23 throws some errors compared to 0.20. I briefly wondered if my blank PartTools window was what he meant by said errors.

Link to comment
Share on other sites

Eureka! I've got it!

It seems that for PartTools to work properly, it traverses through the .cfg files in the GameData directory, for internals and prop configurations. According to my error console, it seems that one particular file causes PartTools to stall:

untitled_1_by_sumghai-d7h680a.png

(The file in question is the settings file for Romfarer's Lazor System add-on, and isn't actually empty)

By temporarily removing the Romfarer config.cfg file from GameData, the PartTools window now loads all the internals and props assets.

Huge thanks to everyone for the help, guys - I'm going to inform Romfarer that his add-on is causing issues.

Link to comment
Share on other sites

http://i1276.photobucket.com/albums/y477/morrowindorion/Untitled_zps56a54ab5.png

Gameobject just has the part tools component on it and is set to gamedata so that it can call on all internal spaces. When you have the part tools box spawn an internal space (in this case Soy), you use it's part tools.

I'm not sure why "open tools" is not working for you.

I'm also wondering, what's the reason for using part tools 0.20 over 0.23?

Thank you, I got the part tools box open and working, but how do you get the individual props to show up in the "Props" tab? I don't see any there.

Link to comment
Share on other sites

Thank you, I got the part tools box open and working, but how do you get the individual props to show up in the "Props" tab? I don't see any there.

In the part tools window there is a setup tab. Click the Set data Dir button and set it to your gamedata directory. You may have to refresh it after that, but the props should show up.

Link to comment
Share on other sites

In the part tools window there is a setup tab. Click the Set data Dir button and set it to your gamedata directory. You may have to refresh it after that, but the props should show up.

Oh damnit I am not a smart man lol. The directory has to be set to the game's GameData! Thanks so much! :)

But it seems I can't make a internal.cfg from scratch? I can import an existing internal.cfg and edit and save it, but I can't create one in Unity and save it as I get a NullReferenceException error?

Link to comment
Share on other sites

Oh damnit I am not a smart man lol. The directory has to be set to the game's GameData! Thanks so much! :)

But it seems I can't make a internal.cfg from scratch? I can import an existing internal.cfg and edit and save it, but I can't create one in Unity and save it as I get a NullReferenceException error?

Yea, it's kind of dumb, you have to first create an internal.cfg wherever you're putting the model for your IVA. Then you can spawn it in and start adding props, it'll then add them to that .cfg when you press save to config. When you create it I think it needs to at least have a name and be defined as an internal space. Just look at the first couple lines of one of squad's and you should see what I mean. :)

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