Closed Alexustas closed 8 years ago
I would like to (along with fuel cell consumption rates in game units + mass). It will take some effort, which is why I didn't do it yet. :)
You want different variables for each, correct? (like ELECTRICITY_FUELCELL, ELECTRICITY_SOLARCELL, only with a better name)
You want different variables for each
Yes, I want to track all possible energy sources
ELECOUTPUTALTERNATOR
and ELECOUTPUTGENERATOR
both work. There is ELECOUTPUTFUELCELL
for ModuleResourceConverter, but I have not found the right variables for it to work. I still need to create ELECOUTPUTSOLAR
.
variable "ELECOUTPUTFUELCELL" always shows zero, regardless of whether the fuel cell is turned on or not
Yes. I have not figured out how to compute energy production yet for it, but I added the variable.
these variables are measured in the unit/s ?
Yes. They measure what the part reports, so if batteries are full, they will still report power generation, unless the part stops producing power (like fuel cells).
can you make so that the variables returns "-1" if the vessel does not have such devices on board?
can you make so that the variables returns "-1" if the vessel does not have such devices on board?
Yes.
perhaps it is not quite the correct topic, but I do not want to open a new issue.
I made a new switch for deploy / retract solar panels and recorded video how it works in the game.
config:
PROP
{
name = swTumble_SOLAR_DEPLOY
// action
MODULE
{
name = JSIActionGroupSwitch
animationName = SwitchTumbleAnim
switchTransform = SwitchColider
actionName = plugin
switchSound = ASET/ASET_Props/Sounds/tumbleClick01
PLUGINACTION
{
name = JSIInternalRPMButtons
actionMethod = SetDeploySolarPanels
stateMethod = GetDeploySolarPanels
}
}
Yes, this is difficult because the solar panel animation takes time, and GetDeploySolarPanels can only have two values (true / false), so I can use "Solar Panels can be extended", which is what I am using, or I can use "Solar Panels can be retracted", which will make the switch take a long time going from "off" to "on".
Maybe I can change it to "can be extended or is now retracting", which will make it flip immediately.
I changed GetDeploySolarPanels, so I think it will behave better.
I also added JSIInternalRPMButtons SolarPanelsState
. Returns deployable solar panel state:
Updated on DropBox.
I also added JSIInternalRPMButtons
oh! it's just wonderful!
Update again, now have PERIODRANDOM_#
Can we get the variables for the production of energy through fuel cells, solar panels and alternator?