Skip to content

Changes the target planet for selected Science Definitions

License

Notifications You must be signed in to change notification settings

Sigma88/Sigma-SciDefRenamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sigma SciDefRenamer

Makes it easier to edit science definitions.

KSP Forum Thread: http://forum.kerbalspaceprogram.com/index.php?/topic/160151-0/

Download Latest Release: https://github.com/Sigma88/Sigma-SciDefRenamer/releases/latest

Dev version: https://github.com/Sigma88/Sigma-SciDefRenamer/tree/Development

Settings

SigmaSciDefRenamer
{
}

This is the root node, you can add as many as you want, and they can be modified using ModuleManager patches.

The root node can contain the following functions:

  • Copy

    SigmaSciDefRenamer
    {
        Rename
        {
            SOURCE = old_planet_name
            NEW = new_planet_name
        }
    }
    

    Creates a new set of science definitions, copied from planet SOURCE, and assigns them to planet NEW.

  • Delete

    SigmaSciDefRenamer
    {
        Delete
        {
            NAME = planet_name
        }
    }
    

    Deletes all science definitions of planet NAME.

  • Rename

    SigmaSciDefRenamer
    {
        Rename
        {
            OLD = old_planet_name
            NEW = new_planet_name
        }
    }
    

    Changes all science defs from planet OLD to planet NEW.

  • Replace

    SigmaSciDefRenamer
    {
        Replace
        {
            FIND = string_to_be_replaced
            REPLACE = replacement_string
            PLANET = planet_name
        }
    }
    

    Finds and replaces string FIND with string REPLACE in the key.

    String PLANET is optional, if omitted the changes will apply to all planets.

  • Swap

    SigmaSciDefRenamer
    {
        Swap
        {
            THIS = planet_name
            THAT = planet_name
        }
    }
    

    Swaps the science definitions of planets THIS and THAT.

  • Text

    SigmaSciDefRenamer
    {
        Text
        {
            FIND = string_to_be_replaced
            REPLACE = replacement_string
            PLANET = planet_name
        }
    }
    

    Finds and replaces string FIND with string REPLACE in the science report text.

    String PLANET is optional, if omitted the changes will apply to all planets.


    NOTE:

  • You can fit multiple functions in a single SciDefRenamer node.

  • Functions will be executed in order.

About

Changes the target planet for selected Science Definitions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages