Jump to content

[WIP] Config Refinig Tool


prog

Recommended Posts

I made this tool for personal use and then realized that it could be useful for someone else.

Main goal of Config Refinig Tool is namely to refine and adjust configuration files of KSP in a bunch of different ways before you even start a game.

Current feature list:

- automated backup so all changes could be reverted

- basic modlist change detection so one could put new mod into gamedata folder and just run refining tool one more time

- config refinement - old configs are all get removed and replaced with generated ones

- config adjustment - generated configuration files could contain wide variety of tweaks

- simple scripting language for making adjustments while generating configs (Lua with simplest API possible)

- basic link counting functionality so all unlinked parts, techtree nodes, resources and anything else could be automatically removed from generated config

- basic ModuleManager config compatibility so some simple MM patches could be recognized and applied to generated config without MM

Pending feature list before release is possible:

- UI or at least a way to configure all hardcoded things I made for personal use

- full ModuleManager config compatibility so one could have MM-style patches without MM itself. So, yes, all mods depending on MM will be compatible with Config Refinig Tool without additional effort. And it's good alternative to all that scary Lua things as well.

- better Lua sandbox so no one could use lua script to do something outside of KSP game data folder. Actually, sandbox will be restricted to changes in config files only and even more, writing to config files is outside of sandbox scope so no way to write tricky binary to cfg file instead of actual config.

Example use-cases:

- to really remove all that unused parts from config files instead of just making them unreachable

- to perform some math on values, for example to recalculate Firespitter FSfuelSwitch tank costs avoiding "negative part cost" problems or to make any wide-range balancing

- to ban and then remove from configs any part or module or resource or anything you don't like, for example I used this to remove all KAS grab modules from parts when KIS is installed and to remove some unbalanced/buggy parts from other mods without hand-editing of KSP configs

Pros:

- it's not runtime plugin but standalone application so you run it once and then use generated config files until you want to change your mods

- it could slightly speed up loading and reduce memory usage

- it will be completely opensource once released

Cons:

- it's freaking standalone application so you HAVE to run it every time you change list of your mods or update one of mods

- it could have compatibility issues with some mods

- it's written using Java

No ETA for release yet, but surely not before KSP 1.0.

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