Jump to content

Recommended Posts

I am new at coding I am trying to make a gas planet, but it keeps looking like jool and I don't know why?

here is my code.

@Kopernicus:FOR[Kopernicus]
{
    Body
    {
        name = Aliv
        cacheFile = test/Cache/Aliv.bin
        Template
        {
            name = Jool
            RemoveAllPQSMods = true
        }
        Orbit
        {
            referenceBody = Sun
            inclination = 1.3244
            eccentricity = 0.0003
            semiMajorAxis = 9000000000
            longitudeOfAscendingNode = 27.97
            argumentOfPeriapsis = 85.9
            meanAnomalyAtEpoch = 41
            epoch = 1613.91
            color = 0.227,0.054,0.047,1
        }
        Properties
        {
            description = a new planet for the sun
            radius = 12514069
            mass = 7.44E+25
            rotates = true
            rotationPeriod = 1
            tidallyLocked = true
            initialRotation = 70
            isHomeWorld = false
            timewarpAltitudeLimits = 0 250000 275000 300000 300000 300000 600000 800000
        }
        ScienceValues
        {
            landedDataValue = 0
            splashedDataValue = 0
            flyingLowDataValue = 11
            flyingHighDataValue = 9
            inSpaceLowDataValue = 8
            inSpaceHighDataValue = 6
            recoveryValue = 16
            flyingAltitudeThreshold = 12000
            spaceAltitudeThreshold = 500000
        }
    }
    ScaledVersion
    {
        type = Atmospheric
            fadeStart = 0
            fadeEnd = 0
            OnDemand
            {
                texture = test/PlugData/Aliv_color
                normal = test/PlugData/Aliv_normal
            }
            Material
            {      
                bumpMapScale = 1,1
                shininess = 0
                specular = 0.0,0.0,0.0,1.0
 
                rimPower = .7
                rimBlend = .5
               
                Gradient
                {
                    0.0 = RGBA(158, 64, 61, 255)
                    0.2 = RGBA(0, 0, 0, 255)
                    0.4 = RGBA(0, 0, 0, 255)
                    0.6 = RGBA(0, 0, 0, 255)
                    1.0 = RGBA(0, 0, 0, 255)
                }
            }
        }
 
        Atmosphere
        {
            ambientColor = .25,.25,.25,1
            lightColor = .6,1,2,1.0
            enabled = true
            oxygen = false
            altitude = 250000.0
            staticPressureASL = 1013.25
 
            pressureCurve
            {
                key =   0   1013.25 -0.020075996    -0.020075996
                key =   12500   762.3   -0.018235   -0.018235
                key =   25000   557.375 -0.014728004    -0.014728004
                key =   37500   394.1   -0.0115888  -0.0115888
                key =   50000   267.655 -0.0087594  -0.0087594
                key =   62500   175.115 -0.0064066  -0.0064066
                key =   75000   107.49  -0.0045388  -0.0045388
                key =   87500   61.645  -0.0028538  -0.0028538
                key =   100000  36.145  -0.0015522  -0.0015522
                key =   112500  22.84   -0.0008892  -0.0008892
                key =   125000  13.915  -0.0005768  -0.0005768
                key =   137500  8.42    -0.0003408  -0.0003408
                key =   150000  5.395   -0.0001808  -0.0001808
                key =   162500  3.9 -0.0000972  -0.0000972
                key =   175000  2.965   -0.000073   -0.000073
                key =   187500  2.075   -0.000065   -0.000065
                key =   200000  1.34    -0.0000526  -0.0000526
                key =   212500  0.76    -0.00004    -0.00004
                key =   225000  0.34    -0.000027   -0.000027
                key =   237500  0.085   -0.0000136  -0.0000136
                key =   250000  0   -0.0000068  -0.0000068
            }
 
            pressureCurveIsNormalized = false
           
            temperatureOcean/seaLevel = 442
 
            temperatureCurve
            {
                key =   0   442 -0.002566667    -0.002566667
                key =   30000   325.902439  -0.000363544    -0.000362423
                key =   52500   325.902439  0.000362423 0.000362423
                key =   77500   408.8292683 0.000198086 0.000198086
                key =   140000  408.8292683 -0.000273171    -0.000273171
                key =   200000  282.1773836 -0.000363544    -0.000363544
                key =   225000  282.1773836 0.00018951  0.00018951
                key =   250000  347.0110865 0.000277842 0.000277842
                key =   375000  0   -0.000179844    -0.000179844
            }
 
            temperatureCurveIsNormalized = false
            temperatureLapseRate = 0.0024
            temperatureSunMultCurve = true
           
            temperatureSunMultCurve
            {
                key =   0   1   0   0
                key =   19230.76923 0.5 -0.000024   -4.1058E-05
                key =   21190.44231 0   0   0
                key =   38582.65383 0   0   0
                key =   91056.34614 0.2 0   0
                key =   138077.2308 0.2 0   0
                key =   175556.923  0   0   0
                key =   250000  0.4 0   0
 
            }
        }
    }
}
Edited by highbornsnail
Link to comment
Share on other sites

@highbornsnail you need file extensions. Like .png or .dds for planet modding. It is not normal, but normals. 

20 hours ago, highbornsnail said:
  texture = test/PlugData/Aliv_color normal = test/PlugData/Aliv_normal

It SHOULD be

texture = test/PluginData/Aliv_color.dds

normals = test/PluginData/Aliv_normal.dds

20 hours ago, highbornsnail said:

    RemoveAllPQSMods = true

Also, Jool does not have PQS, so this is not needed.

20 hours ago, highbornsnail said:

  mass = 7.44E+25

And you don't need a mass node.

20 hours ago, highbornsnail said:

temperatureOcean/seaLevel = 442

Pretty sure you don't need this as you have a specified temperatureCurve.

20 hours ago, highbornsnail said:

  rotationPeriod = 1

You really want to have a rotation period of 1 second?

Edited by Mr. Kerbin
Link to comment
Share on other sites

it did not work?

@Kopernicus:FOR[Kopernicus]
{
    Body
    {
        name = Aliv
        cacheFile = test/Cache/Aliv.bin
        Template
        {
            name = Jool
        }
        Orbit
        {
            referenceBody = Sun
            inclination = 1.3244
            eccentricity = 0.0003
            semiMajorAxis = 49000000000
            longitudeOfAscendingNode = 27.97
            argumentOfPeriapsis = 85.9
            meanAnomalyAtEpoch = 41
            epoch = 1613.91
            color = 0.227,0.054,0.047,1
        }
        Properties
        {
            description = Aliv is a planet that was discovered 5 years ago and has 5 moons.
            radius = 12514069
            mass = 7.44E+25
            rotates = true
            rotationPeriod = 100000
            tidallyLocked = false
            initialRotation = 70
            isHomeWorld = false
            timewarpAltitudeLimits = 0 250000 275000 300000 300000 300000 600000 800000
        }
        ScienceValues
        {
            landedDataValue = 0
            splashedDataValue = 0
            flyingLowDataValue = 11
            flyingHighDataValue = 9
            inSpaceLowDataValue = 8
            inSpaceHighDataValue = 6
            recoveryValue = 16
            flyingAltitudeThreshold = 12000
            spaceAltitudeThreshold = 500000
        }
    }
    ScaledVersion
    {
        type = Atmospheric
            fadeStart = 0
            fadeEnd = 0
            OnDemand
            {
                texture = test/PlugData/Aliv_color.dds
                normals = test/PlugData/Aliv_normal.dds
            }
            Material
            {      
                bumpMapScale = 1,1
                shininess = 0
                specular = 0.0,0.0,0.0,1.0
 
                rimPower = .7
                rimBlend = .5
               
                Gradient
                {
                    0.0 = RGBA(158, 64, 61, 255)
                    0.2 = RGBA(0, 0, 0, 255)
                    0.4 = RGBA(0, 0, 0, 255)
                    0.6 = RGBA(0, 0, 0, 255)
                    1.0 = RGBA(0, 0, 0, 255)
                }
            }
        }
 
        Atmosphere
        {
            ambientColor = .25,.25,.25,1
            lightColor = .6,1,2,1.0
            enabled = true
            oxygen = false
            altitude = 250000.0
            staticPressureASL = 1013.25
 
            pressureCurve
            {
                key =   0   1013.25 -0.020075996    -0.020075996
                key =   12500   762.3   -0.018235   -0.018235
                key =   25000   557.375 -0.014728004    -0.014728004
                key =   37500   394.1   -0.0115888  -0.0115888
                key =   50000   267.655 -0.0087594  -0.0087594
                key =   62500   175.115 -0.0064066  -0.0064066
                key =   75000   107.49  -0.0045388  -0.0045388
                key =   87500   61.645  -0.0028538  -0.0028538
                key =   100000  36.145  -0.0015522  -0.0015522
                key =   112500  22.84   -0.0008892  -0.0008892
                key =   125000  13.915  -0.0005768  -0.0005768
                key =   137500  8.42    -0.0003408  -0.0003408
                key =   150000  5.395   -0.0001808  -0.0001808
                key =   162500  3.9 -0.0000972  -0.0000972
                key =   175000  2.965   -0.000073   -0.000073
                key =   187500  2.075   -0.000065   -0.000065
                key =   200000  1.34    -0.0000526  -0.0000526
                key =   212500  0.76    -0.00004    -0.00004
                key =   225000  0.34    -0.000027   -0.000027
                key =   237500  0.085   -0.0000136  -0.0000136
                key =   250000  0   -0.0000068  -0.0000068
            }
 
            pressureCurveIsNormalized = false
           
 
            temperatureCurve
            {
                key =   0   442 -0.002566667    -0.002566667
                key =   30000   325.902439  -0.000363544    -0.000362423
                key =   52500   325.902439  0.000362423 0.000362423
                key =   77500   408.8292683 0.000198086 0.000198086
                key =   140000  408.8292683 -0.000273171    -0.000273171
                key =   200000  282.1773836 -0.000363544    -0.000363544
                key =   225000  282.1773836 0.00018951  0.00018951
                key =   250000  347.0110865 0.000277842 0.000277842
                key =   375000  0   -0.000179844    -0.000179844
            }
 
            temperatureCurveIsNormalized = false
            temperatureLapseRate = 0.0024
            temperatureSunMultCurve = true
           
            temperatureSunMultCurve
            {
                key =   0   1   0   0
                key =   19230.76923 0.5 -0.000024   -4.1058E-05
                key =   21190.44231 0   0   0
                key =   38582.65383 0   0   0
                key =   91056.34614 0.2 0   0
                key =   138077.2308 0.2 0   0
                key =   175556.923  0   0   0
                key =   250000  0.4 0   0
 
            }
        }
    }
}
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...