Jump to content

Fun with Save File Editing (Instant Orbits for 0.14)


JellyCubes

Recommended Posts

Instant orbits in 0.14 just got a whole lot easier now since orbital information is stored in the save file. Custom parts may be able to give an instant orbit, but since there\'s no documentation available right now, manual editing will have to suffice. No Battlestar Galactica style jump drives just yet.

I recommend using an editor such as Notepad++ to edit save files.

Instant Orbits

Launch a ship, and while still on the launchpad return to the Space Centre. Open the persistance.sfs file and search for the name of the ship you just launched. You should have something like this:


VESSEL {
name = Instant Orbiter
sit = PRELAUNCH
landed = True
landedAt = LaunchPad
splashed = False
met = 0
lct = 4.17999990656972
root = 0
pos = 0,0,0
lat = -0.236453328375202
lon = 27.8244657605096
alt = 66.4334788515698
rot = 0.3673681,0.6042479,0.6059003,-0.3644312
CoM = 0.0008940728,-4.480832,-0.007221261
stg = 1
cPch = 0, FLOAT
cHdg = 0, FLOAT
cMod = 1, INT
ORBIT {
SMA = 300809.642266737
ECC = 0.994822866051143
INC = 0.236455925375334
LPE = 90.2300765984522
LAN = 117.664053966235
MNA = 3.14159348003525
EPH = 4.17999990656972
REF = 1
OBJ = 0
}

Change the sit, landed and landedAt fields to:

	sit = ORBITING
landed = false
landedAt =

Then under the ORBIT section, change the parameters to whatever you want.

SMA = semi-major axis

ECC = eccentricity

INC = inclination

LPE = longitude of periapsis?

LAN = longitude of ascending node

MNA = mean anomaly?

EPH = epoch

REF = body the spacecraft is orbiting (0 for Kerbol, 1 for Kerbin, 2 for Mun)

OBJ = what kind of object spacecraft is (0 for a controllable ship, 1 for ship to be debris)

Link to comment
Share on other sites

That\'s pretty awesome. I tried editing it to place one of my ships in munar orbit, but must\'ve done something wrong as I couldn\'t launch ships and everything was gone in the tracking station, so I had to replace the save file with my backup.

Is anyone up for creating some preset scripts so we could copy those values directly into our ships without figuring it all out ourselves?

EDIT: I fixed my problem. use Notepad++, people!

Have some orbital values!

Here\'s a perfectly circular 100km orbit of Kerbin:

SMA = 700000

ECC = 0

INC = 180

LPE = 340.518331561772

LAN = 81.2190688665883

MNA = 2.11222363842244

EPH = 39.9399991072715

REF = 1

OBJ = 0

This is a 700m orbit of the mun:

SMA = 200700

ECC = 0

INC = 180

LPE = 340.518331561772

LAN = 81.2190688665883

MNA = 2.11222363842244

EPH = 39.9399991072715

REF = 2

OBJ = 0

And a 10,000m orbit of the mun:

SMA = 210000

ECC = 0

INC = 180

LPE = 340.518331561772

LAN = 81.2190688665883

MNA = 2.11222363842244

EPH = 39.9399991072715

REF = 2

OBJ = 0

And heres a orbit of Kerbol, at the height of Kerbin:

SMA = 13600000000

ECC = 0

INC = 180

LPE = 340.518331561772

LAN = 81.2190688665883

MNA = 2.11222363842244

EPH = 39.9399991072715

REF = 2

OBJ = 0

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

i tried this (on the 14.3 build) and now i lost all my flights AND i cant exit the tracking screen, how do i fix this as i didnt back up my persistent saves

Delete the ship you did it on, but did you put in ORBITING or Orbiting? ( it does that if you don\'t do it all caps)

-JD

Link to comment
Share on other sites

  • 2 weeks later...

ok i changed the file but what do i need to do now? i take it i restart the game right? then the object should be in the tracking station right?

So far i i have modded the pr file to look like this

VESSEL {

name = SSK1

sit = ORBITING

landed = false

landedAt =

splashed =

met = 0

lct = 118.099997360259

root = 0

lat = -0.102561869965503

lon = -74.5753264318003

alt = 80.1480613780441

hgt = 11.72862

nrm = -0.02665916,0.9449844,-0.3260271

rot = -0.5766309,-0.1095791,-0.09906711,0.803539

CoM = 0.0293909,-3.605458,0.7987407

stg = 3

prst = False

cPch = 0, FLOAT

cHdg = 0, FLOAT

cMod = -1, INT

ORBIT {

SMA = 700000

ECC = 0

INC = 0

LPE = 340.518331561772

LAN = 81.2190688665883

MNA = 2.11222363842244

EPH = 39.9399991072715

REF = 1

OBJ = 0

i left the game and re-launched it

i go to the tracking station and i get stuck there and there is nothing orbiting kerbin

Link to comment
Share on other sites

  • 2 weeks later...

Anyone have the coords to a flat area on the Mun so I can edit in the massive MunBase I\'ve been unsuccessfully trying to launch from Kerbin orbit? I mean, I try and copy in the coords to the drones I have crawling over the Mun, and I end up usually stuck in the ground, and then exploding violently.

Link to comment
Share on other sites

  • 1 month later...

Edit* I\'ve now totally screwed my persistance and quicksave, nothing will appear now, but I have the 2 files with all the text they need, could this be because its set to open with notepad for some reason? because it opens with notepad, it now just says persistance and not persistance.sfs, could that be why?

*Edit* Now! I have fixed it. As a note to some people doing this, be really careful with what you are doing. If it does not work after, and things are missing, try launching a craft, and exiting a program. Next go to saves, and if it created a new persistant file, look at the spelling of that, delete it, and rename your original to that. That was my problem, renamed it wrong and wouldn\'t work, but really, be careful with this.

Link to comment
Share on other sites

If you guys have PowerTech mod and would like 8 satellites in geosynched orbit at 45 degrees apart, take this:


{
pid = 68aad3b6ac794904b8ed2679293ab1c0
name = PowerSat Satellite Geosynch 1
sit = ORBITING
landed = False
landedAt =
splashed = False
met = 100.339997757226
lct = 22868.687808533
root = 0
lat = 90
lon = 0
alt = 0
hgt = -1
nrm = -1.835091E-06,-0.9999986,-0.001777759
rot = -0.4842044,0.483028,-0.5160213,0.5157056
CoM = 0,0,0
stg = 0
prst = False
ORBIT
{
SMA = 3468400
ECC = 0.00005
INC = 0
LPE = 0
LAN = 0
MNA = 0
EPH = 0
REF = 1
OBJ = 0
}
PART
{
name = PowerSat
uid = 4294886012
parent = 0
position = 0,0,0
rotation = 0,0,0,1
mirror = 1,1,1
istg = 1
dstg = 1
sqor = 1
sidx = 0
attm = 0
srfN = None, -1
attN = None, -1
attN = None, -1
mass = 1.4
temp = 226.9565
expt = 0.5
state = 1
connected = True
attached = False
SatState = 3, INT
panelDeployState = 1, FLOAT
panelRotateState = 0.8229489, FLOAT
attitudeLocked = True, BOOL
showAsActiveVessel = True, BOOL
}
}
VESSEL
{
pid = 68aad3b6ac794904b8ed2679293ab1c0
name = PowerSat Satellite Geosynch 2
sit = ORBITING
landed = False
landedAt =
splashed = False
met = 100.339997757226
lct = 22868.687808533
root = 0
lat = 90
lon = 0
alt = 0
hgt = -1
nrm = -1.835091E-06,-0.9999986,-0.001777759
rot = -0.4842044,0.483028,-0.5160213,0.5157056
CoM = 0,0,0
stg = 0
prst = False
ORBIT
{
SMA = 3468400
ECC = 0.00005
INC = 0
LPE = 0
LAN = 0
MNA = 0
EPH = 2699.78
REF = 1
OBJ = 0
}
PART
{
name = PowerSat
uid = 4294886012
parent = 0
position = 0,0,0
rotation = 0,0,0,1
mirror = 1,1,1
istg = 1
dstg = 1
sqor = 1
sidx = 0
attm = 0
srfN = None, -1
attN = None, -1
attN = None, -1
mass = 1.4
temp = 226.9565
expt = 0.5
state = 1
connected = True
attached = False
SatState = 3, INT
panelDeployState = 1, FLOAT
panelRotateState = 0.8229489, FLOAT
attitudeLocked = True, BOOL
showAsActiveVessel = True, BOOL
}
}
VESSEL
{
pid = 68aad3b6ac794904b8ed2679293ab1c0
name = PowerSat Satellite Geosynch 3
sit = ORBITING
landed = False
landedAt =
splashed = False
met = 100.339997757226
lct = 22868.687808533
root = 0
lat = 90
lon = 0
alt = 0
hgt = -1
nrm = -1.835091E-06,-0.9999986,-0.001777759
rot = -0.4842044,0.483028,-0.5160213,0.5157056
CoM = 0,0,0
stg = 0
prst = False
ORBIT
{
SMA = 3468400
ECC = 0.00005
INC = 0
LPE = 0
LAN = 0
MNA = 0
EPH = 5399.56
REF = 1
OBJ = 0
}
PART
{
name = PowerSat
uid = 4294886012
parent = 0
position = 0,0,0
rotation = 0,0,0,1
mirror = 1,1,1
istg = 1
dstg = 1
sqor = 1
sidx = 0
attm = 0
srfN = None, -1
attN = None, -1
attN = None, -1
mass = 1.4
temp = 226.9565
expt = 0.5
state = 1
connected = True
attached = False
SatState = 3, INT
panelDeployState = 1, FLOAT
panelRotateState = 0.8229489, FLOAT
attitudeLocked = True, BOOL
showAsActiveVessel = True, BOOL
}
}
VESSEL
{
pid = 68aad3b6ac794904b8ed2679293ab1c0
name = PowerSat Satellite Geosynch 4
sit = ORBITING
landed = False
landedAt =
splashed = False
met = 100.339997757226
lct = 22868.687808533
root = 0
lat = 90
lon = 0
alt = 0
hgt = -1
nrm = -1.835091E-06,-0.9999986,-0.001777759
rot = -0.4842044,0.483028,-0.5160213,0.5157056
CoM = 0,0,0
stg = 0
prst = False
ORBIT
{
SMA = 3468400
ECC = 0.00005
INC = 0
LPE = 0
LAN = 0
MNA = 0
EPH = 8099.34
REF = 1
OBJ = 0
}
PART
{
name = PowerSat
uid = 4294886012
parent = 0
position = 0,0,0
rotation = 0,0,0,1
mirror = 1,1,1
istg = 1
dstg = 1
sqor = 1
sidx = 0
attm = 0
srfN = None, -1
attN = None, -1
attN = None, -1
mass = 1.4
temp = 226.9565
expt = 0.5
state = 1
connected = True
attached = False
SatState = 3, INT
panelDeployState = 1, FLOAT
panelRotateState = 0.8229489, FLOAT
attitudeLocked = True, BOOL
showAsActiveVessel = True, BOOL
}
}
VESSEL
{
pid = 68aad3b6ac794904b8ed2679293ab1c0
name = PowerSat Satellite Geosynch 5
sit = ORBITING
landed = False
landedAt =
splashed = False
met = 100.339997757226
lct = 22868.687808533
root = 0
lat = 90
lon = 0
alt = 0
hgt = -1
nrm = -1.835091E-06,-0.9999986,-0.001777759
rot = -0.4842044,0.483028,-0.5160213,0.5157056
CoM = 0,0,0
stg = 0
prst = False
ORBIT
{
SMA = 3468400
ECC = 0.00005
INC = 0
LPE = 0
LAN = 0
MNA = 0
EPH = 10799.12
REF = 1
OBJ = 0
}
PART
{
name = PowerSat
uid = 4294886012
parent = 0
position = 0,0,0
rotation = 0,0,0,1
mirror = 1,1,1
istg = 1
dstg = 1
sqor = 1
sidx = 0
attm = 0
srfN = None, -1
attN = None, -1
attN = None, -1
mass = 1.4
temp = 226.9565
expt = 0.5
state = 1
connected = True
attached = False
SatState = 3, INT
panelDeployState = 1, FLOAT
panelRotateState = 0.8229489, FLOAT
attitudeLocked = True, BOOL
showAsActiveVessel = True, BOOL
}
}
VESSEL
{
pid = 68aad3b6ac794904b8ed2679293ab1c0
name = PowerSat Satellite Geosynch 6
sit = ORBITING
landed = False
landedAt =
splashed = False
met = 100.339997757226
lct = 22868.687808533
root = 0
lat = 90
lon = 0
alt = 0
hgt = -1
nrm = -1.835091E-06,-0.9999986,-0.001777759
rot = -0.4842044,0.483028,-0.5160213,0.5157056
CoM = 0,0,0
stg = 0
prst = False
ORBIT
{
SMA = 3468400
ECC = 0.00005
INC = 0
LPE = 0
LAN = 0
MNA = 0
EPH = 13498.9
REF = 1
OBJ = 0
}
PART
{
name = PowerSat
uid = 4294886012
parent = 0
position = 0,0,0
rotation = 0,0,0,1
mirror = 1,1,1
istg = 1
dstg = 1
sqor = 1
sidx = 0
attm = 0
srfN = None, -1
attN = None, -1
attN = None, -1
mass = 1.4
temp = 226.9565
expt = 0.5
state = 1
connected = True
attached = False
SatState = 3, INT
panelDeployState = 1, FLOAT
panelRotateState = 0.8229489, FLOAT
attitudeLocked = True, BOOL
showAsActiveVessel = True, BOOL
}
}
VESSEL
{
pid = 68aad3b6ac794904b8ed2679293ab1c0
name = PowerSat Satellite Geosynch 7
sit = ORBITING
landed = False
landedAt =
splashed = False
met = 100.339997757226
lct = 22868.687808533
root = 0
lat = 90
lon = 0
alt = 0
hgt = -1
nrm = -1.835091E-06,-0.9999986,-0.001777759
rot = -0.4842044,0.483028,-0.5160213,0.5157056
CoM = 0,0,0
stg = 0
prst = False
ORBIT
{
SMA = 3468400
ECC = 0.00005
INC = 0
LPE = 0
LAN = 0
MNA = 0
EPH = 16198.68
REF = 1
OBJ = 0
}
PART
{
name = PowerSat
uid = 4294886012
parent = 0
position = 0,0,0
rotation = 0,0,0,1
mirror = 1,1,1
istg = 1
dstg = 1
sqor = 1
sidx = 0
attm = 0
srfN = None, -1
attN = None, -1
attN = None, -1
mass = 1.4
temp = 226.9565
expt = 0.5
state = 1
connected = True
attached = False
SatState = 3, INT
panelDeployState = 1, FLOAT
panelRotateState = 0.8229489, FLOAT
attitudeLocked = True, BOOL
showAsActiveVessel = True, BOOL
}
}
VESSEL
{
pid = 68aad3b6ac794904b8ed2679293ab1c0
name = PowerSat Satellite Geosynch 8
sit = ORBITING
landed = False
landedAt =
splashed = False
met = 100.339997757226
lct = 22868.687808533
root = 0
lat = 90
lon = 0
alt = 0
hgt = -1
nrm = -1.835091E-06,-0.9999986,-0.001777759
rot = -0.4842044,0.483028,-0.5160213,0.5157056
CoM = 0,0,0
stg = 0
prst = False
ORBIT
{
SMA = 3468400
ECC = 0.00005
INC = 0
LPE = 0
LAN = 0
MNA = 0
EPH = 18898.46
REF = 1
OBJ = 0
}
PART
{
name = PowerSat
uid = 4294886012
parent = 0
position = 0,0,0
rotation = 0,0,0,1
mirror = 1,1,1
istg = 1
dstg = 1
sqor = 1
sidx = 0
attm = 0
srfN = None, -1
attN = None, -1
attN = None, -1
mass = 1.4
temp = 226.9565
expt = 0.5
state = 1
connected = True
attached = False
SatState = 3, INT
panelDeployState = 1, FLOAT
panelRotateState = 0.8229489, FLOAT
attitudeLocked = True, BOOL
showAsActiveVessel = True, BOOL
}
}
VESSEL

;)

Link to comment
Share on other sites

  • 1 month later...

If you guys have PowerTech mod and would like 8 satellites in geosynched orbit at 45 degrees apart, take this:

thank you, i\'ve been looking for something like this!

Link to comment
Share on other sites

  • 2 weeks later...

Just curious, is it possible to get an object in a perfect orbit or does the time warp throw it off? I've been trying to mess with the settings then toss it in 100000x warp and the orbit always starts to degrade, granted its not by much but I want to get a perfect geosynchronous satellite network in place that I don't have to keep tidying up.

Link to comment
Share on other sites

  • 2 weeks later...

VESSEL

{

pid = 9e3be53ed1bb4a81b70a1a6f4374a25b

name = Untitled Space Craft

sit = LANDED

landed = True

landedAt = MUN

splashed = False

met = 115.639997411519

lct = 4868738.35128386

root = 0

lat = -0.113469229663347

lon = -74.5763541328542

alt = 66.1484590520849

hgt = 1.530396

nrm = -0.0006945952,0.999988,-0.004844558

rot = 0.6935845,0.05760028,0.1325895,-0.7057214

CoM = 3.745215E-08,-0.01171194,0.1796744

stg = 0

prst = False

eva = False

ORBIT

{

SMA = 100045.636283099

ECC = 0.999748747856979

INC = 0.113418086839265

LPE = 90.0000000000025

LAN = 256.822716959233

MNA = 3.14159265358979

EPH = 4868853.99128127

REF = 2

OBJ = 0

}

i type this but when i go on ksp im inside of the mun

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...