Jump to content

Making changes to a module without restarting


Zander

Recommended Posts

Hi,

Im creating my own module in Visual Studio to handle some rocket functions I want automated (KOS is too laggy for what im doing). How can I test changes I make to the module, without having to restart the entire game?

Link to comment
Share on other sites

You can't. Just slim down your development KSP environment and add a monobehavoir that directly throws you into the testing situation. Technically it might be possible to load a new version of your assembly and modify you part's prefab, but you would still have to reload the scene and make sure to remove all other global stuff like event listeners manually. It doesn't seem worth the effort, though.

Link to comment
Share on other sites

Easy. Just open up the debug menu, go to "Database" and there should be an option called "reload all" Click it and it'll reload all of your addons!

This only reloads parts and their .cfg files. It doesn't work for .dll files.

Trigger Au has a good plugin for speeding up the loading process a bit in the way Faark described. There are a few these floating around other places too if you look. You can also setup a batch file to copy the newly built .dll to your gamedata folder and start KSP, which helps a little. But between those things and deleting unnecessary parts there isn't much you can do to make the development process quicker.

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