Kerbal Planetary Base Systems

Kerbal Planetary Base Systems

1M Downloads

Incorrect greenhouse production rates.

Odieman1 opened this issue ยท 2 comments

commented

The current output of food is nearly 25x the current base Kerbalism greenhouse. Speaking with Sir Mortimer about it, he told me this is indeed incorrect. Here is a fix, beginning at line 117 and ending at line 251 of KPBS_MM_Kerbalism_Default.cfg.

        crop_size = 27.5625                      // Volume is 23-24 m^3, which is comparable to the Kerbalism greenhouse, supports 0.5 Kerbals in terms of food
        crop_rate = 0.00000023148
        ec_rate = 2.5

        light_tolerance = 400.0
        pressure_tolerance = 0.1
        radiation_tolerance = 0.000008333

        lamps =
        shutters = Greenhouse_Deploy
        plants =

        INPUT_RESOURCE
        {
            name = Ammonia
            rate = 0.000095703125                    // 15 units required per unit of crop, i.e. 200 days * 3600 seconds per hour * 6 hours * rate == 15 * crop_size
        }

        INPUT_RESOURCE
        {
            name = Water
            rate = 0.0000031901                  // 0.5 units required per unit of crop, i.e. 200 days * 3600 seconds per hour * 6 hours * rate == 0.5 * crop_size
        }

        INPUT_RESOURCE
        {
            name = CarbonDioxide              // Plants can work on WasteAtmosphere without a scrubber inbetween, but there is no way to produce WasteAtmosphere right now if a scrubber has converted it all, or if CO2 is the primary source
            rate = 0.000415266575                    // Matched to Oxygen output, by comparing the molecular mass ratio, and the density ratio to arrive at rate ratio, total ratio used is CO2 rate = 1.0088 * O2 rate
        }

        OUTPUT_RESOURCE
        {
            name = Oxygen
            rate = 0.00172379825                    // 100% of oxygen required by 1 crew member, based on Prototype Lunar Greenhouse design targets (percentage is factor 2 larger than food)
        }
    }

    MODULE
    {
        name = Habitat
        toggle = false
    }

    MODULE
    {
        name = ProcessController
        resource = _PressureControl
        title = Pressure control
        capacity = 0.2143
        running = true
    }

    RESOURCE
    {
        name = Waste
        amount = 0
        maxAmount = 10
    }

    RESOURCE
    {
        name = Ammonia
        amount = 1000
        maxAmount = 1000
    }

    RESOURCE
    {
        name = CarbonDioxide
        amount = 10000
        maxAmount = 10000
    }

    RESOURCE
    {
        name = Nitrogen
        amount = 10000
        maxAmount = 10000
    }

    RESOURCE
    {
        name = Water
        amount = 50
        maxAmount = 50
    }
}

@PART[KKAOSS_LS_container_greenhouse]:FOR[PlanetarySurfaceStructures]:NEEDS[Kerbalism&ProfileDefault]
{
    @TechRequired = scienceTech
    @cost = 4000
    
    MODULE
    {
        name = Greenhouse

        crop_resource = Food
        crop_size = 2.75625 // Approximately 1/10th of the volume of the normal greenhouse, so supports 0.05 Kerbal
        crop_rate = 0.000000023148
        ec_rate = 0.5

        light_tolerance = 400.0
        pressure_tolerance = 0.1
        radiation_tolerance = 0.000008333

        lamps =
        shutters =
        plants =

        INPUT_RESOURCE
        {
            name = Ammonia
            rate = 0.0000095703125                   // 15 units required per unit of crop, i.e. 200 days * 3600 seconds per hour * 6 hours * rate == 15 * crop_size
        }

        INPUT_RESOURCE
        {
            name = Water
            rate = 0.00000031901                 // 0.5 units required per unit of crop, i.e. 200 days * 3600 seconds per hour * 6 hours * rate == 0.5 * crop_size
        }

        INPUT_RESOURCE
        {
            name = CarbonDioxide              // Plants can work on WasteAtmosphere without a scrubber inbetween, but there is no way to produce WasteAtmosphere right now if a scrubber has converted it all, or if CO2 is the primary source
            rate = 0.0000415266575                   // Matched to Oxygen output, by comparing the molecular mass ratio, and the density ratio to arrive at rate ratio, total ratio used is CO2 rate = 1.0088 * O2 rate
        }

        OUTPUT_RESOURCE
        {
            name = Oxygen
            rate = 0.000172379825                   // 100% of oxygen required by 1 crew member, based on Prototype Lunar Greenhouse design targets (percentage is factor 2 larger than food)
        }
    }
    
commented

Thanks a lot again. The changes were add to release 1.6.10 with commit 687e016

commented

Thanks, i will add this change in the next update :)