Jump to content

Are hidden resources possible?


linuxgurugamer

Recommended Posts

What you could do is make the resource non tweakable, whixh will make is non visible in the VAB. I still would recommend not to use a resource at all, instead use persistent double field in the parts that intend to use , and use use vessel.FindModules<ModuleType> to find a specific partmodule to acces the double fiels.

Link to comment
Share on other sites

1 hour ago, captinjoehenry said:

hidden how?  As it is if you just add the resource and have nothing use it no one will ever see it.  If some parts store it / produce it I think you'll just need to make a plugin that resets the values at launch if the player messes with them.

Players should not see it, period.

21 minutes ago, FreeThinker said:

What you could do is make the resource non tweakable, whixh will make is non visible in the VAB. I still would recommend not to use a resource at all, instead use persistent double field in the parts that intend to use , and use use vessel.FindModules<ModuleType> to find a specific partmodule to acces the double fiels.

Interesting idea, thanks

Link to comment
Share on other sites

  • 1 month later...
42 minutes ago, Not Sure said:

I know virtually nothing, but isnt Air Intake an invisible resource? It shows up in KER but not in flight.

well kind of does if you looking can see when your engine is about to choke out in your resource panel  and if you can add 

		PROPELLANT
		{
			name = IntakeAir
			ignoreForIsp = True
			ratio = ****
            DrawGauge = True      // <---------- add this line you could see it
		}

 

Link to comment
Share on other sites

On 29/10/2017 at 5:36 PM, linuxgurugamer said:

I'd like to have a resource for internal use in a mod, but don't want the player to see it since there is nothing they can do with it.

Is it possible?  I searched, and didn't find any answer

Thanks

i have too possable ideas for you:

1 is what @Mecripp did which is during flight - Can i see this during flight and 2 is:

RESOURCE_DEFINITION
{
	name = (insert name here)
    title = (insert display name is nessicary i think)
    abbreviation = (abbrevation or title any is fine)
    density = (density)
	unitCost = 0 (in this case 0 because its invisable to not hint at it)
    hsp = (isert that here i dont know what this is)
    flowMode = (depends on resource}
    transfer = NONE (because if it was invisable why would it need transfered?)
    isTweakable = false (this i think tells you weather its avalable in VAB i am yet to test this but i beleve that this is the one you are looking for)
    volume = (insert volume here)
}

i hope this helps :) 

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