Jump to content

is this safe to do


Recommended Posts

I am like everyone else is having fun with the new version of KSP, but some of my crafts has parts on them that are no longer being seen like the Older version of mechjeb, or the the Orda Computer you might have used a months ago and have forgotten about.

so my question is, is it safe to go into the code and locate the bit that talks about the part you are having issues with and then remove it.

Example.

PART
{
part = Kosmos.Common.LED.Flood.Light_4293427702
partName = Part
pos = -1.525252,34.75948,-0.6835561
rot = -0.2181241,0.1928457,-0.9556647,-0.04401577
attRot = 0,0,-0.9999999,0
mir = 1,1,1
istg = 0
dstg = 0
sidx = -1
sqor = -1
attm = 1
sym = Kosmos.Common.LED.Flood.Light_4293427368
sym = Kosmos.Common.LED.Flood.Light_4293427322
sym = Kosmos.Common.LED.Flood.Light_4293427276
srfN = srfAttach,Mark1-2Pod_4293450842
EVENTS
{
}
ACTIONS
{
}
MODULE
{
name = ModuleLight
isEnabled = True
isOn = False
EVENTS
{
LightsOff
{
active = False
guiActive = True
guiIcon = Lights Off
guiName = Lights Off
category = Lights Off
guiActiveUnfocused = False
unfocusedRange = 2
externalToEVAOnly = True
}
LightsOn
{
active = True
guiActive = True
guiIcon = Lights On
guiName = Lights On
category = Lights On
guiActiveUnfocused = False
unfocusedRange = 2
externalToEVAOnly = True
}
}
ACTIONS
{
ToggleLightAction
{
actionGroup = Light
}
LightOnAction
{
actionGroup = Custom01
}
LightOffAction
{
actionGroup = None
}
}
}
}

Link to comment
Share on other sites

I have no idea if this would work. What you could do however is make a copy of the craft file, then remove the parts from the copy. If that works then great, but if not then you still have a copy. It shouldn't mess up your game either.

Link to comment
Share on other sites

If you're careful and make a backup, you should be fine.

I've edited many ships this way... :D

Just make sure when your remove a part to remove the references to it. Lemme explain :

- let's imagine you have an old mechjeb attached to a pod

- you remove the mechjeb part

- but you should check if your pod still mentions the mechjeb part and remove that reference

Cheers!

Link to comment
Share on other sites

Yeah, should be fine. Worst case you get the `Hello WorldHello World` error and have to restart KSP.

- Make a backup of your craft file.

- Find parts from mods that don't work.

- Copy their id `part = Kosmos.Common.LED.Flood.Light_4293427702`. From your snippet, I pulled out these:

  • Kosmos.Common.LED.Flood.Light_4293427702
  • Kosmos.Common.LED.Flood.Light_4293427368
  • Kosmos.Common.LED.Flood.Light_4293427322
  • Kosmos.Common.LED.Flood.Light_4293427276

- Delete those parts.

- Find references to the part id. `link = Kosmos.Common.LED.Flood.Light_4293427702`

- Delete the link records.

Link to comment
Share on other sites

It will work just fine as long as the parts you remove don't have any other parts attached to them. You have to remove the reference to them in the part they're attached to, then remove their whole PART{} entry.

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