Problem My first single stage rocket addon using vinkas spacecraft2.dll

Alexw95

Addon Developer
Addon Developer
Joined
May 28, 2010
Messages
262
Reaction score
0
Points
16
Location
Vancouver BC
Hi i am using vinkas spacecraft2.dll and this is my first addon i have made a single stage rocket but i am not sure why it is not working

Scenerio file

Code:
BEGIN_DESC
Simple-Craft at KSC airport...Press + and CTRL to engage your thrust...
END_DESC

BEGIN_ENVIRONMENT
System Sol
Date MJD 51987.8209125220
END_ENVIRONMENT

BEGIN_FOCUS
Ship Rocket
END_FOCUS

BEGIN_CAMERA
TARGET=Rocket
MODE Extern
POS 3.69 -138.84 -12.16
TRACKMODE AbsoluteDirection
FOV 30.00
END_CAMERA

BEGIN_HUD
TYPE Surface
END_HUD

BEGIN_SHIPS
Rocket:Spacecraft\Spacecraft2
STATUS Landed Earth
POS -80.6858943 28.5906644
HEADING 330.01
FUEL 1
PRPLEVEL 0:1.000
NAVFREQ 94 481
CONFIGURATION 1
CURRENT_PAYLOAD 0
SEQ 0 -2 0.000000
END
END_SHIPS

.ini file
Code:
[PARTICLESTREAM_1]
NAME=engine
SRCSIZE=0.2
SRCRATE=1600
V0=100.0
SRCSPREAD=0.05
LIFETIME=0.5
GROWTHRATE=5
ATMSLOWDOWN=3.0
LTYPE=EMISSIVE
LEVELMAP=LVL_SQRT
LMIN=0
LMAX=1
ATMSMAP=ATM_PLOG
AMIN=1e-5
AMAX=0.1

[CONFIG]
MESHNAME=Rocket
SIZE=30
EMPTY_MASS=100000
FUEL_MASS=200000
MAIN_THRUST=9e5
RETRO_THRUST=0e5
ATTITUDE_THRUST=6e5
ISP=50000
TRIM=0.05
PMI=(15.5,22.1,7.7)
CW_Z_POS=0.09
CW_Z_NEG=0.09
CW_X=2.
CW_Y=1.4
CROSS_SECTION=(53.0,186.9,25.9)
COG=2.47
PITCH_MOMENT_SCALE=0.00005
BANK_MOMENT_SCALE=0.00005
ROT_DRAG=(1.5,1.5,1.5)
WING_ASPECT=0.7
WING_EFFECTIVENESS=0.5
LAND_PT1=(0,-1.1,9)
LAND_PT2=(-4,-1.95,-5)
LAND_PT3=(4,-1.95,-5)
VISIBLE=1
CAMERA=(0,1.22,5.4)
MAIN_PSTREAM1=engine

[EX_MAIN_0]
OFF=(0,0,-2)
DIR=(0,0,-1)
LENGTH=0.001
WIDTH=0.001
HELP PLEASE if i am missing any files or anything please tell me asap
 
rules said:
All topics must have a descriptive title. Topics titled "Help" or "Please help me!!!" for example will not be accepted!

Just a friendly note. Now, as for the actual problem... what is not working, exactly?
 
as soon as it gets to loading the vessles orbiter just crashes
 
Ok. There is a file in the same directory as Orbiter.exe called Orbiter.log. Please post the contents of that file here (You can open it with notepad) inbetween [code][/code] tags so it doesn't flow off the screen.

Also, is there a reason you're using Spacecraft 2? It's rather old...
 
Code:
**** Orbiter.log
Build Sep 29 2006 [v.060929]
Found 0 joystick(s)
Module DGConfig.dll [API v.060425]
Module AtlantisConfig.dll [API v.060425]
Module ScnEditor.dll [API v.060425]
Module Rcontrol.dll [API v.050206]
Module OrbiterSound.dll [API v.060425]
Module Meshdebug.dll [API v.060425]
Module InterMFD53.dll [API v.060425]
Module Framerate.dll [API v.050206]
Module FlightData.dll [API v.050206]
Module ExtMFD.dll [API v.060425]
Module CustomMFD.dll [API v.060425]
Module InterMFD421.dll [API v.050206]

**** Creating simulation session
DirectDraw interface OK
Direct3D interface OK
Zbuffer: 32 bit
Stencil buffer: 8 bit
Render device: Fullscreen 1024 x 768
Device has no hardware T&L capability
Module Sun.dll [API v.050206]
VSOP87(E) Sun: Precision 1e-006, Terms 554/6634
Module Mercury.dll [API v.050206]
VSOP87(B) Mercury: Precision 1e-005, Terms 167/7123
Module Venus.dll [API v.050206]
VSOP87(B) Venus: Precision 1e-005, Terms 79/1710
Module Earth.dll [API v.050206]
VSOP87(B) Earth: Precision 1e-008, Terms 2564/2564
Module Moon.dll [API v.041022]
ELP82: Precision 1e-005, Terms 116/829
Module Mars.dll [API v.060425]
VSOP87(B) Mars: Precision 1e-005, Terms 405/6400
Module Phobos.dll [API v.060425]
Module Deimos.dll [API v.060425]
Module Galsat.dll [API v.041022]
Module Jupiter.dll [API v.050206]
VSOP87(B) Jupiter: Precision 1e-006, Terms 1624/3625
Module Io.dll [API v.041022]
Module Europa.dll [API v.041022]
Module Ganymede.dll [API v.041022]
Module Callisto.dll [API v.041022]
Module Satsat.dll [API v.050206]
Module Saturn.dll [API v.060425]
VSOP87(B) Saturn: Precision 1e-006, Terms 2904/6365
Module Mimas.dll [API v.050206]
SATSAT Mimas: Terms 113
Module Enceladus.dll [API v.050206]
SATSAT Enceladus: Terms 33
Module Tethys.dll [API v.050206]
SATSAT Tethys: Terms 101
Module Dione.dll [API v.050206]
SATSAT Dione: Terms 59
Module Rhea.dll [API v.050206]
SATSAT Rhea: Terms 68
Module Titan.dll [API v.050206]
SATSAT Titan: Terms 100
Module Hyperion.dll [API v.050206]
SATSAT Hyperion: Terms 595
Module Iapetus.dll [API v.050206]
SATSAT Iapetus: Terms 605
Module Uranus.dll [API v.050206]
VSOP87(B) Uranus: Precision 1e-006, Terms 1827/5269
Module Miranda.dll [API v.060425]
Module Ariel.dll [API v.060425]
Module Umbriel.dll [API v.060425]
Module Titania.dll [API v.060425]
Module Oberon.dll [API v.060425]
Module Neptune.dll [API v.050206]
VSOP87(B) Neptune: Precision 1e-006, Terms 391/2024
Module Triton.dll [API v.060425]
Finished initialising world
Module Spacecraft2.dll [API v.050206]
**** WARNING: Mesh not found: .\Meshes\.msh
Finished initialising status
Finished initialising camera
Finished initialising panels
Finished setting up render state
**** WARNING: Mesh not found: .\Meshes\.msh
and i was using spacecraft 2 becaue the tutorial i used to make your first addon used it so i thought i should follow it
 
Last edited:
Well, the .ini file should direct Orbiter to look for a mesh file called Rocket.msh, provided you're getting that far. Do you have a .cfg file for this vessel? What did you name it, and what are its contents?
 
no config just scn and ini when i made it in anim8tor i made a capsul on the top and then the main body then i attachted them together into one but they both have different textures
 
Right, so you have an .ini file at Config\Spacecraft\Rocket.ini with those contents? I'm just trying to establish that the file is in the right place and that you didn't miss the capital letter on the filename - it's been a long time since I actually looked at how the spacecraft modules work, so I can't remember if that makes a difference.

Besides that, the argument for the Meshname line in the Spacecraft manual is encased in "" characters. Perhaps this would help.
 
i got it to load it turns out i forgot the capital letter in the .ini :P but there is a couple problems one that i dont know how to fix.. there is no textures these are not major problems but i would like ot know how to fix for later addons
 
The texture files should be referenced within the .msh file itself. I'm not a modeller, so I don't handle that normally, but do check your file paths and names.
 
see i think they are i put them on the rocket in anim8tor and it looked great and then i saved as a msh
 
Then where did you put the texture files? And in what format?
 
i put them in /textures as a .dds

---------- Post added at 05:38 AM ---------- Previous post was at 05:35 AM ----------

i have a questioin to change the orrientation of the vessle were do i do that
 
To change their orientation in what way? You can change the way they point while sat on the ground with the touchdown points, and you can change which way the mesh points in relation to the "forward" direction of the vessel by rotating the mesh file itself.
 
right now it is laying on its side i would like it to be standing up
 
The answer you seek can be found in the API reference manual. From what I know of SC3, the LAUNCH_PT1 line equates to SetTouchdownPoints() as detailed in that document.

You will find it in /orbitersdk/doc/APIreference.pdf
 
The Orbiter .sdk contains a program called "shipedit" which will do that for you. Or, you could orient the ship inside anim8tor before exporting.
ar81's meshwizard may do the trick also, I learned what I know prior to downloading mesh wizard, so I'm not that great with it (but it's worth the download, trust me).

I think what you need to use is vinka's multistage, that will make your rocket act like a rocket. The capsule you'd still need to develop as a spacecraft3 though.

To see about your textures problem...
open the .msh with notepad and scroll down to the very bottom, you should see something like this...

TEXTURES 4
Athenabrownish.dds
ESBM.dds
Enginebell.dds
Athenagrey.dds

If the text after "TEXTURES x" is a 0 on each line, you'll need to edit the proper texture in by hand, no big deal. This comes from my own projust of the Athena ESBM (2nd stage of an Athena, 3rd stage of an AthenaII).

 
Last edited:
Back
Top