• 0
BetterDeadThanZed

Radiation zones

Question

Do radiation zones work on maps other than Namalsk? I ask because I'm trying to add a radiation zone to Esseker and it doesn't seem to work. I enter the area but there's no signs of radiation. There are no errors in my log related to my config.cpp. Here's the section where I have radiation turned on:

		class Radiation: Radiation
		{
			enable = 1;
			contaminatedZones[] = 
			{
				{{11931,7929,0}, 80,	140}	// Novi Grad
			};
		};

The coordinates are correct. Suggestions?

Share this post


Link to post
Share on other sites

15 answers to this question

  • 0
1 hour ago, BetterDeadThanZed said:

Do radiation zones work on maps other than Namalsk? I ask because I'm trying to add a radiation zone to Esseker and it doesn't seem to work. I enter the area but there's no signs of radiation. There are no errors in my log related to my config.cpp. Here's the section where I have radiation turned on:


		class Radiation: Radiation
		{
			enable = 1;
			contaminatedZones[] = 
			{
				{{11931,7929,0}, 80,	140}	// Novi Grad
			};
		};

The coordinates are correct. Suggestions?

Try to look here:

 

Share this post


Link to post
Share on other sites
  • 0

Your cords are slightly incorrect. It needs to be in ASL format i believe so you need to change your altitude from 0.

When i was trying to add radiation to esseker i found the best way to find the correct altitude was to use the map and see what it said the altitude was. there may be better ways but its what i found was the best.

I make Novi Grad 14m above sea level so try this

		class Radiation: Radiation
		{
			enable = 1;
			contaminatedZones[] = 
			{
				{{11931,7929,14}, 80,	140}	// Novi Grad
			};
		};

 

Share this post


Link to post
Share on other sites
Advertisement
  • 0
9 minutes ago, Mr Health And Safety said:

Your cords are slightly incorrect. It needs to be in ASL format i believe so you need to change your altitude from 0.

When i was trying to add radiation to esseker i found the best way to find the correct altitude was to use the map and see what it said the altitude was. there may be better ways but its what i found was the best.

I make Novi Grad 14m above sea level so try this


		class Radiation: Radiation
		{
			enable = 1;
			contaminatedZones[] = 
			{
				{{11931,7929,14}, 80,	140}	// Novi Grad
			};
		};

 

I tried that. Used a number slightly below that. 13.something and it still didn't work for me. I'm just not going to bother with the radiation zone. It's not worth trying to work it out.

Share this post


Link to post
Share on other sites
  • 0

strange.

this is what i have for mine and it works fine.

		class Radiation 
		{
			enable = 1;

			contaminatedZones[] =
			{
				{{6646.02,3999.58,207}, 30, 300}
			};
		};

 

Just noticed from posting mine that your code is slightly incorrect. I know that's how it is for Namalsk but if you look at the Altis its different. I didnt even spot it was different for Namalsk so glad i copied the Altis one. Try changing "class Radiation: Radiation" to "class Radiation"

Share this post


Link to post
Share on other sites
  • 0
Quote

Try changing "class Radiation: Radiation" to "class Radiation"

That should do it.

Example of my coords...

{{23344.3,18682.8,0},1,300}  //Research Facility (Saltflats)

 

Share this post


Link to post
Share on other sites
  • 0

thinking about it, if you copied the namalsk section you might need to change a few more bits to get rid of the extra header name and the :

in any case, here is a copy of my whole CfgExileEnvironment. Not tried anything other then radiation yet but the radiation works fine for Esseker

Spoiler

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

            // 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[] = {15.93,16.89,18.42,20.40,22.68,25.10,27.48,29.63,31.40,32.66,33.32,33.80,33.80,33.32,32.66,31.40,29.63,27.48,25.10,22.68,20.40,18.42,16.89,15.93,15.93};
        
            // 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;
        };
    };

    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};
        };
    };

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

            // 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 = 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[] =
            {
                {{6646.02,3999.58,207}, 30, 300}
            };
        };

        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.93,16.89,18.42,20.40,22.68,25.10,27.48,29.63,31.40,32.66,33.32,33.80,33.80,33.32,32.66,31.40,29.63,27.48,25.10,22.68,20.40,18.42,16.89,15.93,15.93};
        
            // 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

Posted (edited)

Sorry to resurrect this thread, but I'm trying to add a few radiation zones to my exile mod and am getting stuck on a black screen when I try and load up.

(Edit: I'm trying to add it to Altis)

This is the code I'm using:

http://pastebin.com/6a4NBx3R

I'm guessing I screwed something up, so if anyone could lend a hand I'd appreciate it a lot. It's getting frustrating.

 

Edited by devilFaust

Share this post


Link to post
Share on other sites
  • 0

Posted (edited)

Not sure why that's causing a black screen as the code looks ok (i think your cords are wrong though as you have the altitude at 0 so would be at see level but i have not checked this).

Have a look in your RPT file and see if it gives your error there. Post it if you want.

Also post your whole config.cpp file as it could be a error somewhere else.

Edited by Mr Health And Safety

Share this post


Link to post
Share on other sites
  • 0

Posted (edited)

You were correct about the coordinates, it's working now.

There is a discrepancy between the command line world coordinates call and the built in one that infistar's admin controls uses.

The command line read back that the Y coordinate was 14.2 and infistar told me it was .0000142

Weirdly enough the first two (X,Z) coordinates were both correct, so it's returning a bad number for Y, thus causing the problems. I should have double checked that, but thanks for the second set of eyes.

Now I just need to mark the areas with a red color to indicate to players they're hot. 

Thanks again.

Edited by devilFaust

Share this post


Link to post
Share on other sites
  • 0

The cords that you got from the command line and infistar are both correct. Infistar uses the distance above ground (ATL) where the command line is above sea level (ASL)

For radiation you need ASL

(not sure what you mean by command line but just went with it as it still explains the difference) 

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.