Docking Revisited
I have been trying some of the docking tricks posted in this forum and whilst they allow the ship to dock, I am still experiencing some problems.
I know the HpMount hardpoint is used to determine where the bottom of the ship is because changing it solved my ship sinking into the deck problems. However it appears to be important for docking too.
It looks like the HpMount hard point lines up with one of the docking hardpoints on the station cmps. When they meet, docking is completed. Lets look at Space_station01.cmp from solar/dockable.
If you open it up and look for the hardpoints you will find listed under manf_dock/hardpoints/fixed is the hardpoint names for dock locations on that station. If you next go to DATA\SOLAR\solararch.ini and do a search for space_factory01
You will be presented with this (ignore more my changes, eg the jump lines).
[Solar
nickname = space_factory01
ids_name = 60215
ids_info = 60216
type = STATION
DA_archetype = solar\dockable\space_factory01.cmp
material_library = solar\Solar_mat_tink.mat
material_library = fx\envmapbasic.mat
envmap_material = envmapbasic
LODranges = 0, 2000, 15000
mass = 10000.000000
loadout = space_factory01
open_sound = depot_open_sound
close_sound = depot_close_sound
docking_sphere = berth, HpDockMountA, 4.500000, Sc_open dock1
docking_sphere = berth, HpDockMountB, 4.500000, Sc_open dock2
docking_sphere = jump, HpDockMountC, 100.000000
docking_sphere = jump, HpDockMountD, 100.000000
docking_sphere = jump, HpDockMountE, 100.000000
docking_sphere = jump, HpDockMountF, 100.000000
docking_camera = 0
solar_radius = 600
shape_name = NAV_depot
hit_pts = 999999961690316250000000000000000000.000000
fuse = station_burning_fuse, 0.000000, -1
When the following lines are removed the station uses only the moors for docking and exiting of the station which is helpful for examining the issues here.
docking_sphere = berth, HpDockMountA, 4.500000, Sc_open dock1
docking_sphere = berth, HpDockMountB, 4.500000, Sc_open dock2
The sc_open_dock1 parts refers to a script which opens and closes the doors on the berths.
The way docking works, the docking seems to be regarded as completed once the ships HpMount reaches the docking hardpoint. This is when the docking ends. As you know the number after the HPMount off sets that a bit allowing docking to occure earlier than that.
However, the problem is when launching a large. The ship always starts at the docking hardpoint and this causes problems with larger ships as they leave the station because the ship extends back into the station walls.
Leaving via a moor fairs no better because the ship still extends back into some stations because it is pointing the wrong way for mooring. It should be reversing out but instead it treats it like a berth.
If we could change the default exit route from a station to a point of our choosing and control the rotation of the object leaving the station then we can make ships appear outside the station facing the mooring and thus allow them to reverse out and not get stuck.
I know this is not a solution, but i felt like adding my bit to the docking issue.
Giskard