Jump to content

How to make new resources?!


Watermel00n

Recommended Posts

Hello. I want to make a new resource but I don't know what all these numbers mean.

Spoiler

RESOURCE_DEFINITION
{
  name = Ore
  displayName = #autoLOC_501007 //#autoLOC_501007 = Ore
  abbreviation = #autoLOC_6002103 //#autoLOC_6002103 = Ore
  density = 0.010
  unitCost = 0.02
  flowMode = ALL_VESSEL
  transfer = PUMP
  hsp = 1000
  isTweakable = true
  color = 1,0,1
  volume = 5
  RESOURCE_DRAIN_DEFINITION
  {
    isDrainable = true
    showDrainFX = true
    drainFXPriority = 9
    drainForceISP = 5
    drainFXDefinition = particlesDraining
  }
}

What is hsp, volume and color? Thanks for helping!

Link to comment
Share on other sites

1 hour ago, Watermel00n said:

What is hsp, volume and color? Thanks for helping!

https://wiki.kerbalspaceprogram.com/wiki/CFG_File_Documentation#Resource_Configuration_Files

Color looks to be an optional mod added extension. Not sure what mods might use it. Probably for the coloured indicators in some fuel switch modules? Looking at CRP only a few resources define anything for color and the values look pretty arbitrary to me (they're RGB values in the range 0, 0, 0 to 1.0, 1.0, 1.0 - the Ore definition you gave is 1, 0, 1 or pure magenta 100% red + 100% blue).

Link to comment
Share on other sites

  • 5 weeks later...
On 6/24/2022 at 8:55 PM, Aelfhe1m said:

Color looks to be an optional mod added extension.

Actually I believe this color is used by the stock resource scanner planetary overlay. Note that the Ore config has color = 1,0,1 which is purple, which is the color of the Ore overlay.

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