General Question Vessel creation spacecraft.dll documentation

xionx

Well-known member
Joined
Aug 8, 2022
Messages
78
Reaction score
129
Points
48
Location
whatcity
I'm making a minimal addon for Orbiter, I generated a .msh file and just want PB-01 like control, I thought I could do that by using spacecraft.dll.
I couldn't find much help online, the only tutorial about is really old and don't even expose every parameters provided by the dll : https://www.orbiter-forum.com/resources/tutorial-how-to-use-spacecraft-dll-lesson-1.2600/
I would be grateful if anyone could show me the right path.
1767704518980.png
Copied the .cfg config of some other simplistic vessel I had and removed / commented some of the thing I didn't know or understand and got some basic control on my vessel HOWEVER the thrust is inverted, the whole control in fact and the camera. So my little spacecraft have inverted controls and flies backward. Is there any easy way to fix this ?

Code:
MeshName = xr
Size = 1

Mass = 3000  ; empty mass [kg]
MaxFuel = 3000  ; max fuel mass [kg]
Isp = 9.7e5       ; fuel specific impulse [m/s]
MaxMainThrust = 12e4
MaxRetroThrust = 10e4
MaxHoverThrust = 71e3
MaxAttitudeThrust = 33e2
; TouchdownPoints = 3.895 -4.449 -4  -3.904 .050 -4  3.895 4.450 -4
; CameraOffset = 0 0 3
; CW = 0.08 0.3 0.3 3
LiftFactor = 0.7
CrossSections = 10 3 9
RotResistance = 0.7 0.7 1.0
; === Docking parameters ===
DockRef = 1.3165265 0.05 12
DockDir = 0 0 1
DockRot = 0 1 0
; === Engine reference points ===
MEngineRef1 = 0.00000 0.000000000 4.0000

I could invert the mesh itself but I think it's already pointing forward tho?
 
Mesh is facing the wrong direction

This is meshwizard. I didn't see it on the downloads though?
 

Attachments

  • MESHISSUE.jpg
    MESHISSUE.jpg
    54.5 KB · Views: 7
better but tilted. try this mesh just rename to .msh
 

Attachments

  • meshissue1.jpg
    meshissue1.jpg
    55.1 KB · Views: 5
  • u3aurqnew.txt
    u3aurqnew.txt
    10.9 KB · Views: 1
the only tutorial about is really old and don't even expose every parameters provided by the dll
Have a look at other add-ons of the same author (@ar81). He has a couple of tutorials regarding spacecraft.dll.
Copied the .cfg config of some other simplistic vessel
Could you tell what vessel CFG did you use?

Also, you can write a vessel configuration file on Lua. There're examples included in Orbiter 2024.
 
Have a look at other add-ons of the same author (@ar81). He has a couple of tutorials regarding spacecraft.dll.

Could you tell what vessel CFG did you use?

Also, you can write a vessel configuration file on Lua. There're examples included in Orbiter 2024.
I don't use Orbiter 2024
I used a very niche one from my addon collection :
1767797221848.png
 
1767963325128.png
Ye indeed the model was inverted, I just had to flip properly the mesh. Picture unrelated I flew it inverted with the reverse engine (lol)
Anyways I still do not know where to find all parameters I can set using spacecraft.dll
 
Back
Top