Dan's Orbiter page

Orbiter English => Orbiter English => Topic started by: gattico on 21 June 2016, 17:20:40

Title: bases versus vessels?
Post by: gattico on 21 June 2016, 17:20:40
One of my 3-4 projects.  Have a question maybe someone has a answer.

Ok.  With the LER it is a Ummu capable vessel.  But How can I transfer crew from it into a habitat module?  Straight transfer is done by docking.  Can you can't be docked and landed in the current version.  I know in the future version you can.

I know I can get out of the ummu and walk into the habitat


Title: Re: bases versus vessels?
Post by: Face on 22 June 2016, 12:50:23
AFAIK you can only do that by means of hooking the VESSEL::GetDockStatus() function and returning a "ghost" vessel in order to let UMmu fake the transfer via its attachment-method.
Title: Re: bases versus vessels?
Post by: gattico on 22 June 2016, 14:15:13
I know you did something like that before.  How hard would it be to code that?
Title: Re: bases versus vessels?
Post by: Face on 22 June 2016, 16:29:21
At first, you have to hook the function. For that you binary-debug Orbiter to get the address of the VESSEL::GetDockStatus() function. Then you overwrite the memory address with a JMP command to jump to your own function. In this function, you check the this-pointer if it is equal to your vessel. If not, you jump forward to the original function's code that you stored somewhere else. If it is, you return the handle of the ghost vessel. This ghost vessel should be the one associated with the base. E.g. a landed dummy vessel sitting inside the base perimeter, or a vessel that itself resembles the base structure (also landed, of course).

This way, the UMmu code believes the source vessel to be docked to the ghost (or base) vessel and initiates a attachment-based inter-frame UMmu transfer.

I have already implemented such a system in terms of an extension library used in Ascension Ultra. The base was implemented with a hybrid config/vessel approach and included UMmu transfer from vessels to base and vice versa.

So it is possible, but I wouldn't call it easy.
Title: Re: bases versus vessels?
Post by: gattico on 22 June 2016, 16:40:54
OK.  Well then I think the eva guy may just have to get out of the vessel and enter the airlock from the ground. 

Title: Re: bases versus vessels?
Post by: Face on 22 June 2016, 16:55:13
 :) Look at it as a kind of interplanetary fitness program.