Jump to content

[1.2.2] Contract Pack: Clever Sats 1.4 (13/12/2016)


severedsolo

Recommended Posts

  • 10 months later...

I think I have a problem related to this mod. Contract told me to repair a solar panel on a satellite, but when I got there, it turned out that the panel is fine. And it is second time in a row I have this issue, first time I thought it's just an accident. Is there a way to deal with it?

Link to comment
Share on other sites

  • 7 months later...
On 9/8/2022 at 9:48 PM, vorastra said:

aHn3MaA.png

Is this normal I don't have any "launch new satelite" contract?

As this contract pack is a little out of date you need to update one part name in one file to make it work.

See this post..

https://forum.kerbalspaceprogram.com/index.php?/topic/132844-122-contract-pack-clever-sats-14-13122016/&do=findComment&comment=3938345

Link to comment
Share on other sites

  • 1 year later...

Hi, I'm using KSP 1.12.5.3190 with all the DLCs.
The 'Basic Science' that contains the 'stayputink' probe was researched and don't see any contract to create a new satellite.

There are no errors in the KSP.log

I have no other mods, except the dependencies for this one.

 

I fixed the 'line 19' issue, and created a 'patch.cfg' file in the 'GameData\misc' folder with the suggest MM patch that is found here:

Still, no contracts. Any suggestion?

Link to comment
Share on other sites

  • 2 months later...
On 3/10/2021 at 2:54 PM, VoidSquid said:

I edited my old post, mind to check if my addendum is correct, please @4x4cheesecake ? 

Thanks in advance.

 

In case anyone is still using this in 2024 then KopernicusSolarPanels needs to be changed to KopernicusSolarPanel

 

    REQUIREMENT:NEEDS[Kopernicus]
    {
    name = PartModuleUnlocked
    type = PartModuleUnlocked
    partModule = KopernicusSolarPanel
    }

 

Something was changed in Kopernicus. 

Spoiler

// If any modder adds useKopernicusSolarPanels = false to a module instead of a part, add it to the part:
@PART:HAS[@MODULE:HAS[#useKopernicusSolarPanels[?alse]]]:FINAL
{
    %useKopernicusSolarPanels = false
}

// Uses regular expressions to convert any case variants like FalSe to false
@PART:HAS[#useKopernicusSolarPanels[*]]:FINAL
{
    // This cfg will enable KopernicusSolarPanels
    // to allow support for multiple lightsources
    // 
    // If you want to avoid this, add "useKopernicusSolarPanels = false" to the PART node
    // That will stop Kopernicus from changing the behaviour of SolarPanel
    @useKopernicusSolarPanels,* ^= :F:f:
    @useKopernicusSolarPanels,* ^= :A:a:
    @useKopernicusSolarPanels,* ^= :L:l:
    @useKopernicusSolarPanels,* ^= :S:s:
    @useKopernicusSolarPanels,* ^= :E:e:
}

//First delete all old "KopernicusSolarPanels" fixers
@PART:HAS[@MODULE[ModuleDeployableSolarPanel]]:FINAL
{
    !MODULE[KopernicusSolarPanels] {}
}

// Converts all ModuleDeployableSolarPanel modules within a part to KopernicusSolarPanels unless the part has useKopernicusSolarPanels = false
@PART:HAS[@MODULE[ModuleDeployableSolarPanel],~useKopernicusSolarPanels[false]]:FINAL
{
    @MODULE[ModuleDeployableSolarPanel],*
    {
        @name = KopernicusSolarPanel
    }
}

//B9PartSwitch support, changes the identifier to a generic identifier, just to be safe, but only runs if the part does not have useKopernicusSolarPanels = false ... 
@PART:HAS[@MODULE[ModuleB9PartSwitch],~useKopernicusSolarPanels[false]]:FINAL
{
    @MODULE[ModuleB9PartSwitch],*
    {
        @SUBTYPE,*
        {
            @MODULE:HAS[@IDENTIFIER[ModuleDeployableSolarPanel]]
            {
                @IDENTIFIER[ModuleDeployableSolarPanel]
                {
                    @name = KopernicusSolarPanel
                }
            }
        }
    }
}

// clean up
@PART:HAS[#useKopernicusSolarPanels[*]]:FINAL
{
    !useKopernicusSolarPanels = delete
}

@PART:HAS[@MODULE:HAS[#useKopernicusSolarPanels[*]]]:FINAL
{
    @MODULE,*:HAS[#useKopernicusSolarPanels[*]]
    {
        !useKopernicusSolarPanels = delete
    }
}

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...