Jump to content

Recommended Posts

I'm trying to manipulate with AirIntakes, and I need to change the values in the module "ModuleResourceIntake". I have created a new module for IntakeSwitch which have my new values I wish to inject into the "ModuleResourceIntake".

I think confignode is the way to go, but I just can't figure out, how the manipulate with specific value/nodes in a specific module.

I've tried to outline the structure of a part and my new module. In GTI_IntakeSwitch under resourceNames I have the list of alternative resource I at runtime want to be able to inject into the module ModuleResourceIntake.

Node structure

PART
{
	name = XXX
	MODULE
	{
		name = ModuleResourceIntake
		resourceName = IntakeAir
		checkForOxygen = true
		###other values###
	}
	MODULE
	{
		name = GTI_IntakeSwitch
		resourceNames = IntakeAir, IntakeAtm
		###other target values###
	}
	RESOURCE
	{
		name = IntakeAir
		amount = 2
		maxAmount = 2
	}
}

I would really like to understand:

  • How do I control which node i work in.
  • Replace a node
  • How to change a value in a node
  • How to read a specific value
  • How the get the changes to take effect

So basically how the confignode construct works.

I have searched around a lot, but it is just not coming to together for me. I have a node replacement working, but that kind of copy paste, and I don't undertand to inner working of it, otherwise I would guess I had figured this out by now.

Link to comment
Share on other sites

4 minutes ago, Crzyrndm said:

Thanks... I will study this, and see if I can deduce what I need to know from the :)

Happy coding!!!

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