OHM ProductionConsumption Module v180426

OrbitHangar

Addon Comments
Joined
Apr 9, 2008
Messages
3,832
Reaction score
13
Points
0

Author: crisbeta

ProductionConsumptionModule is a generic module wich add production and consumption. Import and export are possible within the range (configurable).

Features:
- set production/consumption for a module (if not enough resources, it will try to import from other modules in range)
- set transfer rate; import (<0) and export (>0)
- the vessel don't have to be docked (this way you can create a base with modules in range)

Limitations:
- max 10 resources (this was for testing; will be increased)
- config files for modules must be in Config\Vessels\ProdConsModule (you can create a new folder here)

Source code included. No commercial use without my permission.



DOWNLOAD
 

pclaurent

Daydreamer
Joined
Dec 21, 2014
Messages
49
Reaction score
0
Points
0
Could you please explain how to add product/consume functionality to vessels other than ISS? Tried to add a custom config file for Orion-MPCV, but can't address the proper vessel part. My config file:

; === Configuration file for vessel class Orion-CEV ===
ClassName = PCM-Orion-MPCV
MeshName = Orion-MPCV\orion-CM
Module = ProdConsModule

EnableXPDR = TRUE
XPDR = 468
IDS 0:586 100

; === Attachment specs ===
BEGIN_ATTACHMENT
P 0 0 -2.1 0 0 -1 0 1 0 F9
END_ATTACHMENT

; === ProdConsModule specs ===
; Number of resurces for this vessel
ProdConsResCount = 3
; 'resource number' = 'production/consumption(kg/day)' 'transfer(kg/day)' 'max reserve(kg)' 'range(m)' 'resource name'
ProdConsRes2 = -0.45 4.5 100.0 100.0 O2
ProdConsRes3 = -4.7 26.42 100.0 100.0 H2O
ProdConsRes4 = -4.5 75.0 100.0 100.0 Food
 

crisbeta

Member
Joined
May 27, 2013
Messages
140
Reaction score
4
Points
18
Unfortunately doesn't work with custom made vessels like Orion-MPCV. For example you cat try it with default Mir Space Station. Copy config file to ProdConsModule folder and add to config "ProdConsModule specs".

This was a fast implementation lacking compatibility with other add-ons.
 
Top