zer0Kerbal / ModularRocketSystems

A stock-alike parts pack that fills in a variety of gaps in the stock lineup of rocketry parts for Kerbal Space Program.
https://forum.kerbalspaceprogram.com/index.php?/topic/211992-*/
Creative Commons Attribution Share Alike 4.0 International
3 stars 2 forks source link

1.13.99.1 Additional Tasks #151

Closed zer0Kerbal closed 1 year ago

zer0Kerbal commented 1 year ago

Additional Release Tasks

Update Documentation

Update Social Media

Update Legal Mumbo Jumbo

this file: CC BY-NC-ND 4.0 by zer0Kerbal

ngx-ree commented 1 year ago

This release renamed many previous MRS parts, hence when trying to launch ships from editor the launch is declined saying it uses experimental (MRS) parts, which are not available. Is it enough to mass-rename those parts in .craft file, or is it necessary to rebuild ships in editor? Are more of such changes planned in future?

zer0Kerbal commented 1 year ago

@ngx-ree Yes, the .craft files are just text files. You should be able to rename the parts using notepad, npp, VSCode, Vim, or even regex find/replace. I did so with another .craft file for another mod recently with much success.

Would you be so kind as to copy'paste the edited .craft file here? I would include it in place of the existing one (providing no other mods are in the .craft file)

All the parts have their oldName in their part.cfg.

added issue #152 in ref

Planning on doing this next update, when that is will be in the near future, unless you get to it first.

ngx-ree commented 1 year ago

That's good news, thank you. If renaming parts is enough for the crafts to work again, it's quite a simple task to do.

I'm not sure if I fully understand your request about posting the edited .craft file. I have many crafts using MRS parts and, surely, I can paste one of them here if you need it. However, all of them use other mods too, so I don't know if it would help. Please let me know if I should put it here anyway.

zer0Kerbal commented 1 year ago

I thought you were referring to the included .craft files - however seems you were referring to your own craft files.

I also pondered some more and came up with a kludge fix. Edit config/ghostParts.cfg to match below. Doing so should unhide the original parts enough.

// ghostParts.cfg v1.0.0.0
// Modular Rocket Systems (MRS)
// created: 01 Mar 2023
// updated: 
//
// TEMPLATE: ghostParts.md v2.0.0.0
// created: 17 Aug 2017
// updated: 22 Feb 2023

// THIS FILE: CC BY-ND 4.0 by zer0Kerbal

// creates duplicate part to prevent save game issues because of a part name change
+PART[mrs-*]:NEEDS[ModularRocketSystems]:LAST[ModularRocketSystems]
{
    @name = #$oldName$
//  !TechRequired = DELETE
//  !entryCost = DELETE
//  @category = -1
//  %TechHidden = True
//  %entryCost = 0
    @title ^= :^:Kindly use new part numbers :
//  !manufacturer = DELETE
    @description = This part has been depreciated, kindly use new part.
    !tags = DELETE
}