Jump to content

[1.12.X] Neptune Camera - Basic Camera Utility [4.3][21.06.2023]


Beale

Recommended Posts

  • 3 months later...
  • 4 weeks later...

Hey, great mod! I was trying to extend some functionalities from the source code, however I'm still a beginner in mod dev, and I'm not able to build correctly from source code. Could you please share your build configuration?

Link to comment
Share on other sites

  • 3 weeks later...

Tried adding image quality upgrades for the camera part for extra progression in career. I weren't sure if the ModuleNeptuneCamera supports PARTUPGRADE, but to my surprise it seems to work correctly? The upgrades do show up in game and the saved images' quality matches the tech level I'm currently on. I'm not really knowledgeable about the backend workings of part modules, so that was a pleasant surprise :)

Here's the config if anyone wants to try it

Spoiler

//NeptuneCamera

// gadgets
PARTUPGRADE:NEEDS[CommunityTechTree]
{
    name = NeptuneCamera_L1
    partIcon = nc_sensor_visible_light_camera_srf_1
    title = Camera Upgrade I
    description = Early sensor upgrade that offers better image quality and resolution.
    techRequired = gadgets
    entryCost = 2000
}

// miniaturization
PARTUPGRADE:NEEDS[CommunityTechTree]
{
    name = NeptuneCamera_L2
    partIcon = nc_sensor_visible_light_camera_srf_1
    title = Camera Upgrade II
    description = Camera upgrade with full colour mode and improved quality.
    techRequired = miniaturization
    entryCost = 4000
}

// precisionEngineering
PARTUPGRADE:NEEDS[CommunityTechTree]
{
    name = NeptuneCamera_L3
    partIcon = nc_sensor_visible_light_camera_srf_1
    title = Camera Upgrade III
    description = Camera upgrade with adjustable lens, live image preview and even better quality.
    techRequired = precisionEngineering
    entryCost = 6000
}

// scienceTech
PARTUPGRADE:NEEDS[CommunityTechTree]
{
    name = NeptuneCamera_L4
    partIcon = nc_sensor_visible_light_camera_srf_1
    title = Camera Upgrade IV
    description = Camera upgrade for nearly perfect digital image quality.
    techRequired = scienceTech
    entryCost = 8500
}

@PART[nc_sensor_visible_light_camera_srf_1]:NEEDS[CommunityTechTree,NeptuneCamera]
{    
    @TechRequired = start
    
    !MODULE[ModuleNeptuneCamera]{}
    MODULE
    {
        name = ModuleNeptuneCamera
        cameraTransformName = cameraTransform

        cameraType = GREYSCALE_COLOUR
        cameraFieldOfView = 70
        cameraHorizontalResolution = 512
        cameraVerticalResolution = 512
        cameraHasErrors = True
        cameraErrorRate = 10
        cameraHasNoise = True
        cameraNoiseMaxStrength = 30
        cameraHasDisplayWindow = False
        cameraHasConfigTransform = False
        
        UPGRADES
        {
            UPGRADE
            {
                name__ = NeptuneCamera_L1
                
                cameraHorizontalResolution = 1024
                cameraVerticalResolution = 1024            
                cameraErrorRate = 5
                cameraNoiseMaxStrength = 15
            }
            UPGRADE
            {
                name__ = NeptuneCamera_L2
                
                cameraType = FULL_COLOUR_ONLY
                cameraHorizontalResolution = 512
                cameraVerticalResolution = 512
                cameraErrorRate = 10
                cameraNoiseMaxStrength = 20
            }
            UPGRADE
            {
                name__ = NeptuneCamera_L3
                
                cameraFieldOfViewMax = 110
                cameraFieldOfViewMin = 50
                cameraHorizontalResolution = 1024
                cameraVerticalResolution = 1024
                cameraErrorRate = 10
                cameraNoiseMaxStrength = 10
                cameraHasDisplayWindow = True
            }
            UPGRADE
            {
                name__ = NeptuneCamera_L4
                
                cameraType = FULL_COLOUR
                cameraFieldOfViewMax = 120
                cameraFieldOfViewMin = 25
                cameraHorizontalResolution = 2048
                cameraVerticalResolution = 2048
                cameraErrorRate = 5
                cameraHasNoise = False
            }
        }
    }
}

Spoiler

Gy94IiR.png

dE84edj.png

hYzga6j.png

 

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