Python program to change the root part of a KSP .craft file.

Needs Python 3.3.2+

Run: python reroot.py (craft file path/name) (part number to become root)

generates a new file with the new root part.

The part number you input is which part you want to be root, counting from 1. For now, gotta open the craft with a text editor, identify which part you need to be root and count them.

To help you, you gotta know that a part starts with a

PART
{

and soon there's a line that says partName = (something) which gives you a very good clue.

This is a very first working version and there's zero error tolerance. Backup your file (though it should be untouched).

All corrections and suggestions are welcome. Feel free to fork or translate this to c# to build a KSP mod! (i really want someone to do that!).

more info and discussion: http://forum.kerbalspaceprogram.com/showthread.php/48739-Solved!-How-to-change-the-root-part-of-a-craft!

Project Activity

See All Activity >

Follow KSP craft reRoot

KSP craft reRoot Web Site

You Might Also Like
Top-Rated Free CRM Software Icon
Top-Rated Free CRM Software

216,000+ customers in over 135 countries grow their businesses with HubSpot

HubSpot is an AI-powered customer platform with all the software, integrations, and resources you need to connect your marketing, sales, and customer service. HubSpot's connected platform enables you to grow your business faster by focusing on what matters most: your customers.
Get started free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of KSP craft reRoot!

Additional Project Details

Registered

2013-09-04