• 0
NeverAgain

[SOLVED]Chernarus Radiation

Question

Posted (edited)

Hi gold community :-)

I try to set radiation for chernarus but no luck.

Please help.No radiation if i set coords....Anomaly work..

 

class CfgExileEnvironment
{
    class Altis
    {
        class FireFlies
        {
            // 1 = enabled, 0 = disabled
            enable = 1;

            // At this hour fire flies begin to spawn
            startHour = 18;

            // At this hour fire flies stop spawning
            endHour = 4;
        };

        class Anomalies
        {
            // 1 = enabled, 0 = disabled
            enable = 0;

            // At this hour anomalies begin to spawn
            startHour = 19;

            // At this hour anomalies stop spawning
            endHour = 6;
        };

        class Breathing
        {
            // 1 = enabled, 0 = disabled
            enable = 0;
        };

        class Snow
        {
            // 1 = enabled, 0 = disabled
            enable = 0;

            // https://community.bistudio.com/wiki/surfaceType
            surfaces[] = {};
        };

        class Radiation
        {
            // 1 = enabled, 0 = disabled
            enable = 0;

            /*
                Defines contaminated zones in a specific map.
                You can define multiple zones per map. The format
                of the zones is:

                [Position ASL(!), Full Radiation Radius, Maximum Radius]

                The radius works as follows:

                |-------------------------------------------------------|
                                    Maximum Radius
                
                |------------------------|
                  Full Radiation Radius   

                Within the full radiation radius, radiation factor is
                always at a maximum. Outside of this, it lowers down
                to no radiation smoothly.

                Radiation:

                |------------------------|------------------------------|
                1        1      1        1     0.75    0.5     0.25    0
            */
            contaminatedZones[] = {};
        };

        class Temperature
        {
            // Temperature in °C for the time of day, per hour
            // Add the first index to the last index, so it is 25 indizes!
            daytimeTemperature[] = {8.12,8.50,8.32,8.90,9.10,9.40,10.18,12.03,16.00,18.46,19.13,20.00,20.12,19.97,18.36,17.45,16.69,14.36,12.80,10.25,9.89,9.40,8.90,8.50,8.41};
        
            // Temperature change in °C when it is 100% overcast
            overcast = -2;

            // Temperature change in °C when it is 100% raining
            rain = -5;

            // Temperature change in °C when it is 100% windy
            wind = -2;

            // Temperature change per 100m altitude in °C
            altitude = -0.5;

            // Difference from the daytime temperature to the water temperature
            water = -5;
        };
    };
    
    class Chernarus
    {
        class FireFlies
        {
            // 1 = enabled, 0 = disabled
            enable = 1;

            // At this hour fire flies begin to spawn
            startHour = 18;

            // At this hour fire flies stop spawning
            endHour = 7;
        };

        class Anomalies
        {
            // 1 = enabled, 0 = disabled
            enable = 1;

            // At this hour anomalies begin to spawn
            startHour = 14;

            // At this hour anomalies stop spawning
            endHour = 20;
        };

        class Breathing
        {
            // 1 = enabled, 0 = disabled
            enable = 0;
        };

        class Snow
        {
            // 1 = enabled, 0 = disabled
            enable = 0;

            // https://community.bistudio.com/wiki/surfaceType
            surfaces[] = {};
        };

        class Radiation
        {
            // 1 = enabled, 0 = disabled
            enable = 1;

            /*
                Defines contaminated zones in a specific map.
                You can define multiple zones per map. The format
                of the zones is:

                [Position ASL(!), Full Radiation Radius, Maximum Radius]

                The radius works as follows:

                |-------------------------------------------------------|
                                    Maximum Radius
                
                |------------------------|
                  Full Radiation Radius   

                Within the full radiation radius, radiation factor is
                always at a maximum. Outside of this, it lowers down
                to no radiation smoothly.

                Radiation:

                |------------------------|------------------------------|
                1        1      1        1     0.75    0.5     0.25    0
            */
            contaminatedZones[] = {};
        };

        class Temperature
        {
            // Temperature in °C for the time of day, per hour
            // Add the first index to the last index, so it is 25 indizes!
            daytimeTemperature[] = {8.12,8.50,8.32,8.90,9.10,9.40,10.18,12.03,16.00,18.46,19.13,20.00,20.12,19.97,18.36,17.45,16.69,14.36,12.80,10.25,9.89,9.40,8.90,8.50,8.41};
        
            // Temperature change in °C when it is 100% overcast
            overcast = -2;

            // Temperature change in °C when it is 100% raining
            rain = -5;

            // Temperature change in °C when it is 100% windy
            wind = -2;

            // Temperature change per 100m altitude in °C
            altitude = -0.5;

            // Difference from the daytime temperature to the water temperature
            water = -8;
        };
    };

    class Namalsk: Altis
    {
        class FireFlies: FireFlies
        {
            enable = 1;
        };

        class Anomalies: Anomalies
        {
            enable = 1;
        };

        class Breathing: Breathing
        {
            enable = 1;
        };

        class Snow: Snow
        {
            enable = 1;
            surfaces[] = {"#nam_snow"};
        };

        class Radiation: Radiation
        {
            enable = 1;
            contaminatedZones[] =
            {
                {{3960.14,    8454.75,    152.862},     80,     140},    // Object A1
                {{4974.70,    6632.82,    4.74293},     40,     150},    // Object A2
                {{6487.92,    9302.03,    36.0014},     60,     110}    // Sebjan Chemical Factory
            };
        };

        class Temperature: Temperature
        {
            daytimeTemperature[] = {-2.00,-1.77,-1.12,-0.10,1.24,2.78,4.40,6.00,7.46,8.65,9.50,9.90,9.90,9.50,8.65,7.46,6.00,4.40,2.78,1.24,-0.10,-1.12,-1.77,-2.00,-2.00};
        };
    };
};

Edited by NeverAgain

Share this post


Link to post
Share on other sites

25 answers to this question

  • 0

can you give a hint how you put it in?

i tried for altis ,but it just wont work :/

mine here:

Spoiler

        class Radiation 
        {
            // 1 = enabled, 0 = disabled
            enable = 1;


            contaminatedZones[] = 
            {
                {{[9623.09,12469.5,14.5407]},    250,    500},//Zaros
                {{8628.76,18276.7,181.104},    250,    500},//Syrta
                {{14045.9,18741.8,25.9929},    250,    500},//Athira
                {{3654.21,13258.1,10.5204},    250,    500},//Kavala
                {{25697.9,21345.4,20.3632},    250,    500}//Sofia
            };
        };

 

Share this post


Link to post
Share on other sites
Advertisement
  • 0

first of all:

USE PASTEBIN!!!!

 

second thing:

POST THE SOLUTION

1 person likes this

Share this post


Link to post
Share on other sites
  • 0
12 hours ago, hieve said:

can you give a hint how you put it in?

i tried for altis ,but it just wont work :/

mine here:

  Hide contents

        class Radiation 
        {
            // 1 = enabled, 0 = disabled
            enable = 1;


            contaminatedZones[] = 
            {
                {{[9623.09,12469.5,14.5407]},    250,    500},//Zaros
                {{8628.76,18276.7,181.104},    250,    500},//Syrta
                {{14045.9,18741.8,25.9929},    250,    500},//Athira
                {{3654.21,13258.1,10.5204},    250,    500},//Kavala
                {{25697.9,21345.4,20.3632},    250,    500}//Sofia
            };
        };

 

Go to Eden editor and use this:

hint str (getPosASL player)

 This is wrong format {{[9623.09,12469.5,14.5407]},    250,    500},//Zaros

Good format {{9623.09,12469.5,14.5407},250,500},//Zaros

Share this post


Link to post
Share on other sites
  • 0

Posted (edited)

1 hour ago, NeverAgain said:

Go to Eden editor and use this:

hint str (getPosASL player)

 This is wrong format {{[9623.09,12469.5,14.5407]},    250,    500},//Zaros

Good format {{9623.09,12469.5,14.5407},250,500},//Zaros

yup nevermind, i realizied this seconds after posting here!

 

still it isnt working, on a fresh server with the coords its working.

I'm a bit curious as Breathing is working... but my snow is also not working even with all surfaces in. I really have no idea what is wrong, all is working except radiation & snow(but this is optional)

this is what i actual have:

Spoiler

class Radiation 
        {
            // 1 = enabled, 0 = disabled
            enable = 1;


            contaminatedZones[] = 
            {
                {{3648.12,  13275.3,   10.3555}, 250, 500},
                {{8628.76,  18276.7,   181.104}, 250, 500},
                {{14045.9,  18741.8,   25.9929}, 250, 500},
                {{3654.21,  13258.1,   10.5204}, 250, 500},
                {{25697.9,  21345.4,   20.3632}, 250, 500}
            };
        };

 

Edited by hieve

Share this post


Link to post
Share on other sites
  • 0
8 hours ago, hieve said:

yup nevermind, i realizied this seconds after posting here!

 

still it isnt working, on a fresh server with the coords its working.

I'm a bit curious as Breathing is working... but my snow is also not working even with all surfaces in. I really have no idea what is wrong, all is working except radiation & snow(but this is optional)

this is what i actual have:

  Hide contents

class Radiation 
        {
            // 1 = enabled, 0 = disabled
            enable = 1;


            contaminatedZones[] = 
            {
                {{3648.12,  13275.3,   10.3555}, 250, 500},
                {{8628.76,  18276.7,   181.104}, 250, 500},
                {{14045.9,  18741.8,   25.9929}, 250, 500},
                {{3654.21,  13258.1,   10.5204}, 250, 500},
                {{25697.9,  21345.4,   20.3632}, 250, 500}
            };
        };

 

Try this:

            contaminatedZones[] = 
            {
                {{3648.12,13275.3,10.3555},250,500},
                {{8628.76,18276.7,181.104},250,500},
                {{14045.9,18741.8,25.9929},250,500},
                {{3654.21,13258.1,10.5204},250,500},
                {{25697.9,21345.4,20.3632},250,500},
            };
        };

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, NeverAgain said:

Try this:

            contaminatedZones[] = 
            {
                {{3648.12,13275.3,10.3555},250,500},
                {{8628.76,18276.7,181.104},250,500},
                {{14045.9,18741.8,25.9929},250,500},
                {{3654.21,13258.1,10.5204},250,500},
                {{25697.9,21345.4,20.3632},250,500},
            };
        };

ok.. i tried to setup a comma at the end of my zones, this gave no error, still it was not working.

i copied yours and it failed with encountered '?' instead of } - looks like he pasted in some random character..

I'm curious why this gives no error sometimes if you enter a comma at the end of a object, as i know from programming this makes no sense at all O.o 

i have still no idea why, as all other stuff(besides that snow which I just activated optional) is working .

@Eichi Any Idea what could cause this? I'm curious that you can use a comma and no comma at the end...

I've searched like 30k lines of code for any failure and can't find anything.

A fresh instance of Exile, same coords, work.

I really woud like to not start from scratch again :/ I mean like everything else is just fine , even the fireflies and anomalies..

my config.cpp part class CfgExileEnvironment

Spoiler

class CfgExileEnvironment
{
    class Altis 
    {
        class FireFlies
        {
            // 1 = enabled, 0 = disabled
            enable = 1;

            // At this hour fire flies begin to spawn
            startHour = 17;

            // At this hour fire flies stop spawning
            endHour = 3;
        };

        class Anomalies
        {
            // 1 = enabled, 0 = disabled
            enable = 1;

            // At this hour anomalies begin to spawn
            startHour = 18;

            // At this hour anomalies stop spawning
            endHour = 5;
        };

        class Breathing
        {
            // 1 = enabled, 0 = disabled
            enable = 1;
        };

        class Snow
        {
            // 1 = enabled, 0 = disabled
            enable = 0;

            // https://community.bistudio.com/wiki/surfaceType
            surfaces[] = {};
        };

        class Radiation 
        {
            enable = 1;

        contaminatedZones[] = 
            {
                {{16853.262,12958.461,5.0},500,1000},    
                {{3556.749,    13184.378,5.0},500,1000},    
                {{16853.262,12958.461,5.0},250,500},    
                {{25691.008,21340.043,5.0},250,500},    
                {{10237.246,12783.211,5.0},1000,2000}    
            };
        };
        class Temperature
        {
            // Temperature in °C for the time of day, per hour
            // Add the first index to the last index, so it is 25 indizes!
            daytimeTemperature[] = {-15.00,-12.00,-8.00,-5.00,-2.00,0.20,5.00,10.00,15.00,20.00,30.00,25.00,20.00,15.00,20.00,15.00,10.20,5.00,-5.00,-8.00,-10.00,-12.00,-15.00,-17.00,-20.00};
            // Temperature change in °C when it is 100% overcast
            overcast = -2;

            // Temperature change in °C when it is 100% raining
            rain = -5;

            // Temperature change in °C when it is 100% windy
            wind = -1;

            // Temperature change per 100m altitude in °C
            altitude = -0.5;

            // Difference from the daytime temperature to the water temperature
            water = -5;
        };
    };
};

 

Share this post


Link to post
Share on other sites
  • 0

 

12 hours ago, NeverAgain said:

Go to Eden editor and use this:

hint str (getPosASL player)

 This is wrong format {{[9623.09,12469.5,14.5407]},    250,    500},//Zaros

Good format {{9623.09,12469.5,14.5407},250,500},//Zaros

howdy, damn, my bad, it works now... i just messed up the coords... thx neveragain!

Share this post


Link to post
Share on other sites
  • 0

Posted (edited)

26 minutes ago, hieve said:

ok.. i tried to setup a comma at the end of my zones, this gave no error, still it was not working.

i copied yours and it failed with encountered '?' instead of } - looks like he pasted in some random character..

I'm curious why this gives no error sometimes if you enter a comma at the end of a object, as i know from programming this makes no sense at all O.o 

i have still no idea why, as all other stuff(besides that snow which I just activated optional) is working .

@Eichi Any Idea what could cause this? I'm curious that you can use a comma and no comma at the end...

I've searched like 30k lines of code for any failure and can't find anything.

A fresh instance of Exile, same coords, work.

I really woud like to not start from scratch again :/ I mean like everything else is just fine , even the fireflies and anomalies..

my config.cpp part class CfgExileEnvironment

  Hide contents

class CfgExileEnvironment
{
    class Altis 
    {
        class FireFlies
        {
            // 1 = enabled, 0 = disabled
            enable = 1;

            // At this hour fire flies begin to spawn
            startHour = 17;

            // At this hour fire flies stop spawning
            endHour = 3;
        };

        class Anomalies
        {
            // 1 = enabled, 0 = disabled
            enable = 1;

            // At this hour anomalies begin to spawn
            startHour = 18;

            // At this hour anomalies stop spawning
            endHour = 5;
        };

        class Breathing
        {
            // 1 = enabled, 0 = disabled
            enable = 1;
        };

        class Snow
        {
            // 1 = enabled, 0 = disabled
            enable = 0;

            // https://community.bistudio.com/wiki/surfaceType
            surfaces[] = {};
        };

        class Radiation 
        {
            enable = 1;

        contaminatedZones[] = 
            {
                {{16853.262,12958.461,5.0},500,1000},    
                {{3556.749,13184.378,5.0},500,1000},
                {{16853.262,12958.461,5.0},250,500},    
                {{25691.008,21340.043,5.0},250,500},    
                {{10237.246,12783.211,5.0},1000,2000}    
            };
        };
        class Temperature
        {
            // Temperature in °C for the time of day, per hour
            // Add the first index to the last index, so it is 25 indizes!
            daytimeTemperature[] = {-15.00,-12.00,-8.00,-5.00,-2.00,0.20,5.00,10.00,15.00,20.00,30.00,25.00,20.00,15.00,20.00,15.00,10.20,5.00,-5.00,-8.00,-10.00,-12.00,-15.00,-17.00,-20.00};
            // Temperature change in °C when it is 100% overcast
            overcast = -2;

            // Temperature change in °C when it is 100% raining
            rain = -5;

            // Temperature change in °C when it is 100% windy
            wind = -1;

            // Temperature change per 100m altitude in °C
            altitude = -0.5;

            // Difference from the daytime temperature to the water temperature
            water = -5;
        };
    };
};

 

You need this ,      

 contaminatedZones[] = 
            {
                {{16853.262,12958.461,5.0},500,1000},    
                {{3556.749,13184.378,5.0},500,1000},    
                {{16853.262,12958.461,5.0},250,500},    
                {{25691.008,21340.043,5.0},250,500},    
                {{10237.246,12783.211,5.0},1000,2000}, HERE   
            };
        };

Edited by NeverAgain

Share this post


Link to post
Share on other sites
  • 0

@NeverAgainTried this - still not working

Like I mentioned before, a comma at the end of class definition would make no sense in my eyes, even the example from namalsk does not have it in..

I hope a Dev can bring us here some clear sight

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.