Advertisement
Guest User

Untitled

a guest
May 4th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.58 KB | None | 0 0
  1. A profile is a .cfg file defining a set of rules for the framework.
  2.  
  3. With no rules Kerbalism degenerate into a background resource simulation with
  4. a decent EC planner and monitor ui.
  5.  
  6. Only a profile should be enabled at the same time. To disable a profile, rename
  7. it from file.cfg to file.cfg-disabled and do the opposite to enable it.
  8.  
  9. If you are interested in creating your own profile, look at Default.cfg and read below.
  10.  
  11.  
  12. ===============================================================================
  13. Rules
  14. ===============================================================================
  15. A rule describe a mechanic that increment an accumulator per-kerbal based on
  16. the environment and the availability of resources. Each rule is implemented as:
  17.  
  18. A property per-kerbal:
  19. - keep track of an accumulator for a kerbal, serialized
  20. - consume a resource at a rate (continuous or piecewise), if specified
  21. - produce waste in proportion, if specified
  22. - increment the accumulator either all the time (if no resource specified)
  23. or only when resource is missing (if resource is specified)
  24. - accumulator change can be scaled by a value from the environment using modifier
  25.  
  26. A monitor for the property
  27. - keep track of the state of the accumulator level for a kerbal, serialized
  28. - show warnings when an accumulator switch between levels, if specified
  29. - include the accumulator in the 'problem icons' as 'health' in the Monitor
  30. - include the accumulator in the 'kerbals' area of the Vessel Info Window
  31. - include a panel with estimates for the lifetime in the Planner
  32.  
  33. A monitor for the associated vessel resource
  34. - keep track of the state of the resource level in a vessel, serialized
  35. - show warnings when a resource switch between levels, if specified
  36. - include the resource in the 'supply icon' in the Monitor
  37. - include the resource in the 'supplies' area of the Vessel Info Window
  38.  
  39.  
  40. SPECS
  41.  
  42. name unique name that identifies the rule, no spaces allowed
  43.  
  44. resource_name name of resource required, if any
  45.  
  46. waste_name name of waste resource produced, if any
  47.  
  48. waste_ratio proportion of resource converted to waste
  49.  
  50. rate amount of resource consumed per-second (or each 'interval' seconds if interval is > 0)
  51.  
  52. interval if 0, the resource is consumed continuously - if > 0, the resource is consumed at every 'interval' seconds
  53.  
  54. degeneration value added to the accumulator of this property per-second (or each 'interval' seconds if interval > 0)
  55. if resource_name is specified, accumulation only happen if the resource is missing
  56. if instead resource_name isn't specified, accumulation happen all the time
  57.  
  58. variance if specified, the degeneration is multiplied by a kerbal-specific value in [1 - variance, 1 + variance]
  59.  
  60. modifier multiply degeneration with a value taken from the environment:
  61.  
  62. 'breathable' only consume and degenerate if outside breathable atmosphere
  63. FUNC: breathable(v) ? 0.0 : 1.0
  64.  
  65. 'temperature' make consumption/degeneration proportional to diff between external and survival temp
  66. FUNC: max(abs(ext_temperature - survival_temperature) - survival_range, 0.0)
  67.  
  68. 'radiation' make consumption/degeneration proportional to exposure to radiation after shielding, in rad/s
  69. FUNC: env_radiation * (1.0 - shielding)
  70.  
  71. 'qol' make degeneration proportional to quality-of-life factor
  72. FUNC: 1.0 / max(living_space * entertainment * other_bonuses, 1.0)
  73.  
  74. on_eva the amount of resource to take when going on EVA, you probably want this
  75.  
  76. on_resque the amount of resources to gift to resque kerbals on first contact
  77.  
  78. breakdown true to trigger a problematic event on the vessel instead of killing the kerbal
  79.  
  80. warning_threshold
  81. danger_threshold
  82. fatal_threshold the accumulator thresholds, fatal trigger the penality, warning/danger are used to set health icon color
  83.  
  84. warning_message
  85. danger_message
  86. fatal_message
  87. relax_message if specified, crossing the respective threshold will send a message to the user, and stop timewarp
  88. you can specify two variants separed by '|', optionally, to be used depending on temperature (cold|hot)
  89. the text can contain unity format tags, some macro substitution is applied to the content of messages:
  90.  
  91. $NEWLINE add a newline, as you can't insert newlines otherwise
  92. $VESSEL replaced with name of the vessel this kerbal belong
  93. $KERBAL replaced with name of the kerbal
  94. $ON_VESSEL replaced by 'On $VESSEL, ' if the vessel is not active, or by nothing if the vessel is active
  95. $HIS_HER replaced by 'his' or 'her' based on Kerbal gender
  96.  
  97.  
  98. low_threshold
  99. empty_threshold the resource level thresholds: all send a message (if specified)
  100.  
  101. low_message
  102. empty_message
  103. refill_message if specified, crossing the respective threshold will send a message to the user, and stop timewarp
  104. you can specify two variants separed by '|', optionally, to be used if the vessel is manned or not (manned|probe)
  105. the text can contain unity format tags, the same macro substitution is applied to the content of messages
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement