Jump to content

[Future versions][Module modding] Creating advanced multi-purpose part modules


Alchemist

Recommended Posts

As we know, in 0.14 there will be possible to create new part modules. :w00t:

However if every modder makes his own module for every part, that would be a complete mess.

So, I propose to discuss specifications of new part modules that would cover practically every need for this type of part - so that every (sane) option for this part will be available through part.cfg for mod creators.

Let\'s make specifications and then (when we get necessary API) code these modules and make them available for everyone who needs these options for their parts.

I already have some suggestions about engines (how to implement almost every feature that can be found in rocket engines), I\'ll post them a bit later.

Link to comment
Share on other sites

So, the engines:

This structure can be split into 3 logical layers

1) The top layer ('cluster') - this layer is responsible for physics. So it should include the basic part parameters. It will also get thrust center, thrust vector and torque (from roll control nozzles) values from the lower levels and transform them into these values, that are passed to physics.

2) 'Groups' (can include several engines/nozzles) - the most interesting layer, that needs to be defined in .cfg. Each group should contain its own parameters like fuel consumption (and even fuel types, including internal reserves if needed), thrust vectoring types (one of the most complex parts of this), throttle and ignition/cutoff profile (there can be some interesting features) and other effects (including atmospheric pressure effects). Processes thrust values from the lowest level and passes them to top level.

3) 'Nozzle' separate engines/nozzles or small groups of them. Several 'nozzles' in one 'group' have the same parameters, but different positions, therefore react differently to control imputs. (if the 'group' has no thrust vectoring it can be always described as 1 'nozzle' object. Exhaust effects and nozzle deflections described in this level.

So, examples of such engine structures:

R-7 (Soyuz)

1st stage (booster): main engine described as a 'group' with 1 'nozzle' (but there are 4 exhaust effects); steering engine described as a group of 1 'nozzle' with deflection in 1 plane (there are 2 nozzle objects and 2 exhaust effects linked to it), that responds to pitch/yaw/roll control.

2nd stage (central block): main engine described as a 'group' with 1 'nozzle' (but there are 4 exhaust effects); steering engine described as a group of 4 nozzles with deflection in 1 plane, that respond to pitch/yaw/roll control. Same with stage 3.

For all these stages throttle profile should be such that if the stage is set to very low throttle, central engine is cut off, but the steering engine is still active at low thrust.

Saturn V

1st stage: central engine is a separate 'group' with throttle profile that performs CECO when decreasing throttle to 80% (others engines work at full thrust in this range). Other engines are a group of 4 nozzles with gimbals and pitch/yaw/roll control.

2nd stage: the same, but the peripheral engines with tangential (1 plane) deflection.

Proton 1st stage: 1 group of 6 'nozzles' - tangential deflection, pitch/yaw/roll control.

N1

1st stage: 6 central engines described as 1 group with 1 logical 'nozzle' and CECO profile; 24 peripheral engines are a group with throttling (thrust center shifting) pitch/yaw control (they can be split into 8 logical nozzles); 6 roll nozzles can be described as 1 logical nozzle (with synchronous animation of the 6 nozzles tangential deflection and effect directly converted into torque)

2nd and 3rd stages: group of 8 (stage 2) or 4 (stage 3) engines ('nozzles') with pitch/yaw control by throttling + 4 roll nozzles described as 1 logical nozzle.

7K-OK Soyuz spacecraft orbital engine (???): 1 group of single main nozzle + a group of fixed attitude control nozzles with different orientations.

Block D stage (N1, Proton, Zenit): main engine with gimbal pitch/yaw control + ignition support system (???) with several (numbers are different in different modifications) nozzles used for engine ignition (acceleration by prograde translation, all modifications), roll control during engine firing and attitude control before ignition (except N1-L3 where this was done by LOK RCS), that use internal fuel reserves. This thing could be simulated with several 'groups'

Some groups can have specific ignition parameters, like minimal G-force and minimal throttle. Or even if some other group is or is not active. Or it can have limited number of ignitions.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...