Jump to content

Help With Making Contracts


Recommended Posts

I have been trying to make a new contract mod based on safety testing, when I came across a problem.

I put the contract folder in the Contract Packs folder created by Contract Configurator, start up a new game but my contact does not apear

 

My Contract

Spoiler

//Drop Mk 1 pod from height whilst surviving

CONTRACT_TYPE
{


//REQUIREMENTS FOR CONTRACT TO APPEAR

    REQUIREMENT
    {
        name = PartUnlocked
        type = PartUnlocked
        
        part = mk1pod
        invertRequirement = false

    }

    
//DATA NODES TO PROCESS FOR CONTRACT USE

//Contract Specific VesselParameterGroup Definition Key (to prevent conflict with other active contracts)
    DATA
    {
        type = string
        
        craft = PodTest
        
    }

    
    DATA
    {
        type = List<Kerbal>
        
        KerbalEngineer = [ NewKerbal( Male, “Gene Kerman” , “Engineer”) ]
        
    }


    DATA
    {
        type = int
        
        dropHeight = Random(100, 500)
        

//CONTRACT DESCRIPTION

    name = Test Integrity of Mk 1 Pod
    title = Test Integrity of Mk 1 Pod
    group = BT Industries
    agent = BT Industries

    description = Before the next launch Gene Kerman thought it would be a smart idea to test the integrity of the Mk 1 pod due to recent failures. Being a person with such flair as he is, Gene felt the need to do the testing up close and personal. We want you to drop a Mk 1 pod with a safety system with Gene in it from @/dropHeight metres.

    synopsis = Create a safety system for the Mk 1 pod and test it from @/dropHeight metres.

    notes = You must have a Mk 1 pod on the vessel.

    completedMessage = Test complete. Your new safety system has been certified and the blueprints are being sent to the other KSC for mass production.

//Contract Limits
       maxCompletions = 1
       maxSimultaneous = 1
    weight = 10.0

    autoAccept = false
    declinable = true
    cancellable = false

    minExpiry = 7.0
    maxExpiry = 7.0
    deadline = 0

//Contract Reward Modifiers
    prestige = Trivial
       targetBody = Kerbin

//Contract Rewards
      advanceFunds = 10.0
      rewardFunds = 20000.0
      rewardReputation = 0.1
     rewardScience = 5.0

//Contract Penalties
      failureFunds = 20010.0
     failureReputation = 4.0


//BEHAVIOURS TO DO WHEN CREATING CONTRACT

        BEHAVIOUR
    {
        name = SpawnKerbal
        type = SpawnKerbal

        KERBAL
        {
        
            kerbal = @/KerbalEngineer.ElementAt(0)
            kerbalType = Unowned
            owned = false
            addToRoster = true
        
    }
    
    
//PARAMETERS FOR CONTRACT COMPLETION

//Craft definition
    PARAMETER
    {
        name = VesselParameterGroup
        type = VesselParameterGroup
        title = Your test craft must
        
        define = @/craft
        dissassociateVesselsOnContractCompletion = true

    
        
        
        disableOnStateChange = false

    }

//Passenger Manifest - Have Gene
    PARAMETER
    {
        name = All
        type = All
        
        title = Have Gene Kerman on board
        
        PARAMETER
        {
            name = HasCrew
            type = HasCrew
            title = @/KerbalEngineer
    
            ITERATOR
            {
                type = Kerbal
                kerbal = @/KerbalEngineer
                
            }
            
            disableOnStateChange = true
            hideChildren = true
            
        }
        
        disableOnStateChange = true

        
        PARAMETER
        {
            name = PartValidation
            type = PartValidation
            title = have a Mk 1 pod
            
            part = mk1pod
            
            disableOnStateChange = false
            hideChildren = true
            
        }

    }
    
//Contract Goals
//Navigate to waypoint requirement include landing to a complete stop
    PARAMETER
    {
        name = VesselParameterGroup
        type = VesselParameterGroup
        title = Reach @/dropHeight metres
        
        vessel = @/craft
        
        PARAMETER
        {                        
            name = ReachState   
            type = ReachState

            targetBody = Kerbin
            situation = FLYING
            minAltitude = @/dropHeight
            
            completeInSequence = true
            disableOnStateChange = false
            hideChildren = true
            
        }
        
        

        completeInSequence = true
        disableOnStateChange = true
        hideChildren = true    
    
    }
    
//Passenger Manifest - Unload Outbound Passengers
    PARAMETER
    {
        name = VesselParameterGroup
        type = VesselParameterGroup
        title = Survive
    
        PARAMETER
        {
            name = ReachState
            type = ReachState
            
            targetBody = Kerbin
            situation LANDED

            disableOnStateChange = true
            hideChildren = true
            
        }

        disableOnStateChange = false
        

        PARAMETER
        {
        name = Any
        type = Any
        
        title = Still have Gene
        
        PARAMETER
        {
            name = HasCrew
            type = HasCrew
            title = @/KerbalEngineer
    
            completeInSequence = true
            disableOnStateChange = false
            hideChildren = true
            
        }
        
        disableOnStateChange = false

    }
        
        completeInSequence = true
        disableOnStateChange = false

    }
    


//Recovery Parameter - Craft & Kerbal Safety Check
    PARAMETER
    {
        name = All
        type = All
        title = safely
        
        
        
        PARAMETER
        {
            name = KerbalDeaths
            type = KerbalDeaths
            title = without killing anyone
            
            countMax = 1

        }
        
        completeInSequence = true
        disableOnStateChange = true
        
    }

//Recovery Parameter - Recover Kerbals
    PARAMETER
    {
        name = All
        type = All
        title = and recover gene
        
        PARAMETER
        {
            name = RecoverKerbal
            type = RecoverKerbal
            title = @/KerbalEngineer
    
            
            
            hideChildren = true
            
        }
        
    }
    
}

 

What have I done wrong.

Please Help

 

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...