Jump to content

Ratzap

Members
  • Posts

    838
  • Joined

  • Last visited

Posts posted by Ratzap

  1. You might check out how Contract Configurator does it. Looks like FlightGlobals.bodies is the list of all celestial bodies in the game, and then there are several methods and variables for querying a celestial body's rotation period (bodyname.rotationPeriod) (half of which is the darkness time, more or less), gravitational parameter (bodyname.gravParameter) (necessary to get orbital period), and then bodyname.orbit.semiMajorAxis to get the SMA.

    Also, I don't think Near Future alters solar properties anymore, though I don't know about Interstellar, sorry.

    Hey! Someone who reads the thread AND contributes useful information, make yourself comfortable pal ;) Seriously though, I was going to flick through some other mods to see how they handle it and you've saved me the effort - cheers.

    Fusebox seems to handle NFT Solar just fine, but it doesn't seem to recognize any of the NFTE reactors (or the USI ones, but now that NFT electrical is out I don't use those anymore). I can confirm that it also doesn't recognize ScanSat power usage.

    It worked for SCANsat12.0 when I tested it. What version are you using? Wonder if there's a new one out.

  2. I went back to the post from Pamidur about RPM integration and tried to test it. The PartModule code required is in Fusebox but the RPM configs didn't work - log file says

    [WRN 17:54:24.152] [Part]: PartModule FuseBoxMonitor at mk1pod, index 13: index exceeds module count as defined in cfg.

    Looking for FuseBoxMonitor in other indices...

    [ERR 17:54:24.153] ...no FuseBoxMonitor module found on part definition. Skipping...

    I dug a bit deeper, looked at the RPM documentation and it turns out the config Padimur has is for Hyomoto via Navutil via RPM. Hyomoto hasn't updated for about a year and although the thread seems to have an install method it looks pretty dodgy. The RPM code can stay in as it's not hurting anything but if someone wants to have a go at making an up to date RPM config file set to include with Fusebox, step right up ;) Your starter for 10 is:

    FuseboxVariables.cfg

    RPMCVARIABLEHANDLER
    {
    name = FuseBoxMonitor
    method = ProcessVariable
    variable = FBAVAILABLE,0
    variable = ELECTRICCONSUMPTION,0
    variable = ELECTRICPRODUCTION,0
    variable = ELECTRICDELTA,0
    variable = ELECTRICSTATUS
    }

  3. You can set the colours by editing the config.xml file as detailed some pages back. Basically it's stored as RGB values in there, adding UI support for colour selection might be on the cards after KSP moves to Unity 5 and the whole UI system gets overhauled.

    What is the KSP skin bug? Details please and I'll see what I can do.

    TT-18 launch stabs ARE generators. They supply 1 charge per second whilst on the pad. The filter setting for clamps is what stops them being included in generators.

    The planets thing is another one of those hard to do things which depends on other code. Mods like Near future and Interstellar alter the solar properties themselves, if it's done with a DLL instead of overriding stock methods then you don't know it's been changed. RSS, RO, x64, planet packs - how do those get handled? It's only fairly recent that stock KSP has started supporting methods to ask 'what planets do you have? how big are they?' etc. I might revisit the problem soonish but I might also wait until the Unity 5 update.

    Darkness time is calculated with this mathematics simplified for equatorial, inclination 0, circular orbits. Your RT web page seems to get rougly half the time, why I cannot say. I implemented the mathematics I found, I am not up to checking their veracity ;)

  4. That's the problem. The stage I'm having the issue with is the final stage that gets me into Kerbin orbit. Once decoupled, it is in orbit itself. Oh well, only like 6-8k lost for an unrecovered mainsail stage.

    You can add recovery capability to orbital stages but of course it adds to the mass and cost. A radial mounted probe core, battery and a fuel reserve are all you need. Or you can build recovery tugs to rendezvous with debris, collect it and bring it back.

  5. Just so you know, while it complains about incompatibility, toolbar seems to be working fine. I've had no issues with it yet.

    Why not just do a quick recompile with the 1.0 modules and tell people that it would get no support as you are working on a proper release?

    As you desire, it doesn't take long. Personally though I do not use anything which has not been specifically built for the current KSP version.

  6. Stone, Fusebox is not 1.0 compatible. That it runs at all is fairly interesting but I'd expect a whole bunch of exceptions (it's built against other DLL versions from 0.90 so every time it goes near one of those parts it'll barf).

    If blizzy updates his toolbar sometime soon, I'll compile a 1.0 compatible old type Fusebox to keep people trucking while I work on the re-write.

  7. Yep, seems the probe cores have a ModuleCommand module. Guessing that's what's triggering the ~0.4kW TACLS drain in Fusebox? Is it not possible to get electricity usage from TACLS on the fly?

    Nope, it doesn't have any API methods to fetch if it's doing things. So all Fusebox can do is ask it how much the default drain is set to for command pods and add that. All cured if Squad get the event into 1.0

  8. Hello! Just updated to 1.3, since I didn't realize the version on CKAN was outdated, and for the most part it seems to be working just fine. So thank you for writing this mod! Makes planning a heck of a lot easier.

    Only thing I've noticed is that 1.3 seems to massively overestimate the amount of electricity probe cores use; I'm playing with the RO/RP-0 set of mods, though, so I'm not sure if that's playing into it. I have a OKTO2 on one of my satellites, which is stated to consume 3.6EC/hour. Fusebox 1.2 correctly calculated that as 0.001EC/second, but 1.3 thinks that it consumes 0.05EC/second. As a result, it predicts the satellite batteries draining within a half hour, when in reality the batteries are charging just fine.

    Is there something I'm missing? I very much prefer overstating consumption rate instead of understating (which 1.2 did), but perfect accuracy would be ideal...

    TACLS takes a flat rate 0.04, or at least it used to. RP-0 also changes a lot of the configs behind the scenes so there could be something there too.

  9. Did a quick check before heading off to work and sure enough, that line is in my log! I installed both RT2 and FuseBox via CKAN. Guess I'll have to manually install them since it appears to have given me incompatible versions.

    Thanks for pointing me in the right direction!

    CKAN will be getting the old zip from curse so there's your problem. I wish curse would get a move on and fix the new zip.

×
×
  • Create New...