UCGO SDK Bug?
I think I may have found the problem with the UCGO "EAT CARGO" functions...
It appears that the "EatCargoByType" function needs to have a number larger than 45 in the last perameter to work as published in the SDK. If the number is 45 or less it returns a -1.0.
examples...
Could use a bit of help from anyone who is more familiar with the UCGO SDK than I.
The following code is suposed to transfer the remaining battery power from the external UCGO battery to the internal battery tank leaving 40kg of "battery" power in the external UCGO battery.
The code works...
Dan, I am using "SimTime" as the clock and SimTime apears to change it's rate relative to the time compression rate. Wouldn't my battery and resource check based on SimTime not be adversly affected by simtime rate? If I'm wrong please lemme know.
The internal tanks of both Electricity and O2...
Cargos have always been intended to be external tanks to refill internall tanks, so no issue there, you and I are on the same page.
Why would 5mn checks cause a problem? Isn't it better than 5 second checks? I would much rather do the checks and calculations every 5 minutes and then also...
I was planning on doing the tank checks and consumption around every 5 minutes and the UMMU checks for o2 consumption rate every 5 seconds.
I was gonna drain the batteries and o2 tanks down to 1% before both needed recharge.
...
JB
First off, thanks for the help.. That fixed it...
Good point about replacing the batteries, and I thought about just letting the UCGO code destroy the batts when empty, but I liked the idea of charging and discharging batts (Ucgo resource cargo) and having to actually move the batts to and...
I understand you don't "Eat" batteries, but to use the UCGO standard and functionality, I had to eat something. ;)
Ohh man, the mistake is pretty obvious isn't it... Thank alot...
JB
I am having difficulty figuring out why the UCGO function, "EatCloserCargoByType" is not removing any resource weight from the UCGO resource cargo. I am not recieving any errors and the rest of the code is working fine.
Maybe if some of you fine fellas can take a look at this for me, I would...
Again great addon Dan, thanks a ton.
In the midst of your Moon Rescue scenario, I docked the DG4 to the ISRU with the 3 UMMU's in it, but not in a cryogenic state.
After docking I changed focus to the ISRU and all the info on the HUD was not there, the HUD was empty. I remember "E" being...
So I am working on two projects which will ultimately work in tandem. One is an UCGO Solar array that charges UCGO batteries. (This one is done and functional, although I need to find someplace other than the debug string to give player feedback, as I have disabled the hud and am using action...
Ok... That really ties it all together now. It's getting a bit clearer now how all this relates to performance. It's really the overhead on the system per frame. Just thinking of how to try and put this together makes my head spin around.
Oh, and by the way, good choice on the Bobsled...
Wow... Yeah it does... Now understand I just picked up my first C++ book a week ago, but I am able to struggle through reading code and I can write a bit from scratch.
So just to recap. You would get all the vessels info in orbiter, then prioritize the more frequent checks based on the...