SDK Question cryrogenic code???

tauruslittrow84

New member
Joined
Nov 12, 2011
Messages
58
Reaction score
0
Points
0
I want to add a thruster with little or no thrust to the side of a faring that completley covers my vessel. Then add contrail to it. By pressing a key the fog would stop like when a rocket stops fogging as it pressurizes before launch.
Would I need to change FOCUS to the fairing module to do this in the scenario?
As the ship launches I am using Payload Manager to shed the two fairing halves. The fairing with the fogger would thus be a "ship" or module. I don't want the focus to be on that module but rather the main ship. So I can watch the 2 fairings just fall behind. HOW WOULD I CODE THIS on the fairing module? Keymod , handles and all.
yikes help please?
 
Last edited:
I want to add a thruster with little or no thrust to the side of a faring that completley covers my vessel. Then add contrail to it. By pressing a key the fog would stop like when a rocket stops fogging as it pressurizes before launch.
Would I need to change FOCUS to the fairing module to do this in the scenario?
As the ship launches I am using Payload Manager to shed the two fairing halves. The fairing with the fogger would thus be a "ship" or module. I don't want the focus to be on that module but rather the main ship. So I can watch the 2 fairings just fall behind. HOW WOULD I CODE THIS on the fairing module? Keymod , handles and all.
yikes help please?


Thats pretty complicated, what you are expecting there.

Lets start simple. Adding a thruster is no deal in Orbiters API, the API reference should be enough there. Same with particle streams.

Putting the API calls together is the art.

A thruster needs a propellant resource to work - you dump a mass flow overboard, after all.

Then, you need a key handler (clbkConsumeBufferedKey), which reacts on either key pressed or key depressed (I prefer this), but not on both (since this would trigger two events)

Then, you need some analysis of your requirements to get a state machine: How do the key presses change the state of your vessel (vapour on/off, fairing separation, etc), especially regarding which keypresses still have an effect in which state (for example, after fairing separation, should the vent still operate?)
 
Couldnt I have low rated thruster and what kind?

I was thinking of very low [N] thruster like 1kg of thrust pointed to one side of a vessel with a lot of mass. It wouldn't move the main vehicle package but would still emit contrail. RCS seem to act it pulse mode. I would want it to stay on for at least a minute without having to hold my finger down. Like with a hover. If I put a hover out to the side it will be activated by how long "0" is down. And will it ignite H thruster of main vessel, by accident? Of course I would need a very small tank for that propellant handle is all. My concern is what command from the API guide would follow*Kstate and keymod
(if) OAPI_F_Key.......then.....what "ignite thruster", or "run thruster", or
start thruster. How is this fucntion defined in my .h file? What would that read. I just need code. In the scenario do I focus on the fairing module until just after launch then switch focus, etc. It seems straight forward for a code wizard , which I am not!!! LOL
 
Last edited:
It seems straight forward for a code wizard , which I am not!!! LOL

Which is why I would rather teach you how to look at the problem like one, than solving it for you. ;)

Code wizards are just people who are very experienced in solving problems with code. But to become experienced, you have to practice it.

Also, your problem is rather simple, which makes me confident that you can solve it yourself after some pointing at the right tools.
 
Back
Top