Jump to content

Creating constant resource consumption for an engine


Recommended Posts

Hello

I am working on a personal rebalance for more realistic combat in BDA, and one of the requirements I had was to find a way to have players build realistically sized planes. I am hoping to partially achieve this by modifying "short" (wheesley, panther, all node attaching engines) jet engines to require an "engine space" resource for use, and creating heavy, fuel-free engine space Mk1 fuselages to occupy this space and thus make players have build larger planes for better engine performance (as irl).

I've been messing around with .cfg files for a while but I don't have any real modding experience.

I am hoping to do this by assigning a constant production rate of this resource to the engine space part, but I am having trouble making the engine itself consume at constant rate. Afaik, all fuel consumption is related to throttle, and I have not been able to create a constant throttle independent consumption rate.

}
		PROPELLANT
		{
			name = enginespace
			ignoreForISP = True
			ratio = 40

This is what I've put under my modified Panther's resource consumption for wet and dry modes, but as I said it is currently affected by throttle.

If this can help, here is a definition of the resource.

RESOURCE_DEFINITION
{
  name = enginespace
  displayName = Engine space
  abbreviation = ES
  density = 0.005
  unitcost = 10
  hsp = 400
  flowMode = ALL_VESSEL
  transfer = PUMP
  isTweakable = False
  isvisible = False
  unitCost = 1
  volume = 1

Could anyone enlighten me as to how to solve this problem?

Edited by NotAnAimbot
Link to post
Share on other sites

USI-LS has an interesting resource: waste. It's created constantly by living Kerbals, and then stored for recycling. If the waste tank is full, the waste is vented (I.e. Just disappears). 

Perhaps youn can use this MO for your engine space resource? Just create this resource on a rate bigger than the engine can.consume, and throw away the overflow. Make the "ISP".stupidly high, so you can make such rate minimal and so minimize any concerns about weight and balance.

Link to post
Share on other sites

I don't think you can achieve it with any stock PartMdule. Instead you have to make your own custom engine controller which will consume a resource at a constant rate as long as engine currentThrotle is higher than 0.

Edited by FreeThinker
Link to post
Share on other sites
47 minutes ago, FreeThinker said:

I don't think you can achieve it with any stock PartMdule. Instead you have to make your own custom engine controller which will consume a resource at a constant rate as long as engine currentThrotle is higher than 0.

Any leads to how to do this? Would I have to use module manager?

Link to post
Share on other sites
5 hours ago, Nightside said:

couldnt you just combine the engine model with the hollow fuselage to form a new part representing the turbine and exhaust parts of the engine?

A good idea I considered, but I wanted to keep it as simple as possible and I don't have much experience in 3D modeling. I guess I could go this way, although I have considered another possibly simpler solution by making the command modules consume the same resource as engines do (the engines would not shut down, but the command parts would)

Link to post
Share on other sites
On 12/6/2018 at 12:01 AM, NotAnAimbot said:

A good idea I considered, but I wanted to keep it as simple as possible and I don't have much experience in 3D modeling. I guess I could go this way, although I have considered another possibly simpler solution by making the command modules consume the same resource as engines do (the engines would not shut down, but the command parts would)

You don't have to be a modeler to make this happen. If you use a welding mod (like UbioZur's Welding Continued) you can weld the engine to a structural fuselage making it take up more space.

Link to post
Share on other sites
On 12/5/2018 at 3:01 PM, NotAnAimbot said:

A good idea I considered, but I wanted to keep it as simple as possible and I don't have much experience in 3D modeling. I guess I could go this way, although I have considered another possibly simpler solution by making the command modules consume the same resource as engines do (the engines would not shut down, but the command parts would)

Well you don't actually need to make your own 3D models, you can just mashup existing models in the configs.

Link to post
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...