Jump to content

New issue: Custom Air intake does not function properly


Recommended Posts

edit: Strike that, it just doesnt work.

The GUI elements are all there, heres the config

MODULE

{

name = ModuleResourceIntake

resourceName = IntakeAir

checkForOxygen = true

area = 0.01

intakeSpeed = 10

intakeTransformName = Intake

}

RESOURCE

{

name = IntakeAir

amount = 5

maxAmount = 5

}

The resource and the gui works, but it doesnt register the airspeed or flow.

Any ideas?

Edited by Zaeo
Link to comment
Share on other sites

Does the part work when there's nothing in front of it? If it doesn't then you've most likely not set up the intake transform in Unity. It's just like setting up a trustTransform for engines, except you want the Z axis to face forwards.

Here's an example in Unity. The top of this part represents forwards.

RXC8fa4.png

Link to comment
Share on other sites

No, it does not. I did not realize there was an intake section in unity. thought it was purely config file stuff. Looking into it now.

Ok, is there by any chance an updated tutorial on how to do this? The Thrust transform stuff is not quite under my belt yet T.T and I can't find any tuts on how to do it.

Edited by Zaeo
Link to comment
Share on other sites

A lot of stuff is based on Unity gameobjects. If you're not sure, checking out the CFG can give you valuable clues. For intakes you'll have:

intakeTransformName = Intake

Or something similar. The transform is the gameobject in Unity.

Link to comment
Share on other sites

Exactly. If you have multiple intakes like that I think you can get away with naming them all the same and then using the one name in the CFG, which would give them all identical statistics while being located in different places. It works like that for engines at least.

Link to comment
Share on other sites

Taking the CFG segment you put in the original post:

MODULE

{

name = ModuleResourceIntake

resourceName = IntakeAir

checkForOxygen = true

area = 0.01

intakeSpeed = 10

intakeTransformName = Intake - Whatever you call the gameobject in Unity has to be called here.

}

RESOURCE

{

name = IntakeAir

amount = 5

maxAmount = 5

}

Link to comment
Share on other sites

Does the part work when there's nothing in front of it? If it doesn't then you've most likely not set up the intake transform in Unity. It's just like setting up a trustTransform for engines, except you want the Z axis to face forwards.

Here's an example in Unity. The top of this part represents forwards.

RXC8fa4.png

Mental note.. Blue arrow facing out, not in.. lol

thanks Hooji.. now my intake works aswell :)

Link to comment
Share on other sites

Figuring out which arrow to point where on what transform is the most "fun" part of Unity! My first forays into RCS thrusters were completely and utterly broken until Borklund came along and told me how to set it up, and my attempts are solar panels have so far resulted in things working 45 degrees off of where I want irrespective of how I set things up! :confused:

Link to comment
Share on other sites

  • 9 months later...

Can't for the life of me get my new intake working, no idea what's wrong. I've got the empty game object labelled "Intake", it's in the heirarchy of the game object with the PartsTool component, and is oriented correctly, that is, Z+ is facing forward relative to the part.

The air intake places properly in the hangar and shows up fine when I launch, it even contains the initial amount of air resource, but it doens't take in any more air once the engine is started.

Here's some images to show my setup, and the config file too:

dIrBsep.jpg

8VhpeFw.jpg

PART

{

name = Avro_intake_Left

module = Part

author = Orthanc

mesh = model.mu

rescaleFactor = 1

node_stack_back = -0.02808678, 0.0, 0.0, 0.0, 0.0, 0.0

TechRequired = aerodynamicSystems

entryCost = 4500

cost = 1000

category = Aero

subcategory = 0

title = Avro Air Intake Port

manufacturer = Avro Aerospace

description = Avro's patented port-side intake for air-breathing jet engines, designed to be very efficient to maximize the intake of air at higher altitudes.

attachRules = 0,1,0,0,0

// --- standard part parameters ---

mass = 0.01

dragModelType = default

maximum_drag = 0.2

minimum_drag = 0.2

angularDrag = 1

crashTolerance = 10

maxTemp = 5000

MODULE

{

name = ModuleResourceIntake

resourceName = IntakeAir

checkForOxygen = true

area = 0.1

intakeSpeed = 10

intakeTransformName = Intake

}

RESOURCE

{

name = IntakeAir

amount = 2

maxAmount = 2

}

}

Kj6f8KS.jpg

InXexkC.jpg

WUfjUOC.jpg

So yeah, any help would be great, I have no idea what I'm missing here

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...