SSBB Balistics

tl8

Addon Developer
Addon Developer
Tutorial Publisher
Joined
Oct 16, 2007
Messages
3,645
Reaction score
25
Points
88
Location
Gold Coast QLD
At the request of HiPotOK here is some simple psuedo code for a vessel dll that will make 1 vessel space station made out of Space Station Building Blocks.

There will be 2 modes of operation, child mode (default) and parent mode

In child mode, no action can be taken. It is like any other cfg vessel.

In parent mode the code below is followed

Prestep:
Check if Newly Docked Vessel has the same Module
If Yes Then
Add Vessel Mass to parent
Add Vessel Fuel to parent (adjust Max Fuel too)
Adjust PMI
Find offset of Vessel (using parent and child docking ports)
Add Docking Ports to parent
Add Vessel Attachment points to parent with offset
Add mesh of Vessel to parent with offset
Delete Vessel
Delete Used Docking ports


There will be no provision to undock vessels.
The current problem is now how to save the state of the Space Station. I am thinking about have the scn file storing the Vessel Mass, Fuel state, Max fuel, All the docking ports, all the Attachment point and all the meshes (and offsets) used.

Any other ideas are welcome.

And on that Bombshell

Goodnight!
 
Top