Jump to content

Need Guidance Creating my own resources and parts.


DSM92

Recommended Posts

I know there are probably threads out there concerning this, but I simply don't understand the logic behind the search engine for this forum. Before you answer the primary question, maybe you could help me out with some tips as far as how to use the Forum search Engine? That would be helpful and I hate asking questions like these when I have to assume I am not the only one trying to do it.

ANYWAYS. I'd like to integrate my own resources into the game. I've done it before but that was almost a year ago, so I don't remember much about it and I'm worried that what little I do remember is out of date/ won't work with 0.90. Are there any updated guides out there that could help me out?

What I am most interested in knowing is:

Do the new resources need a separate .txt file or can they be in the same stock ResourcesGeneric.txt file?

If new resources require a new .txt file, does it need to be in GameData>Squad>Resources Folder or in the KSP_Win>Resources Folder?

Are there any other files that require an edit if I am adding new resources?

ALSO, I'd like to make some edited parts for harvesting resources. I'm not going to use a resource generator plugin to randomly produce resources on bodies, I just want to choose an already existing part and edit it with a generator module to produce a resource. I remember most of what it takes to do this, and I have a good enough head to read and compare already existing parts to create what I want, but there are still some things that I could use help with.

Is it possible to create a generator module that requires the presences of two resources within the vessel to create one new resource? That's to say that, if one of the resources are not available, the generator will not work. The Closest thing I can think of is a Jet Engine, however, I don't need it too produce thrust.

That's actually the only question I can think of regarding Part Editing right now.

If anyone could help me find a thread, find a guide, or just flat out answer my questions, I would really appreciate it!

Thanks!

Link to comment
Share on other sites

Ah yes, Well. I admit that I didn't look carefully enough to see that thread but, after reading it a few times, it is not helpful in my situation. For instance, the section regarding resources is out of date, however, I have the knowledge to fill in the blanks. What I lack is the proper location of non-stock resources.

I also didn't see anything regarding resource requirements unless the section that covers "requestresource" is what I am looking for and I just didn't understand it.

Moreover, I'm looking for something that puts this information in layman's terms, or at least more distilled and concise.

But thank you for the suggestion

EDIT: Also, I thought I had made my questions as specific as possible- should I redefine them?

Link to comment
Share on other sites

On making your new Resource you just need to make a RESOURCE_DEFINITION file like

RESOURCE_DEFINITION
{
name = LiquidFuel
density = 0.005
unitCost = 0.8
flowMode = STACK_PRIORITY_SEARCH
transfer = PUMP
isTweakable = true
}

You change them to what ever you want and save as cfg and on your generator module something like

MODULE{
name = ModuleGenerator
isAlwaysActive = false
requiresAllinputs = true
resourceThreshold = 0.8

INPUT_RESOURCE{
name = ElectricCharge
rate = 20
}
OUTPUT_RESOURCE{
name = LiquidFuel
rate = 0.05
}
OUTPUT_RESOURCE{
name = Oxidizer
rate = 0.05
}
OUTPUT_RESOURCE{
name = MonoPropellant
rate = 0.05
}

Link to comment
Share on other sites

Do the new resources need a separate .txt file or can they be in the same stock ResourcesGeneric.txt file?

Are there any other files that require an edit if I am adding new resources?

This info is already in the thread. You could do some of your own research too by simply looking through the Squad folder. It would take less time than waiting for an answer.

If new resources require a new .txt file, does it need to be in GameData>Squad>Resources Folder or in the KSP_Win>Resources Folder?

All of the folders in your root KSP folder are deprecated.

Secondly you don't place things in the Squad folder unless you're specifically modding a squad asset. Make your own folder, then put a "Resources" folder in it, and put your definitions in there.

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