Orbiter-Forum  

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

Addon Requests If you have a request for a new addon or want to know where to find a specific addon, ask it here!

Reply
 
Thread Tools
Old 04-11-2018, 09:28 PM   #46
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

So was OV102 only different? So it would have OV102 Original and ov102 mid? So the others should be the same.

The code to this would be nice but since it isn't this will do.

---------- Post added at 04:28 PM ---------- Previous post was at 12:02 PM ----------

So not sure why this has different attachment points?
Code:
STS-41D:Shuttle
  STATUS Orbiting Earth
  RPOS -6513085.78 -491695.27 -1401044.39
  RVEL 1674.558 -542.479 -7527.791
  AROT -175.81 -12.47 -86.54
  VROT -0.07 0.00 0.00
  AFCMODE 7
  PRPLEVEL 0:0.923829
  NAVFREQ 0 0
  CONFIGURATION 3
  ORIGINAL 
  RENDER 
  RMSARM 
  SRB 
  NOCHUTE
gattispilot is offline   Reply With Quote
Old 04-12-2018, 08:25 PM   #47
zerofay32
Buckeye
 
zerofay32's Avatar
Default

Quote:
Originally Posted by GLS View Post
 [nitpicking]SILTS first was used in STS-61C and not on STS-9.[/nitpicking]
Right. Columbia when into overhaul after STS-9. Sorry.

gattispilot: make sure to take a look at the SF manual. The other shuttles have different variants as well to match the livery differences. Columbia is the only one with three though. There is a section in the manual on the attachment points if I recall correctly. Don't have it in front of me at the moment.

Last edited by zerofay32; 04-12-2018 at 08:32 PM.
zerofay32 is offline   Reply With Quote
Thanked by:
Old 04-12-2018, 10:28 PM   #48
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Thanks. So now I need to do some code read the scn and get the attachment info:
PL1_OFS 0.000000 -0.800000 -2.440000
PL1_DIR 0.000000 -1.000000 0.000000
PL1_ROT 1.000000 0.000000 0.000000
PL2_OFS 0.000000 0.100000 -4.950000
PL2_DIR 0.000000 1.000000 0.000000
PL2_ROT 0.000000 0.000000 1.000000
PL3_OFS 0.050000 0.140000 3.160000
PL3_DIR 0.000000 1.000000 0.000000
PL3_ROT 0.000000 0.000000 1.000000
PL4_OFS 0.050000 0.250000 -1.550000
PL4_DIR 0.000000 1.000000 0.000000
PL4_ROT 0.000000 0.000000 1.000000
PL5_OFS 0.050000 0.250000 -4.950000
PL5_DIR 0.000000 1.000000 0.000000
PL5_ROT 0.000000 0.000000 1.000000
PL6_OFS 0.050000 1.800000 5.370000
PL6_DIR 0.000000 1.000000 0.000000

from page 19:
USING THE ATTACHMENTS WITH OTHER ADD-ONS
When creating scenarios for use with the Expansion Pack series for the Shuttle Fleet,
some of the best third-party add-ons required specific configuration files to work with the
fleet and its attachments. This would then render the add-ons as biased for use with the
Shuttle Fleet only and I want to get away from that situation as much as possible.
Additionally, with the prior Shuttle Fleet it was only possible to grapple and return to the
payload bay one item per scenario. To avoid this situation as well, the Shuttle Fleet now
has three (3) separate attachment points in the payload bay that will allow a user to
grapple and return three different payloads if desired.
Available attachment points
In order to understand the scenario file entries for various attachment points, the
following is a listing of the available attachment points in the shuttle orbiter:
Attachment Point (Scenario line name) Common usage
Attachment “0”; PL1 This a deployable payload point (1 of 3)
Attachment “1” The grappling point of the SRMS
Attachment “2” PL2 Another deployable payload point (2 of 3)
Attachment “3” PL3 Final deployable payload point (3 of 3)
Attachment “4” PL4 A “fixed” attachment point for static items
Attachment “5” PL5 A “fixed” attachment point for static items
Attachment “6” PL6 A “fixed” attachment point for static items
Attachment “7” This is a “special” attachment point
The new fleet vehicles will now write a new series of lines in the scenario files similar to
the following:
gattispilot is offline   Reply With Quote
Old 04-16-2018, 11:20 AM   #49
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

So I am not sure if there is an easy way to do this.

I made a Zeneithstar vessel. And loaded into a SF 2010.

The shuttle is Ov 103 original with no extra point defined

So then I load into the new shuttle:


So if I adjust the points to fit the sf and 2010 and load into my2016 shuttle

But adjust the shuttle attachments:


So there not be a direct copy and paste. But copy and paste and alter the attachment points from the scn?

Any thoughts?

---------- Post added 04-16-18 at 06:20 AM ---------- Previous post was 04-15-18 at 08:21 AM ----------

So I figured this altrs the existing points. Not are the points.

Code:
  PL1_OFS 0.000000 -0.800000 -2.440000
  PL1_DIR 0.000000 -1.000000 0.000000
  PL1_ROT 1.000000 0.000000 0.000000
But I guess I need to get the default based on the OV and/or mid or original. But I sf does a shift mesh or something is why they are not aligning up?
gattispilot is offline   Reply With Quote
Old 04-19-2018, 01:31 PM   #50
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

So As I understand it
1. Need to load attachment points based on ov,mid, original (Need to figure out what the points need to be
2. Then if in the scn it has PL1 make that the new attachment I have done this but not sure how to by pass setting the attachment if this is not present?

I was using Attachment manger which was giving me false info on the points.
gattispilot is offline   Reply With Quote
Old 04-23-2018, 03:17 PM   #51
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

So It looks like I need at least 2 different textures per shuttle. Original, present and then maybe future. That can be done.

The one thing I am not sure about is how to write just "RMSARM" or "ODS". I was able to read the scn and if these are present then do something, Thanks Brian.

Since we are using ms2015 you have to add the et and srb to the scn.
gattispilot is offline   Reply With Quote
Old 04-30-2018, 10:51 AM   #52
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

So I went back and made some texture modifications.

And we get Columbia early:
gattispilot is offline   Reply With Quote
Thanked by:
Old 05-01-2018, 12:50 PM   #53
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Well I am finding it is not as easy as SF. But it works. Because we are using ms2015 for launch the ini needs to be changed to reflect which mesh.

So I have 3 Columbia, 3 Discovery, 2 Atlantis.
gattispilot is offline   Reply With Quote
Thanked by:
Old 05-02-2018, 01:45 AM   #54
PhantomCruiser
Wanderer
 
PhantomCruiser's Avatar

Default

This might be a dumb question, but is any work going into the flight handling characteristics of the Orbiter?
PhantomCruiser is offline   Reply With Quote
Old 05-02-2018, 09:47 AM   #55
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Maybe? I am used the Atlantis flight dynamics and then modified.

If you pm an email I can let you test it. I am just trying to get different models/meshes.
gattispilot is offline   Reply With Quote
Old 05-07-2018, 10:46 AM   #56
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

So I am having issues reading the scenario and saving:
From The scenario it should read OV, MID, ODS, ORGINIAL,and RMSARM. It reads the ov number good but I need it to read if MID is present then do something. Same with ODS, ORGINIAL, and RMSARM

Code:
void Atlantis::clbkLoadStateEx (FILEHANDLE scn, void *vs)
if (!_strnicmp(line, "OV", 2)) {
				sscanf(line + 2, "%d", &OV);

			
			}
if (!_strnicmp(line, "ORGINAL", 7))
	{
		ORGINAL = 1;
	}
	if (!_strnicmp(line, "MID", 3))
	{
		MIDMODEL = 1;
	}
if (!_strnicmp(line, "ODS", 3))
	{
		SetMeshVisibilityMode(mesh_ODS, MESHVIS_EXTERNAL | MESHVIS_VC | MESHVIS_EXTPASS);//ODS PRESENT SHOW MESH
		CreateDock(_V(0.0, -.8, 8), _V(0, 1, 0), _V(0, 0, 1));
		SetAnimation(anim_extodsdoor, EXT_proc);
		ODS = 1;
	}
	if (!_strnicmp(line, "RMSARM", 6))
	{
		RMSSELECT = 1;
		SetMeshVisibilityMode(mesh_RMS1, MESHVIS_EXTERNAL | MESHVIS_VC | MESHVIS_EXTPASS);//RMS PRESENT SHOW MESH
	}


{
SCN:
OV 103
ODS
MID
RMSARM

SCN at exit:
OV 103


Code:
void Atlantis::clbkSaveState (FILEHANDLE scn)
{

sprintf(cbuf, "%d ", OV);
	oapiWriteScenario_string(scn, "OV", cbuf);


	if (ODS == 1) oapiWriteScenario_string(scn, "ODS"," ");
	if (ORGINAL == 1) oapiWriteScenario_string(scn, "ORGINAL", " ");
	if (MIDMODEL == 1) oapiWriteScenario_string(scn, "MID", " ");
	if (RMSSELECT == 1) oapiWriteScenario_string(scn, "RMSARM"," ");
gattispilot is offline   Reply With Quote
Thanked by:
Old 05-08-2018, 07:50 AM   #57
PhantomCruiser
Wanderer
 
PhantomCruiser's Avatar

Default

As much as I'd love to test it, it looks like I'm doomed to longer than normal work hours from the next little bit.
PhantomCruiser is offline   Reply With Quote
Thanked by:
Old 05-09-2018, 11:03 AM   #58
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Thanks. Well Hope to be able to fix the read the scenario and loads the correct meshes,....

I was working with Gazza and Pylon3. But haven't heard from him in a while.

The goal is to get 2010 sf to easily translate into this plus some new things

---------- Post added 05-09-18 at 06:03 AM ---------- Previous post was 05-08-18 at 07:50 AM ----------



So I ran a debugger.

And MIDMODEL should be 1 if MID is present, right?

Code:
void Atlantis::clbkLoadStateEx (FILEHANDLE scn, void *vs)
{
	int action;
    char *line;
	MIDMODEL = 0;
...
if (!_strnicmp(line, "ORGINAL", 7))
	{
		ORGINAL = 1;
	}
	if (!_strnicmp(line, "MID", 3))
	{
		MIDMODEL = 1;
	}
So if the line MID is present in the scn then MIDMODEL is set to 1.

Code:
STS-39:Shuttle2016B
  STATUS Landed Earth
  POS -80.6208630 28.6270927
  HEADING 180.57
  ALT 0.000
  AROT 99.922 -54.902 51.216
  ATTACHED 0:0,ET-39
  PRPLEVEL 0:1.000000
  NAVFREQ 0 0
  CONFIGURATION 3
  GEAR 0 0.0000
  HATCH 0 0.0000
  Armtilt 0 0.0000
  EVA 0 
  OV 103
  MID 
  ARM_STATUS 0.5000 0.0000 0.0000 0.5000 0.5000 0.5000
gattispilot is offline   Reply With Quote
Old 05-11-2018, 12:11 AM   #59
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Fixed
Code:
if (!_strnicmp(line, "ORGINIAL", 7))
			{
				sscanf(line + 7, "%d", &ORGINIAL);
				ORGINIAL = 1;
			}
			if (!_strnicmp(line, "MID", 3))
			{
				sscanf(line + 3, "%d", &MIDMODEL);
				MIDMODEL = 1;
			}
I guess more meshes. Not sure about the OBSS?
gattispilot is offline   Reply With Quote
Old 05-14-2018, 12:29 PM   #60
gattispilot
Addon Developer
 
gattispilot's Avatar
Default



Following SF with the none moving OBSS.
gattispilot is offline   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Addons > Addon Requests


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:00 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 - 2018, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.