Proximate

Set time&weather

9 posts in this topic

Hello there!

After 2 days of looking for answer and wondering why it doesn't work, I decided to create this topic.

I've managed to install, configure and start a server on my desktop, but the problem is I'm trying to create a zombie apocalypse server for me and my friends.

For that I want nice, dark weather (fog, maybe rain and thunders) and to set time to mdinight.

I read all the topics on this forum and have no clue, why it doesn't work.

I have modified config.cpp in @Exileserver folder so it looks like this:
 

Spoiler

 

    class Weather
    {
        /*
            You can define multiple "keyframes" for the weather to change. The server will pick
            a keyframe randomly to simulate the weather. It will change the weather-keyframes
            based on the following interval
        */
        interval = 30;

        /*
            Add the keyframes here. The server will pick one random, so if you want one
            weather type of be more dominant compared to others, add it multiple times
        */
        keyframes[] = {"Thunderstorm"};  // można dać Sunny

        /*
            This is a keyframe. Look up the BIKI to get more details about the parameters

            Be sure to design the fog settings at a view distance of 1,600m as this is the
            limit in multiplayer by default

           https://community.bistudio.com/wiki/fogParams
           https://community.bistudio.com/wiki/overcast
           https://community.bistudio.com/wiki/setWaves
           https://community.bistudio.com/wiki/setWindStr
           https://community.bistudio.com/wiki/setGusts
           https://community.bistudio.com/wiki/setRain
           https://community.bistudio.com/wiki/setLightnings
           https://community.bistudio.com/wiki/setRainbow
        */
        /*
        class Sunny
        {
            fogValue = 0;
            fogDecay = 0;
            fogBase = 0;
            overcast = 0;
            waves = 0.2;
            wind = 0;
            gusts = 0.1;
            rain = 0;
            lightnings = 0;
            rainbows = 0.5;
        };

        class Cloudy
        {
            fogValue = 0.2;
            fogDecay = 0.1;
            fogBase = 5;
            overcast = 0.4;
            waves = 0.4;
            wind = 0.25;
            gusts = 0.5;
            rain = 0.1;
            lightnings = 0.1;
            rainbows = 1;
        };
        */
        class Thunderstorm
        {
            fogValue = 1;
            fogDecay = 0;
            fogBase = 10;
            overcast = 1;
            waves = 1;
            wind = 1;
            gusts = 1;
            rain = 0;
            lightnings = 1;
            rainbows = 0;
        };
    };

    class Time
    {
        // Uses Dedicated Server time as ingame Time
        useRealTime = 0;

        // Will overide RealTime
        useStaticTime = 1;

        // time in ARMA FORMAT << CONFIG
        // https://community.bistudio.com/wiki/setDate

        staticTime[] = {2035,12,1,0,0};
    };

 

Left only thunderstorm keyframe and set time to midnight. It's always 3:30 pm on my server! And the weather is totally random, once it's sunny and after restart it's cloudy and rainy.

Can you help me with that? I saw time.sqf script, but I don't need to multiply my time, I just want it dark and scary!

Thanks, Mark.

Share this post


Link to post
Share on other sites

Hello @ All,

i have a problem with the weather too.

Its always "sunny" on my server.

Here is my server config.cpp:

Spoiler

class Weather
    {
        /*
            You can define multiple "keyframes" for the weather to change. The server will pick
            a keyframe randomly to simulate the weather. It will change the weather-keyframes
            based on the following interval
        */
        interval = 15;

        /*
            Add the keyframes here. The server will pick one random, so if you want one
            weather type of be more dominant compared to others, add it multiple times
        */
        keyframes[] = {"Sunny", "Thunderstorm", "Sunny", "Cloudy"};

        /*
            This is a keyframe. Look up the BIKI to get more details about the parameters

            Be sure to design the fog settings at a view distance of 1,600m as this is the
            limit in multiplayer by default

           https://community.bistudio.com/wiki/fogParams
           https://community.bistudio.com/wiki/overcast
           https://community.bistudio.com/wiki/setWaves
           https://community.bistudio.com/wiki/setWindStr
           https://community.bistudio.com/wiki/setGusts
           https://community.bistudio.com/wiki/setRain
           https://community.bistudio.com/wiki/setLightnings
           https://community.bistudio.com/wiki/setRainbow
        */
        class Sunny
        {
            fogValue = 0.1;
            fogDecay = 0.2;
            fogBase = 5;
            overcast = 0.2;
            waves = 0.2;
            wind = 0.25;
            gusts = 0.1;
            rain = 0;
            lightnings = 0;
            rainbows = 0;
        };

        class Cloudy
        {
            fogValue = 0.2;
            fogDecay = 0.1;
            fogBase = 5;
            overcast = 0.4;
            waves = 0.4;
            wind = 0.25;
            gusts = 0.5;
            rain = 0.1;
            lightnings = 0.1;
            rainbows = 1;
        };

        class Thunderstorm
        {
            fogValue = 0.7;
            fogDecay = 0.2;
            fogBase = 5;
            overcast = 1;
            waves = 1;
            wind = 0.25;
            gusts = 0.5;
            rain = 1;
            lightnings = 1;
            rainbows = 0.5;
        };
    };

The weather should / can change all 15 minutes, or i´m wrong?

But its always the whole time "sunny".

Have i done anything wrong here?

Can anybody please help me with that?

Regards from germany

TGM

 

Share this post


Link to post
Share on other sites
Advertisement

 

Quote

keyframes[] = {"Sunny", "Thunderstorm", "Sunny", "Cloudy"};

You have got "Sunny" twice,  maybe that's breaking it :)

Quote

so if you want one
            weather type of be more dominant compared to others, add it multiple times

 

Edited by TheSh1tGamer
  • Like 1

Share this post


Link to post
Share on other sites
On ‎28‎/‎12‎/‎2015 at 2:18 AM, Proximate said:

It's always 3:30 pm on my server!

I have this problem after installing other mods, it never seems to change the time,  Sure its something to do with TOW script.

Also if you want it to be Thunderstorm all the time, just change all 3 settings to thunderstorm settings IE Sunny-Cloudy-Thunderstorm.

Or...

Quote

so if you want one
            weather type of be more dominant compared to others, add it multiple times

 

Edited by TheSh1tGamer

Share this post


Link to post
Share on other sites

	class Time
	{
		// Uses Dedicated Server time as ingame Time
		useRealTime = 0;

		// Will overide RealTime
		useStaticTime = 0;

		// time in ARMA FORMAT << CONFIG
		// https://community.bistudio.com/wiki/setDate

		staticTime[] = {2039,10,24,22,30}; 
	};

Use static time

Adjust the value of the time

2039 = year

10 = month

24 = day (date)

22 = Hour 

30 = minute

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.