Sigma88

[WIP][1.3.0] Sigma SciDefRenamer

Recommended Posts

Sigma-SciDefRenamer.svg KSP-1.3.0-orange.svg dev.version-%40GitHub-lightgrey.svg total.svg Sigma88Mods&style=social

 

Sigma SciDefRenamer

 

This mod is designed to make it easier to edit science definitions.

 

Downloads

[Latest Release]


If you want to contribute to my caffeine addiction:
iSFDI5f.png r8916yD.png
Don't expect anything in return other than my sincere gratitude. :)

 

 

Changelog

**v0.3.1**

 - Updated to KSP 1.3.0


v0.3.0

- Added automatic export of science definitions
- Added new function: Text


v0.2.0

- Added README.txt with informations about the syntax
- Added a check to avoid nodes with wrong syntax
- Added new functions:
    > Copy
    > Delete
    > Replace
    > Swap


v0.1.0

- First Beta Release

 

 

Info and FAQs

Config Structure

Spoiler

SigmaSciDefRenamer
{
    Copy
    {
    	SOURCE = source_planet_name
        NEW = new_planet_name
    }
    Delete
    {
    	NAME = planet_name
    }
    Rename
    {
    	OLD = old_planet_name
        NEW = new_planet_name
    }
    Replace
    {
    	FIND = string_to_be_replaced
    	REPLACE = replacement_string
        PLANET = planet_name
    }
    Swap
    {
    	THIS = planet_name
        THAT = planet_name
    }
    Text
    {
    	FIND = string_to_be_replaced
    	REPLACE = replacement_string
        PLANET = planet_name
    }
}

 

 

You can find a more detailed description of how all the features work HERE

 

License

All Rights Reserved

Edited by Sigma88
Updating to 0.3.1

Share this post


Link to post
Share on other sites

Some details, please.

Also, pics would be nice 

Edited by linuxgurugamer

Share this post


Link to post
Share on other sites
20 minutes ago, linuxgurugamer said:

Some details, please.

Also, pics would be nice 

working on it

I needed the thread number for the files to put in the mod :)

EDIT: 

here you go:

Screenshot%202017-05-03%2023.30.45.png?dl=1

 

pretty self explanatory really...

in this example I did this:

1 - changed the name of Kerbin to Earth in all science defs (so they don't work on Kerbin)

2- changed the name of Laythe to Kerbin in all science defs (so they work on Kerbin instead)

 

you can see the Laythe EVA report was shown on Kerbin in the pic

Edited by Sigma88

Share this post


Link to post
Share on other sites

After some thought I decided to add some functionality to this:

 

1- Rename

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

This is the only current feature:

Changes all science defs from one planet (OLD) to an other (NEW)

 

2- Copy

SigmaSciDefRenamer
{
    Copy
    {
    	SOURCE = source_planet_name
        NEW = new_planet_name
    }
}

This is the same of Rename, except that it creates a new set of science defs for the NEW planet. which means the OLD planet will get to keep its science defs

 

3- Delete

SigmaSciDefRenamer
{
    Delete
    {
    	NAME = planet_name
    }
}

This will delete all science defs for a certain planet

 

4- Replace

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

This will find and replace anything in the key, so you can replace biomes, situations, planet names etc...

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

 

5- Copy

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

This will swap the science definitions of two planets

 

6- Text

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

This find and replace text in the science reports.

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

 

if there are some features that you think should be added, feel free to suggest them down here!

 

Edited by Sigma88

Share this post


Link to post
Share on other sites

Version 0.2 containing everything listed in the post above is available for download now!

Links are up there in the OP

 

Changelog:

**v0.2.0**

- Added README.txt with informations about the syntax
- Added a check to avoid nodes with wrong syntax
- Added new functions:
    > Copy
    > Delete
    > Replace
    > Swap

 

Edited by Sigma88

Share this post


Link to post
Share on other sites

wrong thread :D

Edited by Sigma88

Share this post


Link to post
Share on other sites

Sigma SciDefRenamer v0.3.0

This release adds a new function called Text, to find and replace strings inside the text of science definitions.

It also adds automatic export of science defs.

 

all the links are available in the OP

 

If you want to follow the development of my mods:  Sigma88Mods&style=social

If you want to buy me a cup of coffee:  iSFDI5f.png r8916yD.png 

       

 

Changelog:

v0.3.0

- Added automatic export of science definitions
- Added new function: Text

 

Share this post


Link to post
Share on other sites

Updated to KSP 1.3.0 (just needed a recompile)

Share this post


Link to post
Share on other sites

KSP 1.3.1 GitHub Releases Follow @Sigma88Mods On Twitter Discord Invite

 

  Sigma SciDefRenamer v0.3.2
 

Changelog

Changelog

 

v0.3.2

- Updated to KSP 1.3.1

 

Latest Release
Download
 
Follow on Twitter
Follow
Discord Invite
Discuss
GBPEURUSD
Donate

Share this post


Link to post
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.