sarbian

[1.x] DebugStuff - (2018-03-13) See the hidden secrets of the game objects

Recommended Posts

Debug stuff is a simple plugin that allows you to display the transform & colliders of a part in wireframe and display the part Hierarchy in a window. It was created to help understanding how the new legs work.

The window is opened with ALT P and you select an Object by holding shift and moving the cursor over your ship. The dump button will save the content of the window to your log. You can change the current mode between PART, UI and OBJECT. Each one will target specific type of object. The -/+ button limit how far up in the object parent the display goes.

Licence : MIT

Source : https://github.com/sarbian/DebugStuff

Download : DebugStuff-1.5.0.0.zip

 

DebugStuff1.png DebugStuff2.png

 

DebugStuff3.pngDebugStuff4.png

Edited by sarbian

Share this post


Link to post
Share on other sites

Can't get the window to come up, tried left and right ALT-P... definitely right keys looking from teh source. No messages in debug log when pressing ALT-P

Edited by nli2work

Share this post


Link to post
Share on other sites

Sorry, I missed a commit. Get it again with the OP link

Share this post


Link to post
Share on other sites

Just to double check, you reuploaded the fixed version with the working ALT-P yes? And are we talking ALT-P or MOD-P?

FYI: ALT-P conflicts with the Vessel Mover mod by Baha; MOD-P conflicts with Part Commander and Pathfinder.:P

I know this is probably a one and done type deal and you're off busy slaying 1.1 krakens or what have you, but any chance of some type basic out of game little settings file to set your keybind (in the off chance that's the issue, if not, ignore request)? Obviously, low priority, back of the line, I know. It's just that I have high hopes for this mod, not having access to UNITY, but currently, no workie workie.

I did the download again (not the source), unzipped, put the debug folder with the dll + license in my game data folder. Nada. Tried in flight scene and vab.

Any suggestions anyone has would be much appreciated.

Cheers.

Linux 64 bit btw, still using the ancient and out dated 1.0.5...wait, here's a thought - does this even work with 1.0.5 or is it for 1.1-pre only?

@sarbianSo when you say 1.1 in the title, do you mean only 1.1 as in no 1.0.5? Damn I'm a swift one. Anyway, as I mentioned above, ALT-P & MOD-P have a number of conflicts, which may or may not concern you. I look forward to trying this in 1.1.:D

Cheers.

Share this post


Link to post
Share on other sites

So where is the .Log file located after dump?

 

Share this post


Link to post
Share on other sites
1 hour ago, Redneck said:

So where is the .Log file located after dump?

 

 

It just dumps to KSP.log.

Share this post


Link to post
Share on other sites

fantastic, great work !! delicious

Edited by RaendyLeBeau

Share this post


Link to post
Share on other sites
28 minutes ago, sarbian said:

1.1 is out. You can switch to UI mode (yes the button are horrible, I ll do better next time) and display the hierarchy of the stock UI. (Also a GameObject mode but it is not finished)

https://ksp.sarbian.com/jenkins/job/DebugStuff/3/artifact/DebugStuff-1.1.0.0.zip

 

 

You just got 2 likes. One for the mod, and one for the toolbar button :)

Share this post


Link to post
Share on other sites

DebugStuff-1.2.0.0.zip

Adds a working object mode (but you can only select object with a collider), improve the drawing performance and allow switching between collider and mesh display.

Be aware that the object mode has no limit on the hierarchy, so it can make thing a "bit" slow if you select an item that will bring the whole scene with it. I ll add a limit later. And I will cull what is not visible too ...

Edited by sarbian

Share this post


Link to post
Share on other sites

And now 1.3 is out.

  • Bugs fix to the Object mode.
  • Limits to how much parents are displayed in object and UI mode
  • Swtich to turn On/Off each displays
  • Bounds displays (a lot faster than mesh)

Share this post


Link to post
Share on other sites

Yes, but I am afraid of making the window a bit too big.

Share this post


Link to post
Share on other sites

Damn, this will be helpful. @sarbian, you deserve several medals.

Share this post


Link to post
Share on other sites

This Tool is really really helpful to understand what I'm rotating wrong constantly in Unity and Blender ^^

 

THX for sharing

Share this post


Link to post
Share on other sites

Woah! Do you think this still runs in 1.2 or would it need an update? - I'm going to test it on my install in a few.

EDIT: @sarbian it appears as though only the "Labels" button functions in 1.2. - I cannot view colliders or other options when they are selected and shift over parts. :(

Edited by Avera9eJoe

Share this post


Link to post
Share on other sites

yeah sadly but never fear for our hero sarbian will save the day. whether its smokescreen or mechjeb or tiny obscure mods like this I have the utmost confidence that it will be taken care of. 

Share this post


Link to post
Share on other sites

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.