Jump to content

[OSX/Win/Linux] TuneKSP - Disable unused parts, ivas, textures and assets.


Conti

Recommended Posts

Over the last few weeks I have been spending my spare time creating this little tool. I've done the best I can to explain it for now in the readme file linked below but to give you an idea of how this works here is an example of the results I get when I run this on my own installation of KSP with MANY mods installed:

$ php tuneksp.php -h

TuneKSP version 0.02

Usage:
-b --tune-building : Tune for VAB/SPH, Disable all IVA, Enable all Parts, Disable UR
-m --tune-mission : Tune for mission, Disable unused IVA/Parts, Tune UR
-e --enable-all : Enable all parts and iva.
-p --disable-parts : Disable unused parts.
-i --disable-iva : Disable unused iva.
-a --disable-all-iva : Disable all iva.
-ut --tune-universe : Tune active universe replacer textures.
-ud --disable-universe : Disable all universe replacer textures.
-v --verbose : Verbose Output.
-h --help : Display this message.

Tune for building:

$ php tuneksp.php -b
You have chosen to disable all IVAs. Would you like to use one IVA to temporarily replace the default part IVA for all parts which have an IVA view?
Note: Without any IVA you will not see kerbals or be able to switch to internal camera.

[0] = B9_Cockpit_M27_Internal
[1] = B9_Cockpit_MK2_Internal
[2] = B9_Cockpit_S2_Internal
[3] = launchpadCockpit
[4] = crewCabinInternals
[5] = cupolaInternal
[6] = GenericSpace1
[7] = GenericSpace3
[8] = landerCabinInternals
[9] = landerCabinSmallInternal
[10] = mk1CockpitInternal
[11] = mk1PodCockpit
[12] = PodCockpit
[13] = crewtestInternals
[14] = Do not use any IVA views.

Enter the numeric for the IVA you wish to use: 14
----------------------------------------
Total Parts : 489
Active Parts: 489
Missing Parts: 1
Total IVA : 14
Active IVA : 0
Total Plugins : 26
Total Craft Files : 40
Total Texture Size : 1219.24 MB
Active Texture Size : 745.69 MB
Total Mesh Size : 42.32 MB
Active Mesh Size : 36.56 MB
Total Audio Size : 11.25 MB
----------------------------------------
WARNING: The following parts are missing
----------------------------------------
KAS_Connector1
----------------------------------------

Notice that it is warning me that KAS_Connector1 is missing, this is because I still have some .craft files which were made with the older version of KAS which I have replaced with the latest KAS4.2 recently.

Tune for mission:

$ php tuneksp.php -m
Available universe replacement textures:

The following replacement groups are enabled:
Skybox, Kerbin, Mun, Minmus

[0] = Bop
[1] = Gilly
[2] = Ike
[3] = Laythe
[4] = Minmus
[5] = Mun
[6] = Pol
[7] = Tylo
[8] = Vall
[9] = Dres
[10] = Duna
[11] = Eeloo
[12] = Eve
[13] = Jool
[14] = Kerbin
[15] = Moho
[16] = Skybox

[a] = Enable All
[d] = Disable All
[s] = Save Configuration

Enter the numeric for the texture group you wish to enable/disable or a/d/s: s
Saving Universe Replacer Configuration...
----------------------------------------
Total Parts : 489
Active Parts: 145
Missing Parts: 1
Total IVA : 14
Active IVA : 5
Total Plugins : 26
Total Craft Files : 40
Total Texture Size : 1219.24 MB
Active Texture Size : 592.59 MB
Total Mesh Size : 42.32 MB
Active Mesh Size : 22.09 MB
Total Audio Size : 11.25 MB
----------------------------------------
WARNING: The following parts are missing
----------------------------------------
KAS_Connector1
----------------------------------------

Please review the readme for more information, system requirements and installation instructions. If you have any questions or suggestions feel free to ask.

Readme: https://github.com/Conti/TuneKSP/blob/master/README.md

License: https://github.com/Conti/TuneKSP/blob/master/LICENSE.md

Download: https://github.com/Conti/TuneKSP/releases

Changelog:

0.02 - Added windows support

0.01 - Initial release

Edited by Conti
Added windows support.
Link to comment
Share on other sites

Nice idea....

...but how are we suppose to run php-scripts under a windows OS? As far as i know, they are usually processed by servers and the result is shown as web-page (most cases anyway).

The instructions are inside of the readme. It is as simple as installing php with the windows installer, opening cmd and running it just like any other script on any other platform.

PHP is often perceived to be a language only for web servers but it is quite useful as a shell scripting language, particularly because it functions across all platforms and easy to work with.

Edited by Conti
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...