Jump to content

[1.12.x] Cacteye 2 Refocused Full Release


linuxgurugamer

Recommended Posts

Im so glad to find it updated. I thought this mod was dead. I remember when I was 14/15 12/13 I loved this mod so much. And that was already 6 years ago 9 years ago. Thanks <3! 

Edit: Oh wait, that was back in 2014... 

Edited by BlackBourn
it was 9 years ago, no 6 :O
Link to comment
Share on other sites

Have both Space Dust and Cacteye installed and was wanting to have access to the original Space Dust telescope model which gets overwritten by this mod, so I wrote up a patch to split the versions so that they can coexist. Thought I'd post it here in case anyone else wanted to use it. Also, I was having issues with the Cacteye telescope tubes duplicating endlessly in the tech tree and this might fix that issue (my guess is that this was the result of two parts with the same name getting created at every game load), but I can't be sure until I test it for a while on my main save.

 

Spoiler
//Delete the old parts to prevent duplication
!PART[spacedust-telescope-1]{}
!PART[spacedust-telescope-1-small]{}

//Recreate Space Dust Telescope
PART
{
	name = spacedust-telescope
	module = Part
	author = Chris Adderley (Nertea)
	rescaleFactor = 1
	MODEL 
  {
		model = SpaceDust/Parts/Scanning/spacedust-telescope-1
	}

	scale = 1

	node_attach = 0.0, 0.0, -1.254, 0.0, 0.0, 1, 1
  node_stack_bottom = 0.0, 0.0, -1.254, 0.0, 0.0, -1, 1

	TechRequired = advScienceTech
	entryCost = 52000
	cost = 25000
	category = Science
	subcategory = 0
	title = #LOC_SpaceDust_spacedust-telescope-1_title
	manufacturer = #LOC_SpaceDust_manufacturer_postkerbin
	description = #LOC_SpaceDust_spacedust-telescope-1_description
	attachRules =1,1,1,1,0
	mass = 3
	dragModelType = default
	maximum_drag = 0.25
	minimum_drag = 0.25
	angularDrag = .5
	crashTolerance = 8
	breakingForce = 200
	breakingTorque = 200
	maxTemp = 1500
	bulkheadProfiles = srf, size1p5

	tags = #LOC_SpaceDust_spacedust-telescope-1_tags

  MODULE
  {
    name = ModuleSpaceDustTelescope
    // Power cost per second when scanning
    PowerCost = 12
    // Animation
    ScanAnimationName = OpenDoor
    // Size of the lens/mirror, for calcuations
    ObjectiveSize = 1.8
    // FOV (radians)
    FieldOfView = 0.000969627362992369

    SLOT
    {
      name = slot1
      Instrument = None
    }
    SLOT
    {
      name = slot2
      Instrument = None
    }
  } 

  MODULE
  {
    name = ModuleB9PartSwitch
    moduleID = instrumentSlot1
    switcherDescription = #LOC_SpaceDust_switcher_instrument_slot1_title

    SUBTYPE
    {
      name = None
      title = #LOC_SpaceDust_switcher_instrument_none
      descriptionSummary = #LOC_SpaceDust_switcher_instrument_none_summary
      descriptionDetail = #LOC_SpaceDust_switcher_instrument_none_detail
      primaryColor = #111111
      secondaryColor = #111111
      addedMass = 0
      addedCost = 0

      MODULE
      {
        IDENTIFIER
        {
          name = ModuleSpaceDustTelescope
        }
        DATA
        {
          SLOT
          {
            name = slot1
            Instrument = None
          }
        }
      }
    }
    //
    SUBTYPE
    {
      name = XeInstrument
      title = #LOC_SpaceDust_switcher_instrument_xe
      descriptionSummary = #LOC_SpaceDust_switcher_instrument_xe_summary
      descriptionDetail = #LOC_SpaceDust_switcher_instrument_xe_detail
      primaryColor = #60a7be
      secondaryColor = #60a7be
      addedMass = 0.2
      addedCost = 50000

      MODULE
      {
        IDENTIFIER
        {
          name = ModuleSpaceDustTelescope
        }
        DATA
        {
          SLOT
          {
            name = slot1
            Instrument = XenonSpectrometer
          }
        }
      }
    }
    SUBTYPE
    {
      name = OxInstrument
      title = #LOC_SpaceDust_switcher_instrument_ox
      descriptionSummary = #LOC_SpaceDust_switcher_instrument_ox_summary
      descriptionDetail = #LOC_SpaceDust_switcher_instrument_ox_detail
      primaryColor = #3399cc
      secondaryColor = #3399cc
      addedMass = 0.2
      addedCost = 50000

      MODULE
      {
        IDENTIFIER
        {
          name = ModuleSpaceDustTelescope
        }
        DATA
        {
          SLOT
          {
            name = slot1
            Instrument = OxidizerSpectrometer
          }
        }
      }
    }
    SUBTYPE
    {
      name = LFInstrument
      title = #LOC_SpaceDust_switcher_instrument_lf
      descriptionSummary = #LOC_SpaceDust_switcher_instrument_lf_summary
      descriptionDetail = #LOC_SpaceDust_switcher_instrument_lf_detail
      primaryColor = #3399cc
      secondaryColor = #3399cc
      addedMass = 0.2
      addedCost = 50000

      MODULE
      {
        IDENTIFIER
        {
          name = ModuleSpaceDustTelescope
        }
        DATA
        {
          SLOT
          {
            name = slot1
            Instrument = LiquidFuelSpectrometer
          }
        }
      }
    }
    
  }
  MODULE
  {
    name = ModuleB9PartSwitch
    moduleID = instrumentSlot2
    switcherDescription = #LOC_SpaceDust_switcher_instrument_slot2_title

    SUBTYPE
    {
      name = None
      title = #LOC_SpaceDust_switcher_instrument_none
      descriptionSummary = #LOC_SpaceDust_switcher_instrument_none_summary
      descriptionDetail = #LOC_SpaceDust_switcher_instrument_none_detail
      primaryColor = #111111
      secondaryColor = #111111
      addedMass = 0
      addedCost = 0

      MODULE
      {
        IDENTIFIER
        {
          name = ModuleSpaceDustTelescope
        }
        DATA
        {
          SLOT
          {
            name = slot2
            Instrument = None
          }
        }
      }
    }
    //
    SUBTYPE
    {
      name = XeInstrument
      title = #LOC_SpaceDust_switcher_instrument_xe
      descriptionSummary = #LOC_SpaceDust_switcher_instrument_xe_summary
      descriptionDetail = #LOC_SpaceDust_switcher_instrument_xe_detail
      primaryColor = #60a7be
      secondaryColor = #60a7be
      addedMass = 0.2
      addedCost = 50000

      MODULE
      {
        IDENTIFIER
        {
          name = ModuleSpaceDustTelescope
        }
        DATA
        {
          SLOT
          {
            name = slot2
            Instrument = XenonSpectrometer
          }
        }
      }
    }
    SUBTYPE
    {
      name = OxInstrument
      title = #LOC_SpaceDust_switcher_instrument_ox
      descriptionSummary = #LOC_SpaceDust_switcher_instrument_ox_summary
      descriptionDetail = #LOC_SpaceDust_switcher_instrument_ox_detail
      primaryColor = #3399cc
      secondaryColor = #3399cc
      addedMass = 0.2
      addedCost = 50000

      MODULE
      {
        IDENTIFIER
        {
          name = ModuleSpaceDustTelescope
        }
        DATA
        {
          SLOT
          {
            name = slot2
            Instrument = OxidizerSpectrometer
          }
        }
      }
    }
    SUBTYPE
    {
      name = LFInstrument
      title = #LOC_SpaceDust_switcher_instrument_lf
      descriptionSummary = #LOC_SpaceDust_switcher_instrument_lf_summary
      descriptionDetail = #LOC_SpaceDust_switcher_instrument_lf_detail
      primaryColor = #3399cc
      secondaryColor = #3399cc
      addedMass = 0.2
      addedCost = 50000

      MODULE
      {
        IDENTIFIER
        {
          name = ModuleSpaceDustTelescope
        }
        DATA
        {
          SLOT
          {
            name = slot2
            Instrument = LiquidFuelSpectrometer
          }
        }
      }
    }
    
  }
 
}

//Create large Cacteye telescope version
PART
{
	name = cacteye-spacedust-telescope
	module = Part
	author = Chris Adderley (Nertea)
	rescaleFactor = 1
	MODEL 
	{
		model = CactEye/Parts/SpaceDust/Scanning/spacedust-telescope-1
		scale = 1.25, 1.25, 1.25
	}

	scale = 1

	node_attach = 0.0, 0.0, -1.5675, 0.0, 0.0, 1, 2
	node_stack_bottom = 0.0, 0.0, -1.5675, 0.0, 0.0, -1, 2

	TechRequired = largeElectrics // advScienceTech
	entryCost = 52000
	cost = 25000
	category = Science
	subcategory = 0
	title = CactEye Telescope Optical Tube
	manufacturer = CactEye Optics
	description = Originally developed by an overseas agency as a wind analysis satellite, we swapped a few sensors to make a small telescope. This telescope will not allow much science return, but it is useful as an easy way to increase the rate at which near-Kerbin asteroids are found.\nThis is the main part of the telescope. Attach a service bay directly underneath this piece with necessary modules inside.
	attachRules =1,1,1,1,0
	mass = 3
	dragModelType = default
	maximum_drag = 0.25
	minimum_drag = 0.25
	angularDrag = .5
	crashTolerance = 8
	breakingForce = 200
	breakingTorque = 200
	maxTemp = 1500
	bulkheadProfiles = srf, size1p5

	tags = #LOC_SpaceDust_spacedust-telescope-1_tags

	
	MODULE
	{
		name = ModuleAnimateGeneric
		animationName = OpenDoor
		startEventGUIName = Open Bay
		endEventGUIName = Close Bay
		actionGUIName = Toggle Bay
		evaDistance = 1.85
	}
	

	MODULE
	{
		name = CactEyeOptics
		isSmallOptics = false
		scienceMultiplier = 1.0
		CameraTransformName = GameObject
		CameraPartOwner = CactEye

		cameraForward = 0, 0, 1
		cameraUp = 0, 1, 0
		cameraPosition = 0,0,1
	}
	
	MODULE
	{
		name = ModuleTestSubject
		
		situationMask = 32
		
		useStaging = False
		useEvent = True
	}
}

//Create small Cacteye telescope version
PART
{
	name = cacteye-spacedust-telescope-small
	module = Part
	author = Chris Adderley (Nertea)
	rescaleFactor = 1
	MODEL 
	{
		model = CactEye/Parts/SpaceDust/Scanning/spacedust-telescope-1
		scale = 0.66, 0.66, 0.66
	}

	scale = 1

	node_attach = 0.0, 0.0, -0.82764, 0.0, 0.0, 1, 1
	node_stack_bottom = 0.0, 0.0, -0.82764, 0.0, 0.0, -1, 1

	TechRequired = spaceExploration //advScienceTech
	entryCost = 52000
	cost = 25000
	category = Science
	subcategory = 0
	title = CactEye Telescope small Optical Tube
	manufacturer = CactEye Optics
	description = Originally developed by an overseas agency as a wind analysis satellite, we swapped a few sensors to make a small telescope. This telescope will not allow much science return, but it is useful as an easy way to increase the rate at which near-Kerbin asteroids are found.\nThis is the main part of the small telescope. Attach a service bay directly underneath this piece with necessary modules inside. 
	attachRules =1,1,1,1,0
	mass = 1.5
	dragModelType = default
	maximum_drag = 0.25
	minimum_drag = 0.25
	angularDrag = .5
	crashTolerance = 8
	breakingForce = 200
	breakingTorque = 200
	maxTemp = 1500
	bulkheadProfiles = srf, size1p5

	tags = CactEye telescope optics science aperture

	
	MODULE
	{
		name = ModuleAnimateGeneric
		animationName = OpenDoor
		startEventGUIName = Open Bay
		endEventGUIName = Close Bay
		actionGUIName = Toggle Bay
		evaDistance = 1.85
	}
	

	MODULE
	{
		name = CactEyeOptics
		isSmallOptics = false
		scienceMultiplier = 0.5
		CameraTransformName = GameObject
		CameraPartOwner = CactEye

		cameraForward = 0, 0, 1
		cameraUp = 0, 1, 0
		cameraPosition = 0,0,1
	}
	
	MODULE
	{
		name = ModuleTestSubject
		
		situationMask = 32
		
		useStaging = False
		useEvent = True
	}
}

 

Edited by SpacedInvader
Link to comment
Share on other sites

  • 8 months later...
1 hour ago, redekr said:

Is there any methods to turn off the Cacteye telescope so it won't use ECs so fast?I am playing with RO,and it costs ~8kW when doing nothing....

did you try to right-click the telescope to turn it off?

Link to comment
Share on other sites

On 3/15/2024 at 9:26 PM, redekr said:

didn't find any option to turn it off...

I just did some testing.  It only seems to use EC when the GUI is open, so if you close the GUI, it should stop.  Can yoy check that  please?

Admittedly I only tested with one of the processors, but it should apply to all.  If you still have an issue, please specify all the details about the vessel:

  • Camera
  • Installed Processors
  • Anything else which might be using EC

A log file, parts list and the vessel itself would be helpfil if you could

Link to comment
Share on other sites

So I'm having some sort of conflict between this mod and MechJeb2. Whenever they're installed at the same time, MechJeb's menus get forced up into the upper left corner and some of them don't show up at all. Anyone had anything similar?

Link to comment
Share on other sites

  • 1 month later...

@linuxgurugamerI having some weird issue when i use wield field camera after prolonged orbit :

[ERR 12:07:30.899] CactEyeOptics: CactEye 2a: Exception 4: An error occurred producing a science report!

[ERR 12:07:30.899] CactEyeOptics: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <9577ac7a62ef43179789031239ba8798>:0
  at CactEye2.CactEyeWideField.DoScience (UnityEngine.Vector3 TargetPosition, System.Single scienceMultiplier, System.Single FOV, UnityEngine.Texture2D Screenshot, CactEye2.CactEyeProcessor ActiveProcessor) [0x0005d] in <e08a3f5eb40f416aa1288d32ace20675>:0
  at CactEye2.TelescopeMenu.MainTelescopeWindowGUI (System.Int32 WindowID) [0x00a68] in <e08a3f5eb40f416aa1288d32ace20675>:0

 

https://www.mediafire.com/file/jbi3dbsmonz57f5/KSP.zip/file my log

 

Edited by Syczek
Link to comment
Share on other sites

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