Jump to content

Testing/Debugging Plugins or Part Models Efficiently


Garoad

Recommended Posts

How do people do this without wasting a ton of time? Do we really have to build the plugin or 3d model, install it into the right folders as usual, start the game (takes forever!), go test, or is there a faster way to do our development cycles?

Can the game somehow re-load plugins or parts while it's running in windowed mode?

Link to comment
Share on other sites

As far as I know parts are loaded when you enter assembly building. ScenarioModules are loaded when you enter the scene they are working in. To test this theory, write a modification to part, go to space center and then back to assembly building and see if the changes are there.

Link to comment
Share on other sites

That would be good. I suppose it could be doing that by checking for changes each time. What I do notice is that when the game's first starting, a lot of the stuff it mentions seems to be part names.

Link to comment
Share on other sites

Doesn't seem to be the case that anything is re-loaded upon re-entering the assembly building. Even something simple like changing the name of a part didn't get picked up. So there's no way to speed up testing then? Just start the game, waste 1 minute for everything to reload, and test?

Link to comment
Share on other sites

Pretty much. I use a special testing version of the game that has almost every part deleted. There's a few things related to what I'm testing, but it still loads pretty fast.

Hopefully the incoming changes to the game database slated for 0.20 means parts can be edited and then reloaded while still in the game.

Link to comment
Share on other sites

  • 3 weeks later...
Hmm, I'm guessing you don't have a Steam version of the game? Don't know of a way to do a second install for a test version like that.

I've been working around it by creating 2x KSP folders, then using a junction point to point at the one I want to use.

So, create two (or more) folders like so:

blah\steamapps\common\Kerbal Space Program.Dev

blah\steamapps\common\Kerbal Space Program.MainGame

Then use mklink to create a junction point named "Kerbal Space Program" and point it at the appropriate folder:

blah\steamapps\common> mklink /j "Kerbal Space Program" "Kerbal Space Program.<xyz>"

If you're on Linux/Mac, you want a symbolic link: ln -s "Kerbal Space Program.<xyz>" "Kerbal Space Program"

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