Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Addons > Addon Development
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Addon Development Developers post news, updates, & discussions here about your projects in development.

Reply
 
Thread Tools
Old 12-25-2018, 09:31 AM   #1051
Marg
Orbinaut
Default

Hello, after some usage of multistage, I noticed in Orbiter beta (~Oct 2017), I get a CTD when trying to activate Multistage MFD. But it multistage2015 works in outside view, for example, pressing P... somehow I am not worried.

But actually I wanted to ask -

1) would it be possible to turn off venting effects, for example, launch is "scrubbed", I do not press "P", just to make something on the pad...
2) what about "burnt" texture swap on ET, after separation of SRB's?
Marg is offline   Reply With Quote
Old 12-26-2018, 04:26 AM   #1052
Majid
Orbinaut
Default

Quote:
Originally Posted by gattispilot View Post
 So I have this code that if the Queststarlaunch is present then at a certain time do something.

Works. BUT if the Queststar is not there then at CTD.
So I need to code to read if OBJhandle is Queststar, MorningStar or Venturestar do this/that
Use oapiIsVessel to check if the OBJHANDLE is valid before you call oapiGetVesselInterface on it. If oapiIsVessel returns true, then you can proceed.
Majid is offline   Reply With Quote
Thanked by:
Old 12-26-2018, 11:38 AM   #1053
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Makes sense/ I am not sure how to use it.

I think it should be get the handle of the attached vessel and if the handle is Queststar,VentureStar,.... then do something. If not or nothing attached then do nothing?
gattispilot is offline   Reply With Quote
Old 12-26-2018, 01:59 PM   #1054
fred18
Addon Developer

Default

Quote:
Originally Posted by Marg View Post
 Hello, after some usage of multistage, I noticed in Orbiter beta (~Oct 2017), I get a CTD when trying to activate Multistage MFD. But it multistage2015 works in outside view, for example, pressing P... somehow I am not worried.

But actually I wanted to ask -

1) would it be possible to turn off venting effects, for example, launch is "scrubbed", I do not press "P", just to make something on the pad...
2) what about "burnt" texture swap on ET, after separation of SRB's?
Ms2015 is compiled against orbiter2016 official version. I will plan to compile it also for the beta now.

1) from a realistic point of view I think it should be the opposite: do not stop the venting if the launch is scrubbed. But at the moment I can't think on how to do it with the current version of Multistage. If you want to have something like this using just multistage you should create some ghost boosters group with zero thrust and just particle stream that will shut down when jettisoned, so if the launch occours they will be jettisoned immediately, otherwise you will have to press J to shut them off
2) can't remember if there is an option built in for this, but I think no

for both this points if you know how to code it should be easy enough to build a small plugin that will take care of everything, I'd recommend to create a launchpad module so you will also have the attachment handle check that you can use, I have ideas for coding this things if you need.

Quote:
Originally Posted by gattispilot View Post
 Makes sense/ I am not sure how to use it.

I think it should be get the handle of the attached vessel and if the handle is Queststar,VentureStar,.... then do something. If not or nothing attached then do nothing?
There are many ways to do this, it depends on what you precisely need.
You can check if an object is a valid vessel in general with oapiIsVessel like this:
Code:
OBJHANDLE h_my_vessel = oapiGetObjectByName("MyVessel");
if(oapiIsVessel(h_my_vessel)){
//do something
}
but that would be just if it is a vessel, not a specific venture star

if you want to check if the vessel is a venture star you can use oapiGetClassName and check it, even though my favourite solution if you have access to the code would be to implement in the venture star a clbkgeneric answer so if you call cbkgeneric with a specific parameter and it replies a specific code you will know it's a venture star.

That would be for all the venture stars, so if you have more than one in a scenario it could be not enough. If you want to get the handle of a specific vessel and you know that there can be others of that class in the scenario, the only way I know is to get the object handle through the name with oapiGetObjectByName
fred18 is offline   Reply With Quote
Thanked by:
Old 12-26-2018, 02:21 PM   #1055
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Thanks.
Yes I have access to the code as I wrote it.
So I can make all the class a Venture Star.

Can you give a example of using the getclass name
gattispilot is offline   Reply With Quote
Old 12-26-2018, 02:33 PM   #1056
fred18
Addon Developer

Default

Quote:
Originally Posted by gattispilot View Post
 Can you give a example of using the getclass name
Code:
OBJHANDLE h_vessel = NULL;

for(int i=0;i<oapiGetVesselCount();i++){
 h_vessel = oapiGetVesselByIndex(i);
 if(strcmp (oapiGetVesselInterface(h_vessel)->GetClassName(),"VentureStar")==0){
  //do something
  }else{
 //go away
  }
}
fred18 is offline   Reply With Quote
Thanked by:
Old 01-05-2019, 11:22 PM   #1057
1987VCRProductions
Orbinaut
 
1987VCRProductions's Avatar
Default

Hey, I was just seeing if there were any updates regarding the issues between TransX and Multistage2015. I'm willing to do play testing on my end if that would help things any, I want to do whatever I can to help.
1987VCRProductions is offline   Reply With Quote
Old 01-07-2019, 10:56 AM   #1058
fred18
Addon Developer

Default

Quote:
Originally Posted by 1987VCRProductions View Post
 Hey, I was just seeing if there were any updates regarding the issues between TransX and Multistage2015. I'm willing to do play testing on my end if that would help things any, I want to do whatever I can to help.
Hi 1978VCRProductions, I have spent some hours checking and checking again but I can't find any clues of why this is happening actually... I also asked to the transX team but at the moment I still haven't got a reply on how to solve this quite misterious issue...

As far as MS2015 I can tell that it is a unique vessel, and that burnMFD gets exactly the same dV of MS2... so I can't understand why transX is performing differently... I will keep on investigating to see if I can get my head around this...
fred18 is offline   Reply With Quote
Old 01-13-2019, 05:28 PM   #1059
Marg
Orbinaut
Default

I have a question about exp_bolts feature of multistage2015. Shouldn't there be 2 positions for pstreams? Because of 2 boosters, currently I get only 1.
Marg is offline   Reply With Quote
Old 01-14-2019, 09:44 AM   #1060
fred18
Addon Developer

Default

Quote:
Originally Posted by Marg View Post
 I have a question about exp_bolts feature of multistage2015. Shouldn't there be 2 positions for pstreams? Because of 2 boosters, currently I get only 1.
I am not sure if I completely understood the question: if you mean why for explosive bolts there is only one particle stream definition option is just because when I added it I thought 1 was enough...

I have to update Multistage soon (when I find some time, with two daughters now is not so easy...), so if it is a request for 2 definitions I will add this. Talking about c++ I have in mind to switch to vectors for all the definitions since now I know how to use them quite well, so it means that there will be no number limitiation for anything anymore: no limitiation to stages, boosters, engines and I can put also particles in the list.
fred18 is offline   Reply With Quote
Thanked by:
Old 01-14-2019, 05:46 PM   #1061
Marg
Orbinaut
Default

Yes, please, maybe add a possibility some more exp_bolt streams...
And maybe (when the time will come) the option of switching to burnt ET texture (it is STAGE_1 in my configs) after SRB separation.
Marg is offline   Reply With Quote
Thanked by:
Old 04-11-2019, 12:53 PM   #1062
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

So I am using ms2015 to load the ICPS and ORion onto the Falcon HVY.

On the Falcon Hvy it shows the mass of the ICPs as 1000KG




How to change the mass. it shows 1000KG


Code:
[MISC]
cog=25.000
GNC_Debug=0
Telemetry=0
Focus=1
Thrust_real_pos=0
Vertical_Angle=0.000

[TEXTURE_LIST]
TEX_1=Exhaust_atsme
TEX_2=SLS_2016\SSME_Exhaust
[STAGE_1]
MeshName=SLS_2016\SLS_ICPS3
Diameter=5.000
Height=13.700
EmptyMass=3765.000
FuelMass=26853.000
Thrust=110100.000
BurnTime=1125.000
ignite_delay=10.000
off=(0.000,0.000,42.950)
eng_1=(0,0,-6.5)
eng_diameter=2.700
ullage_thrust=10000.000
ullage_N=4
ullage_angle=-22.500
ullage_pos=(4.200,0.000,-10.700)
ullage_dir=(0.200,0.000,-1.000)
ullage_tex=Exhaust_atsme
ullage_length=5.000
ullage_diameter=1.000
ullage_anticipation=3.000
ullage_overlap=1.000
ullage_rectfactor=3.000
reignitable=1
Eng_tex=
Eng_pstream1=
Eng_pstream2=
Eng_dir=(0.000,0.000,1.000)
Module=Stage
Speed=(0.000,0.000,0.000)
Rot_speed=(0.000,0.000,0.000)

[BOOSTER_1]
N=1
MeshName="FalconICPSfairing1_1"
Height=2
Diameter=2 
EmptyMass=100
FuelMass=0
Thrust=0
angle=0.0
off=(0,0.,27.5)
BurnTime=122.0
eng_1=(-0.2,0,-22.5)
eng_diameter=2.2
ENG_PSTREAM1=solidfuel_exhaust
ENG_PSTREAM2=contrail4
Speed=(15,0,0)
Rot_speed=(0,-0.4,0)
CURVE_1=(-1,0)
CURVE_2=(0,100)
CURVE_3=(30.3,100)
CURVE_4=(35.5,87)
CURVE_5=(60.0,87)
CURVE_6=(65.1,100)
CURVE_7=(103,100)
CURVE_8=(115,85)
CURVE_9=(136,5)
[BOOSTER_2]
N=1
MeshName="FalconICPSfairing1_2"
Height=2
Diameter=2 
EmptyMass=100
FuelMass=0
Thrust=0
angle=0.0
off=(0,0.,27.5)
BurnTime=122.0
eng_1=(-0.2,0,-22.5)
eng_diameter=2.2
ENG_PSTREAM1=solidfuel_exhaust
ENG_PSTREAM2=contrail4
Speed=(15,0,0)
Rot_speed=(0,-0.4,0)
CURVE_1=(-1,0)
CURVE_2=(0,100)
CURVE_3=(30.3,100)
CURVE_4=(35.5,87)
CURVE_5=(60.0,87)
CURVE_6=(65.1,100)
CURVE_7=(103,100)
CURVE_8=(115,85)
CURVE_9=(136,5)
[FAIRING]
Meshname=SLS_2016\SLSORIONMPCVFAIR
Off=(0.000,0.000,51.670)
N=3
Angle=90.000
Height=6.000
Diameter=8.000
EmptyMass=1383.000
Module=stage
Speed=(8.000,0.000,0.000)
Rot_Speed=(0.700,0.000,0.000)

[PAYLOAD_1]
MeshName=Orion-MPCV\orion-launch-white
off=(0.000,0.000,53.280)
Diameter=5.000
Height=8.000
MASS=23820.000
Module=Orion-MPCV\Orion-MPCV
Name=Orion
SPEED=(0.000,0.000,2.000)
RENDER=1
Rotation=(0.000,0.000,0.000)
Rot_speed=(0.000,0.000,0.000)
Live=1

[LES]
Meshname=Orion-MPCV\orion-las-tweaked
Off=(0.000,0.000,53.200)
Height=13.000
Diameter=5.000
EmptyMass=5044.000
Module=stage
Speed=(0.000,2.000,30.000)
Rot_speed=(0.000,0.100,0.000)

[PAYLOAD_2]
MeshName=SLS_2016/ORIONSPACECRAFTADAPTER2
off=(0.000,0.000,43.095)
Diameter=5.000
Height=8.000
MASS=2000.000
Name=SLS_2016/ORIONSPACECRAFTADAPTER2
SPEED=(0.000,0.000,2.000)
RENDER=1
Rotation=(0.000,0.000,0.000)
Rot_speed=(0.000,0.000,0.000)

[PAYLOAD_3]
MeshName=SLS_2016/ORIONSERVICEADAPTER
off=(0.000,0.000,43.00)
Diameter=5.000
Height=8.000
MASS=2000.000
Name=SLS_2016/ORIONSERVICEADAPTER
SPEED=(0.000,0.000,2.000)
RENDER=1
Rotation=(0.000,0.000,0.000)
Rot_speed=(0.000,0.000,0.000)


and scn:
Code:
BEGIN_DESC
Current scenario state


Contains the latest simulation state.
END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 58300.6628669589
  Context SpaceX
  Help CurrentState_img
END_ENVIRONMENT

BEGIN_FOCUS
  Ship FalconHeavy
END_FOCUS

BEGIN_CAMERA
  TARGET FalconHeavy
  MODE Extern
  POS 5.416256 -178.016469 79.586341
  TRACKMODE TargetRelative
  FOV 40.00
END_CAMERA

BEGIN_HUD
  TYPE Surface
END_HUD

BEGIN_MFD Left
  TYPE Surface
  SPDMODE 1
END_MFD

BEGIN_MFD Right
  TYPE Map
  REF Earth
  POS 0.00 0.00
END_MFD

BEGIN_SHIPS
SLC40:FalconHeavy/slc40h
  STATUS Landed Earth
  POS -80.5771995 28.5619578
  HEADING 10.00
  ALT -0.174
  AROT 60.252 -5.396 8.311
  AFCMODE 7
  PRPLEVEL 0:1.000000
  THLEVEL 0:1.000000
  NAVFREQ 0 0
  PST 0.0207 0.0359 0
  TOWER 2 0.1000 0.8000
END
32k_sat:FalconHeavy/32k_sat
  STATUS Landed Earth
  POS -80.5771995 28.5619578
  HEADING 23.64
  ALT 0.882
  AROT 57.085 -18.723 9.121
  ATTACHED 0:0,FalconHeavy
  AFCMODE 7
  PRPLEVEL 0:1.000000
  NAVFREQ 0 0
  XPDR 500
END
FalconHeavy:FalconHeavy\f9h1
  STATUS Landed Earth
  POS -80.5771995 28.5619578
  HEADING 10.00
  ALT 38.117
  AROT 144.880 -8.807 -4.538
  ATTACHED 0:0,SLC40
  AFCMODE 7
  PRPLEVEL 0:1.000000 2:1.000000 3:1.000000
  NAVFREQ 0 0
  FAIRS 0 0.0000 0 0
  SOST 0 0 0 0 0 0.0 1 1
  SOPR 0.9006 350000.0 350000.0 62003.0 35225.0 292000.0 ASDS LZ2 LZ1
  XFID 0.0000 409500.0000 0 0 0 0
END
ASDS:FalconHeavy/barge
  STATUS Landed Earth
  POS -75.0590000 33.2100000
  HEADING 90.00
  ALT 0.367
  AROT 0.000 -75.059 56.790
  AFCMODE 7
  NAVFREQ 0 0
END
LZ1:FalconHeavy\landingpad
  STATUS Landed Earth
  POS -80.5450100 28.4837780
  HEADING 90.00
  ALT 0.500
  AROT 0.000 -80.544 61.514
  AFCMODE 7
  NAVFREQ 0 0
END
LZ2:FalconHeavy\landingpad
  STATUS Landed Earth
  POS -80.5438200 28.4879880
  HEADING 90.00
  ALT 0.500
  AROT 0.000 -80.544 61.514
  AFCMODE 7
  NAVFREQ 0 0
END
ICPS:Multistage2015
  STATUS Landed Earth
  POS -80.5771994 28.5619583
  HEADING 9.80
  ALT 44.372
  AROT 151.065 -8.240 4.530
  ATTACHED 0:2,FalconHeavy
  AFCMODE 7
  PRPLEVEL 0:1.000000
  NAVFREQ 0 0 0 0
  XPDR 0
  CONFIG_FILE Config\Multistage2015\SLS_BLOCKICPSFH.ini
  GUIDANCE_FILE Config\Multistage2015\Guidance\SLS_EM1_Orion_GNC.txt
  CONFIGURATION 0
  COMPLEX 
  CURRENT_BOOSTER 1
  CURRENT_STAGE 1
  CURRENT_INTERSTAGE 1
  CURRENT_PAYLOAD 1
  FAIRING 1
  MET -10.000
  GROWING_PARTICLES 
  STAGE_IGNITION_TIME 0.000000
  STAGE_STATE 1
  TELEMETRY_FILE Config\Multistage2015\Telemetry\SLS_EM1_Orion_GNC.txt
  ALT_STEPS 200.0,350.0,1400.0,35000.0
  PEG_PITCH_LIMIT 35.000
  PEG_MC_INTERVAL 0.100
  RAMP 
END
Orion:Orion-MPCV\Orion-MPCV
  STATUS Landed Earth
  POS -80.5771994 28.5619584
  HEADING 9.80
  ALT 54.702
  AROT 5.890 -12.375 173.248
  ATTACHED 1:0,ICPS
  AFCMODE 7
  PRPLEVEL 0:1.000000
  NAVFREQ 0 0
  XPDR 468
  MODE 0
END
MS_LaunchPad_ICPS:EmptyModule
  STATUS Landed Earth
  POS -80.6040070 28.6083600
  HEADING 0.00
  ALT 0.000
  AROT 151.065 -8.240 4.530
  ATTACHED 2:0,FalconHeavy
  AFCMODE 7
  NAVFREQ 0 0
END
END_SHIPS

BEGIN_Attachment Manager
END


Not sure how to jettison the LES
I have this as the guidance file.
Code:

Code:
Multistage 2015 Automatically Generated Guidance File
Vehicle: ICPS
-10.000 =orbit(40.00,1806,-28.63,1.00,76.50,0.00)
50.000 =les(85.00,0.00,0.00,0.00,0.00,0.00)
50.000 =engine(100.00,85.00,3.00,0.00,0.00,0.00)
50.000 =fairing(75,0.00,0.00,0.00,0.00,0.00)
80.000 =engine(85.00,101.00,3.00,0.00,0.00,0.00)
But the guidance file is based of the flight clock which isn't running for the ICPS
gattispilot is offline   Reply With Quote
Old 04-11-2019, 01:07 PM   #1063
fred18
Addon Developer

Default

Relevant to payload mass I guess you are referring to this:
Code:
[PAYLOAD_1]
MeshName=Orion-MPCV\orion-launch-white
off=(0.000,0.000,53.280)
Diameter=5.000
Height=8.000
MASS=23820.000
Module=Orion-MPCV\Orion-MPCV
Name=Orion
SPEED=(0.000,0.000,2.000)
RENDER=1
Rotation=(0.000,0.000,0.000)
Rot_speed=(0.000,0.000,0.000)
Live=1
Actually the mass value should be overridden by your value but in this case anyway since the payload is live you can just not write the mass parameter, as per the dock, page 16:
Code:
Live=0/1 If set to 1 creates a live
payload instead of a dead
mesh! If a payload is live
the mass parameter can
be avoided and the
vehicle will load the live
payload mass. If there is
the need of manual
overriding the live payload
mass value, just keep the
mass parameter
Relevant to the LES it depends when you need to eject it. anyway why the clock isn't running? I see a full guidance file. Are you making it start somehow in the sim or never?
fred18 is offline   Reply With Quote
Old 04-11-2019, 01:35 PM   #1064
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Well On the Falcon Hvy it lists the payload which is the launchpad as 1000KG.

On the clock since the falcon is the base rocket how do I start the clock. Should I press P when the falcon lifts off?
gattispilot is offline   Reply With Quote
Old 04-11-2019, 01:36 PM   #1065
fred18
Addon Developer

Default

Quote:
Originally Posted by gattispilot View Post
 Well On the Falcon Hvy it lists the payload which is the launchpad as 1000KG.
the launchpad is 1000kg but it shouldn't be there...

Quote:
Originally Posted by gattispilot View Post
 On the clock since the falcon is the base rocket how do I start the clock. Should I press P when the falcon lifts off?
focus on the ms2015 vessel and press P when you know you can sync it
fred18 is offline   Reply With Quote
Thanked by:
Reply

  Orbiter-Forum > Orbiter Addons > Addon Development


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 10:08 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.