JPLRepo

[1.3] AmpYear Main & Reserve Power Manager (v1.4.9.0) 21st June 2017

447 posts in this topic

4 hours ago, JPLRepo said:

@wadena - If you want to give me a list of the Interstellar Extended parts you want supported that would be good. There are just so many parts in that mod.
Also, Unlikely I can support any parts in that mod that use MegaJoules instead of ElectricCharge (AmpYear only supports ElectricCharge and ReservePower resources).
Megajoules just makes it way more complicated.

Also for the Dark-Side calcs - I'm working on something like this:
7DJZJPI.png

So now in the Dark-Side calcs window it shows EC required for Dark-Side Transit = Power Consumer Parts that you have selected in the Parts List
EC produced for Dark-Side Transit = Power Production Parts you have selected in the Parts List (will also include solar panels unless you de-select them, I'm thinking I could automatically de-select Solar Panels if you have the Dark-Side Window Open, or you have to do it manually :- Looking for people's thoughts here
The Last line will show Surplus or Deficit EC required for the Dark-Side Transit depending on the difference between your producer parts and consumer parts you have selected.

@speedwaystar - Is your RLA stockalike fuel cell working? Seems to work for me?

@JPLRepo Thanks again for having a look at this.

I`m using a wide range of engines, and I don`t want to complicate things for you so I`ve selected just the one that I use the most and the Fusion Reactor I`m using:

  • "Closed Cycle Gas Core Engine".
  • "WB-MF Micro Fusion Reactor".

I`d be happy if you could add those two, and, of course, thrilled if you decide to add any more from that mod (or any mod with nuclear that provides EC). I`m still building relatively small rockets and I`m only planning a mission to Duna, but I was hoping I could use nuclear engines for that journey and beyond .

I`ve tried to go trough my inventory in the VAB and most of the nuclear engines I use has an EC output only, but I guess the problem is that they are always on/producing EC?

 

The dark-Side calculations look great! Definitely include solar panels by default. I don`t know about other players but I`m most likely to forget to tick that box and get my EC Calculations wrong ;-)

Share this post


Link to post
Share on other sites
6 hours ago, JPLRepo said:

Is your RLA stockalike fuel cell working? Seems to work for me?

found the problem.

@PART[FuelCell]
{
	@MODULE[ModuleResourceConverter] 
	{
		@name = ModuleFuelCell
	}
}

@PART[FuelCellArray]
{
	@MODULE[ModuleResourceConverter] 
	{
		@name = ModuleFuelCell
	}
}

@PART[NBfuelCell1m]
{
	@MODULE[ModuleResourceConverter] 
	{
		@name = ModuleFuelCell
	}
}

@PART[RLA_mp_small_fuelcell]
{
	@MODULE[ModuleResourceConverter] 
	{
		@name = ModuleFuelCell
	}
}

@PART[SDHI_2.5_AvionicsRing]
{
	@MODULE[ModuleResourceConverter] 
	{
		@name = ModuleFuelCell
	}
}

@PART[SDHI_2.5_ServiceModule]
{
	@MODULE[ModuleResourceConverter] 
	{
		@name = ModuleFuelCell
	}
}

@PART[US_1P110_Wedge_Fuelcell]
{
	@MODULE[ModuleResourceConverter] 
	{
		@name = ModuleFuelCell
	}
}

@PART[US_1R330_Wedge_Hydrogen]
{
	@MODULE[ModuleResourceConverter] 
	{
		@name = ModuleFuelCell
	}
}


one of my 50 billion and counting addons renames ModuleResourceConverter to ModuleFuelCell so that it can add a handler which allows them to be toggled with an action group.. which is quite convenient.

from memory (i'll check, though) the nuclear part which was presenting problems was one of the Atomic Age engines, which has:

MODULE
{
	name = ModuleAlternator	
	RESOURCE
	{
		name = ElectricCharge
		rate = -0.3		//less output while burning, Energy goes into propellant
	}
}

MODULE
{
	name = ModuleGenerator
	isAlwaysActive = true
	OUTPUT_RESOURCE
	{
		name = ElectricCharge
		rate = 0.7
	}
}

the negative alternator values might be an edge case for AmpYear.

Edited by speedwaystar

Share this post


Link to post
Share on other sites

@wadena I've completed coding update for the Dark-Side calcs. It automatically excludes Solar Panels when you have the Dark-Side window open and remembers/restores which parts you have selected for the EC calcs when you close the Dark-Side Window.
I'm now working on re-adding Interstellar Extended support - This will take a bit of time.

@speedwaystar I've added support for ToggleFuelCell mod you are using and I am looking at your Atomic Age Engines.

Once I have Interstellar and Atomic Age Engines covered I'll release a new version.

 

 

2 people like this

Share this post


Link to post
Share on other sites
1 hour ago, JPLRepo said:

@wadena I've completed coding update for the Dark-Side calcs. It automatically excludes Solar Panels when you have the Dark-Side window open and remembers/restores which parts you have selected for the EC calcs when you close the Dark-Side Window.
I'm now working on re-adding Interstellar Extended support - This will take a bit of time.

@speedwaystar I've added support for ToggleFuelCell mod you are using and I am looking at your Atomic Age Engines.

Once I have Interstellar and Atomic Age Engines covered I'll release a new version.

 

 

Fantastic! Thank you for adding the parts, no need to stress with it :P

Share this post


Link to post
Share on other sites

if only Scott had used AmpYear! :D

 

Edited by speedwaystar

Share this post


Link to post
Share on other sites

Stopping by to give support for a seriously great mod (I seem to be in all your threads lately, heh) and to drop off another bug report, sorry.:(

This has happened a number of times now with a couple of mods (CTN's Cube Sat mod, and now Shadow Works Capsule), where AMPYear reports wildly inflated consumption values in the editor, but the accurate values when you get to the launch pad.

Pictures are resized, but if you open in a new tab (or just take my word for it), you'll see AMPYear saying the capsule Drains 24.999 for a Total Drain of 25.35.

H80FdTb.png

 

Here we have the actual value, on the launch pad, from the capsule: 0.050 drain, for a total of 0.066. Which, come to think of it, for a 6 man capsule, is seriously low. Dang.

ZP8F1ex.png

I don't know if there is some weird way these two mods are reporting power usage or what, but I thought you'd want to know. Either way, the work around is easy enough, it just makes things a little difficult in the VAB (not sure how things are in the SPH, probably the same).

As mentioned previously, I have lots of other mods installed, so a conflict is definitely possible. Only other one that I can think of that similar functionality, maybe, is Ship Manifest? There is also a MegaJoule Manager (which you can see the icon of in the 2nd picture next to the AMPYear icon); not sure where that's from honestly, but it just measures power output versus theoretical supply and seems harmless, but maybe not.

I'll be glad to provide my player.log if you're curious and you think it'll help (I didn't see anything relevant to AMP Year on a cursory examination). This isn't particularly a support request, just a bug report.

Cheers.

(linux x64 bit, etc etc)

Share this post


Link to post
Share on other sites
55 minutes ago, Deimos Rast said:

Stopping by to give support for a seriously great mod (I seem to be in all your threads lately, heh) and to drop off another bug report, sorry.:(

This has happened a number of times now with a couple of mods (CTN's Cube Sat mod, and now Shadow Works Capsule), where AMPYear reports wildly inflated consumption values in the editor, but the accurate values when you get to the launch pad.

Pictures are resized, but if you open in a new tab (or just take my word for it), you'll see AMPYear saying the capsule Drains 24.999 for a Total Drain of 25.35.

H80FdTb.png

 

Here we have the actual value, on the launch pad, from the capsule: 0.050 drain, for a total of 0.066. Which, come to think of it, for a 6 man capsule, is seriously low. Dang.

ZP8F1ex.png

I don't know if there is some weird way these two mods are reporting power usage or what, but I thought you'd want to know. Either way, the work around is easy enough, it just makes things a little difficult in the VAB (not sure how things are in the SPH, probably the same).

As mentioned previously, I have lots of other mods installed, so a conflict is definitely possible. Only other one that I can think of that similar functionality, maybe, is Ship Manifest? There is also a MegaJoule Manager (which you can see the icon of in the 2nd picture next to the AMPYear icon); not sure where that's from honestly, but it just measures power output versus theoretical supply and seems harmless, but maybe not.

I'll be glad to provide my player.log if you're curious and you think it'll help (I didn't see anything relevant to AMP Year on a cursory examination). This isn't particularly a support request, just a bug report.

Cheers.

(linux x64 bit, etc etc)

Without knowing the part(command pod) you are using (as I've never seen it before) I would say sounds about right. AmpYear can only guess the power usage in the editor (VAB/SPH) so it guesses the MAXimum amount. The part list was added to assist people in seeing what each part is being reported at.

The main problem with command pods is reaction wheels. And life support mods etc that add variable power consumption to a command pod. I'm guessing in this case your command pod has large reaction wheels and they are heavy EC user. I might look at splitting command pod modules up to show every power consumer within them as this has been asked a few times now.

oh, and Megajoules - that is from KSP Interstellar and Ampyear does not support that mod right now. See posts above, it's something I'm working on re-adding but it's taking time as KSPIE has so many parts.

Edited by JPLRepo

Share this post


Link to post
Share on other sites

The Orion Capsule from the Shadow Works mod, here.

Link to OrionPod.cfg or the relevant Reaction Wheel info below:

MODULE
{
    name = ModuleReactionWheel
    PitchTorgue = 18
    YawTorque = 18
    RollTorque = 18
    RESOURCE
    {
        name = ElectricCharge
        rate = 1.4
    }

I mentioned another mod, CTN's Cube Sat, which also have Reaction Wheels, so it might be a similar situation, but they're tiny probes and AMPYear comes back with numbers of 25 and 40 for drainage. They also have built in data transmitters, as do these pods, so maybe it's like you said, when everything is running at full blast (i.e. data fully transmitting, wheels a'spinnin') then AMP's numbers are accurate. That would make sense, as in those situations, my energy supply definitely can't keep up if I've built for the numbers I found on the launch pad.

Share this post


Link to post
Share on other sites
2 hours ago, Deimos Rast said:

The Orion Capsule from the Shadow Works mod, here.

Link to OrionPod.cfg or the relevant Reaction Wheel info below:


MODULE
{
    name = ModuleReactionWheel
    PitchTorgue = 18
    YawTorque = 18
    RollTorque = 18
    RESOURCE
    {
        name = ElectricCharge
        rate = 1.4
    }

I mentioned another mod, CTN's Cube Sat, which also have Reaction Wheels, so it might be a similar situation, but they're tiny probes and AMPYear comes back with numbers of 25 and 40 for drainage. They also have built in data transmitters, as do these pods, so maybe it's like you said, when everything is running at full blast (i.e. data fully transmitting, wheels a'spinnin') then AMP's numbers are accurate. That would make sense, as in those situations, my energy supply definitely can't keep up if I've built for the numbers I found on the launch pad.

Yes so in the VAB AmpYear would be using the 18 EC for roll, yaw, pitch (ie. x3) plus data transmitter at max, etc. So it is working correctly. I think the issue here is not understanding that or having the breakdown of that information. So I think I will look at providing that breakdown of the  pods EC usage he parts list screen. That way you can see the info in the VAB and plan appropriately.

Share this post


Link to post
Share on other sites

Oh, it's 18ec times 3? I thought the wheel as a whole used 18, not per axis. I should probably mention I'm pretty new, and am lucky to know which way is up (which is why I need AMPYear, obviously:D).

Glad, we got that sorted.

By the way, what's the 'booster' function?

Oh, and an idea that might a nice feature: the power savings feature you have - let the player customize what actions to take. It could be as simple as choosing from a predefined list (turn off lights, antenna, deploy solar panels, etc) or action key/groups compatible (maybe even tie in with the Action Group Extended Mod). I have no idea how feasible it would be, or how much work it'd take, but it'd be nice.

Also, I forget which mod does it, but I have the ability to lock electricity (by hotkey/actiongroup), to prevent the automatic draining of my reserve battery packs, which is a nice feature, since sometimes I want to save my reserve power for the right moment. Giving the player a little more control over the usage of the reserve power packs instead of "automatic drain" would also be nice.

Just a couple ideas, take 'em or leave 'em.

Thanks again.

Share this post


Link to post
Share on other sites

I don't understand the buttons on the Power Manager/Reserve Power section which have 3 values for each of "Reserve to Main" and "Main to Reserve".  Are these power levels of the first part at which power is transferred from the first to the second?

Share this post


Link to post
Share on other sites
57 minutes ago, Brigadier said:

I don't understand the buttons on the Power Manager/Reserve Power section which have 3 values for each of "Reserve to Main" and "Main to Reserve".  Are these power levels of the first part at which power is transferred from the first to the second?

Clicking on the buttons will transfer the specific amount (as a percentage) of Reserve power to Main EC or vice versa.

1 person likes this

Share this post


Link to post
Share on other sites

Work continues on the next version....
Current (Proposed) ChangeLog:

V1.2.0.0 Added EC Producer parts to Dark-Side Calculation window. Solar Panels are automatically excluded for power calculations while you have the Dark-Side Calculation window open. When you close the Dark-Side Calculation window Solar Panels are reset to their previous selection state (it remembers if you had them selected or not).
Added support for ToggleFuelCell mod, which is a tiny mod that changes the Fuel Cells from ModuleResourceConverter to it's own ModuleFuelCell (which is just a wrapped ModuleResourceConverter). When using this mod Fuel Cells are now handled.
Fixed bug with Alternators and updated to handle negative power alternators (ie. Atomic Age Rockets).
Changed PartsList to provide a break-up of parts that contain multiple modules that consume or produce EC.
Corrected EC usage for AmpYears own ION and PPT RCS parts in the editor.



			
		

Share this post


Link to post
Share on other sites

If you have the time, I would like to see the AmpYear toolbar icon change colour to reflect the in-flight EC charge/discharge status.  Just a thought.

1 person likes this

Share this post


Link to post
Share on other sites
11 hours ago, Brigadier said:

If you have the time, I would like to see the AmpYear toolbar icon change colour to reflect the in-flight EC charge/discharge status.  Just a thought.

Done... Version 1.2.0.0 Released. See the OP for download links.
NB: The in-game AY icon has changed to a Battery Icon that is Red, Yellow, Green. Works with Stock Icons and Blizzy's ToolBar icons.
I'll update the Imgur Library later.
Full Changelog for this version:
 

Spoiler

V1.2.0.0 Added EC Producer parts to Dark-Side Calculation window. Solar Panels are automatically excluded for power calculations while you have the Dark-Side Calculation window open. When you close the Dark-Side Calculation window Solar Panels are reset to their previous selection state (it remembers if you had them selected or not).   
Added support for ToggleFuelCell mod, which is a tiny mod that changes the Fuel Cells from ModuleResourceConverter to it's own ModuleFuelCell (which is just a wrapped ModuleResourceConverter). When using this mod Fuel Cells are now handled.   
Fixed bug with Alternators and updated to handle negative power alternators (ie. Atomic Age Rockets).   
Changed PartsList to provide a break-up of parts that contain multiple modules that consume or produce EC.   
Corrected EC usage for AmpYears own ION and PPT RCS parts in the editor.   
Implemented colour coded Icons - Green will always appear in the SpaceCenter (will look to see if possible to change the colour based on any of your active vessels EC status in a future release).   
It's fairly rudimentary for this version, happy to look at any feedback anyone has.   
In flight colour will change for the active vessel from Green to Yellow to Red and back again based on EC status.   
Default ReservePower on all Probes and Pods has been boosted from 50 to 80 units.    
If you have RealismOverhaul installed the default ReservePower on all Probes and Pods is now 2000 units (haven't fully tested game balance, so happy to change this based on feedback).

 

Edited by JPLRepo
3 people like this

Share this post


Link to post
Share on other sites

Good work and glad to see some of what we talked about made it into this update.

Downloading now.

 

Share this post


Link to post
Share on other sites
19 minutes ago, Deimos Rast said:

Good work and glad to see some of what we talked about made it into this update.

Downloading now.

 

NP.

On 24/02/2016 at 0:24 PM, Deimos Rast said:

Oh, and an idea that might a nice feature: the power savings feature you have - let the player customize what actions to take. It could be as simple as choosing from a predefined list (turn off lights, antenna, deploy solar panels, etc) or action key/groups compatible (maybe even tie in with the Action Group Extended Mod). I have no idea how feasible it would be, or how much work it'd take, but it'd be nice.

Also, I forget which mod does it, but I have the ability to lock electricity (by hotkey/actiongroup), to prevent the automatic draining of my reserve battery packs, which is a nice feature, since sometimes I want to save my reserve power for the right moment. Giving the player a little more control over the usage of the reserve power packs instead of "automatic drain" would also be nice.

I have these ideas on the list. Just long overdue for an update. I'll look to put them into the next version.

1 person likes this

Share this post


Link to post
Share on other sites
3 hours ago, JPLRepo said:

Done... Version 1.2.0.0 Released. See the OP for download links.

Many thanks for the quick work, and not just on my suggestion.

Share this post


Link to post
Share on other sites
1 hour ago, Brigadier said:

Many thanks for the quick work, and not just on my suggestion.

NP. No a few people have asked for it before... so finally got around to doing it. Enjoy.

Share this post


Link to post
Share on other sites

Here's a possible idea to expand upon your AmpYear Linear PPT RCS Port (the one that uses Teflon). It took me a while to realize it (only when I looked at it's config), that the RCS thruster itself was the source of the Teflon resource, which I had never realized. Now, I don't know how long 5 Teflon is supposed to last (config says a ratio of 0.01, I'm guessing that's per burst? Which seems pretty good, but I've never tested it in game), but what about adding it to your bigger reserve batteries? Or better yet, make a hybrid one specifically for that role, so as not to add unnecessary cost/function to the main Reserve batteries. Obviously, this is something that can easily be done via a config edit (or MM rather), and I probably will, but I think you've created a cool idea and some battery diversity might be an interesting change of pace.

Just a thought, take it or leave it.

Cheers.

(I really like the changes you made in the new version of AMP btw, the parts break down is much easier to understand)

Share this post


Link to post
Share on other sites
5 hours ago, Deimos Rast said:

Here's a possible idea to expand upon your AmpYear Linear PPT RCS Port (the one that uses Teflon). It took me a while to realize it (only when I looked at it's config), that the RCS thruster itself was the source of the Teflon resource, which I had never realized. Now, I don't know how long 5 Teflon is supposed to last (config says a ratio of 0.01, I'm guessing that's per burst? Which seems pretty good, but I've never tested it in game), but what about adding it to your bigger reserve batteries? Or better yet, make a hybrid one specifically for that role, so as not to add unnecessary cost/function to the main Reserve batteries. Obviously, this is something that can easily be done via a config edit (or MM rather), and I probably will, but I think you've created a cool idea and some battery diversity might be an interesting change of pace.

Just a thought, take it or leave it.

Cheers.

(I really like the changes you made in the new version of AMP btw, the parts break down is much easier to understand)

In the OP it says this about the PPT RCS thrusters:
Each thruster contains a fixed amount of Teflon and uses this along with Electric Charge for incredibly efficient propulsion for small craft or maneuvering.
I have no plans to make Teflon a resource that the thrusters can use from anywhere on the ship.. because it's not a liquid or gas. If you refer to the link the OP you can read about this type of thruster. It's meant to be an efficient thruster but it has a finite life. In fact thanks for that, because I think I will just change the partmodule for this part to ensure it can ONLY use the teflon that is contained within the part.

Thanks for the input and glad you like the latest version.

Share this post


Link to post
Share on other sites

Was just going back through the posts and wanted to check:-

@speedwaystar can you tell me if the latest version is working with your fuel cell mod and atomic age engines?

@wadena I added some KSPIE parts support but not all, let me know what I have missed.

2 people like this

Share this post


Link to post
Share on other sites
On 3/3/2016 at 5:53 PM, JPLRepo said:

 can you tell me if the latest version is working with your fuel cell mod and atomic age engines?

the fuel cell mod works. will check the atomic engine soon.

Edited by speedwaystar

Share this post


Link to post
Share on other sites

So I'm noticing that my command pods are getting duplicate Reserve Power stocks, but they aren't even amounts:

lp48xRg.jpg

The command pod above has 100RP, and 80RP units. Any idea why? Have removed the mod and done a complete re-install and the problem persists.

EDIT: ignore this, the Abreviations for Reserve Power and Replacement Parts {added by a different mod} are the same and I missed this. could have saved myself 2 hours of testing and reloading had I noticed this sooner. :(

Edited by vardicd

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now