xDaVIRUS

Weather Question

12 posts in this topic

Trying to figure out why weather will only be sunny. what would be causing this? I have cloudy. sunny. thunderstorm on exileserver but it doesnt want to cycle through it always wants to just be sunny all the time.. Anyone got anything for me?

 

    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[] = {"Sunny", "Cloudy", "Thunderstorm"}; 
        keyframes[] = {"Sunny", "Cloudy", "Thunderstorm"}; 

 

16:01:07 "ExileServer - Job with handle 10000 added."
16:01:07 "ExileServer - Job with handle 10001 added."
16:01:07 "ExileServer - Job with handle 10002 added."
16:01:07 "ExileServer - Job with handle 10003 added."
16:01:07 Weather was forced to change
16:01:07 "ExileServer - Job with handle 10004 added."
16:01:07 "ExileServer - Job with handle 10005 added."

Edited by xDaVIRUS

Share this post


Link to post
Share on other sites

I can't see much wrong there, do your weather classes look like this:

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

 

Share this post


Link to post
Share on other sites
Advertisement

I found that the weather, whilst random, rarely picks Sunny if other options are there. I ended up setting 8 different Sunny options (Sunny1, Sunny2, Sunny3..) and then the 1 cloudy and 1 stormy. Now it works much better, picking Sunny most of the time and occasionally getting cloudy or stormy.

Share this post


Link to post
Share on other sites

This is what my weather looks like, its clear 70% of the time (half clear skies half cloudy) and 30%ish rain or very light fog

Spoiler

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

 

class Sunny
        {
            fogValue = 0.1;
            fogDecay = 0.2;
            fogBase = 5;
            overcast = 0.6;
            waves = 0.2;
            wind = 0.1;
            gusts = 0.1;
            rain = 0;
            lightnings = 0;
            rainbows = 0;
        };
        
        class Sunny2
        {
            fogValue = 0.1;
            fogDecay = 0.2;
            fogBase = 5;
            overcast = 0.6;
            waves = 0.2;
            wind = 0.1;
            gusts = 0.1;
            rain = 0;
            lightnings = 0;
            rainbows = 0;
        };
        
        class SunnyOvercast
        {
            fogValue = 0.1;
            fogDecay = 0.2;
            fogBase = 5;
            overcast = 1;
            waves = 0.2;
            wind = 0.1;
            gusts = 0.1;
            rain = 0;
            lightnings = 0;
            rainbows = 0;
        };
        
        class SunnyOvercast2
        {
            fogValue = 0.1;
            fogDecay = 0.2;
            fogBase = 5;
            overcast = 1;
            waves = 0.2;
            wind = 0.1;
            gusts = 0.1;
            rain = 0;
            lightnings = 0;
            rainbows = 0;
        };

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

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

 

Edited by Crazy Mike

Share this post


Link to post
Share on other sites

Thanks guys!, i ended up putting Sunny, Cloudy, Thunderstorm, Cloudy, Thunderstorm and it finally started to rain.. haha. I may have to try your weather though that looks interesting @Crazy Mike

Share this post


Link to post
Share on other sites
Just now, xDaVIRUS said:

Thanks guys!, i ended up putting Sunny, Cloudy, Thunderstorm, Cloudy, Thunderstorm and it finally started to rain.. haha. I may have to try your weather though that looks interesting @Crazy Mike

i wanted there to be different types of "sunny" so its not always that ugly super bright sun all the time and give it some actual atmosphere as my server is all about atmosphere :P

Share this post


Link to post
Share on other sites

@Crazy Mike 

Thanks for all your input, however for some reason, I have rain completely turned off, because it was overtaking the entire server, all it did was rain, i have absolutely NO rain, however it still rains, Any ideas where that would be coming from?

Share this post


Link to post
Share on other sites
1 minute ago, xDaVIRUS said:

@Crazy Mike 

Thanks for all your input, however for some reason, I have rain completely turned off, because it was overtaking the entire server, all it did was rain, i have absolutely NO rain, however it still rains, Any ideas where that would be coming from?

past 50% overcast the rain likes to sneak in, I've since set all my overcast settings to 50% and only one to 100% for a chance of rain

1 person likes this

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.