General Question Landing on the roof

Luis J

New member
Joined
Jan 31, 2017
Messages
27
Reaction score
0
Points
0
Location
Zaragoza
I'm doing several planetary bases. I tried to put a PAD landing on the roof of a building, but that does not work. The ship crosses the PAD and the building and reaches the ground below, in the basement of the building.

I would be very grateful that someone would explain me the way to do it, but I have little knowledge of Orbiter, so it should be a very clear and detailed explanation (I use Orbiter-2016).

Very grateful for your kindness: Luis J. Llorente
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,769
Reaction score
2,755
Points
203
Location
Dallas, TX
I don't think that is possible. Could you post an scenario.
 

PhantomCruiser

Wanderer
Moderator
Tutorial Publisher
Joined
Jan 23, 2009
Messages
5,607
Reaction score
169
Points
153
Location
Cleveland
I'm pretty sure I understand what you want to do. And it's possible (sort of). You'd need to make your building a vessel, and have an attachment point on the roof. You'd also need an attachment point on the vessel you're flying.

Fly to the landing pad, activate the attachment manager and when the two are close enough, attach. The vehicle will look as if it's parked on the roof.

hang on... John this should look familiar ;)
https://www.orbithangar.com/searchid.php?ID=4335
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,769
Reaction score
2,755
Points
203
Location
Dallas, TX
Yes it is and the Oblivion stuff does that.

What would nice is maybe a pad vessel that as yoi came near then it would auto attach. power up the hovers,.... and then release.

I know there are things like this around.
 

Woo482

Moderator
Moderator
Addon Developer
GFX Staff
Joined
Feb 13, 2008
Messages
3,048
Reaction score
20
Points
78
Location
Earth?
It's easy enough to do, the AV-88 had support for it before it landed in dev-hell
I might have to take a look at creating a generic solution, once oMMU is done :lol:
 

Luis J

New member
Joined
Jan 31, 2017
Messages
27
Reaction score
0
Points
0
Location
Zaragoza
Thank you very much

I think I understood. You have to put an "attachment point", but the buildings do not support this property, so you have to design the building as if it were a ship (with mesh), and then put an "attachment point".

The problem is that I do not know what an "attachment point" is. I do not know how it is achieved or how it is introduced in the "Mesh".

It would be great if you could answer these questions.

---------- Post added at 20:52 ---------- Previous post was at 20:48 ----------

You can see examples:

https://www.orbithangar.com/addonpics/SSPLB3.jpg
https://www.orbithangar.com/searchid.php?ID=2099
https://www.orbithangar.com/searchid.php?ID=1046

But I could not contact poop_shooter
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,769
Reaction score
2,755
Points
203
Location
Dallas, TX
Well in a cfg you can add an attachment.

Code:
BEGIN_ATTACHMENT
C 0.0 2.43 -2.65  0 1 0  0 0 1  arm
END_ATTACHMENT

But you need to know the where to attach?

I have seen in the past where it looks above the surface but it really is at the surface.

So what exactly are you trying to do. I might could make an easy dll for it.
 

DanteLed

New member
Joined
Aug 4, 2017
Messages
2
Reaction score
0
Points
1
But you need to know the where to attach?

I have seen in the past where it looks above the surface but it really is at the surface.

So what exactly are you trying to do. I might could make an easy dll for it.

Very neat video. This doesn't seem easy to pull off to me though. I might be wrong.
 
Last edited:

Luis J

New member
Joined
Jan 31, 2017
Messages
27
Reaction score
0
Points
0
Location
Zaragoza
attachment.

Well in a cfg you can add an attachment.

Code:
BEGIN_ATTACHMENT
C 0.0 2.43 -2.65  0 1 0  0 0 1  arm
END_ATTACHMENT

But you need to know the where to attach?

I have seen in the past where it looks above the surface but it really is at the surface.

So what exactly are you trying to do. I might could make an easy dll for it.

Sorry I did not write you before, but I've been very busy.
I wanted to do two things:
1st:) Put a lock on the side of a building, so that XR-2 can dock directly in the building itself.
2nd Place a lock in your own ship

Regarding the 1st question you tell me that I can put the code in the "xxx.cfg" of the base:
BEGIN_ATTACHMENT
C 0.0 2.43 -2.65 0 1 0 0 0 1 arm
END_ATTACHMENT
But I would have to know what each one of those numbers means, to adapt them to my base. At least, I've already learned to create meshes (thanks to the tutorials)

Regarding the 2nd question, the thing is simpler: I DO NOT KNOW
I can make the mesh of a ship, but I do not know how it is defined in Orbiter,
and I do not know what other files you need. I think you need a "xxxx.dll",
but I have not found tutorials for that.

If you could help me with all this, I would be very grateful.
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,769
Reaction score
2,755
Points
203
Location
Dallas, TX
Ok. Well on the attachment.
C= parent
0.0 2.43 -2.65 are where the attachment is to be placed

But it sounds like you need 2 things. One a pad that you can attach too and then add an attachment to your vessel.

Well if you can make meshes. Can you make a mesh of your landing pad? Then I can make some code to attach. And adjust the Y value of the touchdown point.
 

Luis J

New member
Joined
Jan 31, 2017
Messages
27
Reaction score
0
Points
0
Location
Zaragoza
Attachment

Thank you very much for answering me, and many more thanks for answering so fast.
Unfortunately you are very brief in your explanations:
We were talking about a file "xxxx.cfg" of the base. suppose a square building in which I want to put a lock, the code would:

BLOCK; Building
POS 10 0 10
SCALE 40 20 40
ROT 0
TEX1 d_ring 1 1; d_ring
TEX2 Fcd11 1 1
TEX3 Roof02 1 1
END

BEGIN_ATTACHMENT
(parent ???) 30.0 2.43 10.0 0 1 0 0 0 1 arm
END_ATTACHMENT

In this code, the coordinates (30.10) point to the front wall of the building
and the coordinate 2.43 (approximately) would be the height of the nose of the ship XR-2
But I still do not know that I should write where it says "parent", and I do not know what the numbers "0 1 0 0 0 0 1 arm" of the code of that line mean.

You are very kind, a hug

---------- Post added at 12:21 ---------- Previous post was at 12:13 ----------

I forgot the other question: How to make a ship.
I do not know anything. I only do the mesh. I think you also need a "xxx.dll" file, but I do not know how it is done. I have not found any tutorials either ....
I think that if you know all this, but I do not want you to do it to me, the most beautiful thing is to entertain oneself in doing it.

Do you know where I can find tutorial to do "xxxx.dll"?

I repeat my gratitude
 

Luis J

New member
Joined
Jan 31, 2017
Messages
27
Reaction score
0
Points
0
Location
Zaragoza
continuation

I do not know if I'm explaining myself well. I send you an image

Atraque.jpg
 

camelopardis

Donator
Donator
Joined
Mar 18, 2009
Messages
19
Reaction score
0
Points
1
Thank you very much for answering me, and many more thanks for answering so fast.
Unfortunately you are very brief in your explanations:
We were talking about a file "xxxx.cfg" of the base. suppose a square building in which I want to put a lock, the code would:

BLOCK; Building
POS 10 0 10
SCALE 40 20 40
ROT 0
TEX1 d_ring 1 1; d_ring
TEX2 Fcd11 1 1
TEX3 Roof02 1 1
END

BEGIN_ATTACHMENT
(parent ???) 30.0 2.43 10.0 0 1 0 0 0 1 arm
END_ATTACHMENT

In this code, the coordinates (30.10) point to the front wall of the building
and the coordinate 2.43 (approximately) would be the height of the nose of the ship XR-2
But I still do not know that I should write where it says "parent", and I do not know what the numbers "0 1 0 0 0 0 1 arm" of the code of that line mean.

You are very kind, a hug

---------- Post added at 12:21 ---------- Previous post was at 12:13 ----------

I forgot the other question: How to make a ship.
I do not know anything. I only do the mesh. I think you also need a "xxx.dll" file, but I do not know how it is done. I have not found any tutorials either ....
I think that if you know all this, but I do not want you to do it to me, the most beautiful thing is to entertain oneself in doing it.

Do you know where I can find tutorial to do "xxxx.dll"?

I repeat my gratitude


Hola Luis!

About creating ships (vessels),

You can do ships in different ways. One of them is creating a vessel dll, but it is not easy. You can also make scripted vessels in the Lua language (which are text files and you don't need a developing environment, just a text editor). Or use any existing contributed vessel addon which lets you define vessels through config scripts.

There is tons of information under the Orbiter\Doc and Orbiter\Orbitersdk\Doc directories. Concretely you could start reading 3DModel.pdf, which describes how to define vessels, and then API_Guide.pdf, which explains the dll part. They are easy to read and well written.

For Lua scripting read the last section in Orbiter/Doc/Orbiter.chm file.

Cheers
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,769
Reaction score
2,755
Points
203
Location
Dallas, TX
So dock or landing pad?

In this case the parent is the pad and the child the vessel. So the values would be at the top of the pad and then the child at the bottom of the wheels.


Because a landing pad above the surface would use attachment. but a dock uses a dock.

Are talking 2016 or 2010. I can make a landing pad mesh that you can set the Y touchdown. So then as you fly to it. Press a key and if a vessel is near it will attach.
 
Last edited:
Top