Jump to content

Off Rain


tomasz73

Recommended Posts

If you want static weather, change in epochconfig.hpp

WeatherStaticForecast[] = {};

to

WeatherStaticForecast[] = {75.5,0,{0,0,0},0.4,{1,1}};

and comment out 

//{ 1800, "ChangeWeather" },

Alternatively, if you want to retain dynamic changing weather, but want to turn off rain

Crack open the a3_epoch_server pbo and add this line in \compile\epoch_server\EPOCH_server_setWeather.sqf
at around line 33
 

if (_rain > 0)then{_rain = 0;};

Then repack the pbo.

Link to comment
Share on other sites

The function in the server pbo is not used anymore as the code was moved to a Epoch Event as mentioned on the changelog:

[Added] Weather code migrated into an Epoch Event and code moved to settings pbo.

ChangeWeather.sqf

https://github.com/EpochModTeam/Epoch/blob/master/Sources/epoch_server_settings/EpochEvents/ChangeWeather.sqf

 

I added that line of code to the weather event/settings and it didn't work, added line to server pbo and it worked.

Link to comment
Share on other sites

I changed the epoch config.hpp 

 

WeatherStaticForecast[] = {}; // Default: {75.5,0,{0,0,0},0,{1,1}}; // Clear day; {19,1,{1,1,40},1,{5,5}}; // Cold Foggy Rainy Overcast Windy; Format: {temp <scalar>,rain <scalar>,fog <array>,overcast <scalar>,wind <array>}
events[] = {
    { 3600, "CarnivalSpawner" }, // SECOND <scalar>, EVENT <string>
    { 2400, "EarthQuake" },
    { 1800, "ChangeWeather" },
    { 1200, "ContainerSpawner" },
    { 300, "PlantSpawner" } //No comma on last Entry
on 
 
WeatherStaticForecast[] = {75.5,0,{0,0,0},0,{1,1}}; // Default: {75.5,0,{0,0,0},0,{1,1}}; // Clear day; {19,1,{1,1,40},1,{5,5}}; // Cold Foggy Rainy Overcast Windy; Format: {temp <scalar>,rain <scalar>,fog <array>,overcast <scalar>,wind <array>}
events[] = {
    { 3600, "CarnivalSpawner" }, // SECOND <scalar>, EVENT <string>
    { 2400, "EarthQuake" },
    { 1800, "ChangeWeather" },
    { 1200, "ContainerSpawner" },
    { 300, "PlantSpawner" } //No comma on last Entry
 
but I do not really know what to change in ChangeWeather.sqf  to turn off the rain
Link to comment
Share on other sites

I have a clear sky, the sun at the moment there is no rain

 

 

Edit - Hour sit on a server and there is no rain. I think it's fine. I changed only

 

WeatherStaticForecast[] = {75.5,0,{0,0,0},0,{1,1}}; // Default: {75.5,0,{0,0,0},0,{1,1}}; // Clear day; {19,1,{1,1,40},1,{5,5}}; // Cold Foggy Rainy Overcast Windy; Format: {temp <scalar>,rain <scalar>,fog <array>,overcast <scalar>,wind <array>}

Link to comment
Share on other sites

I have also problems to set static weather since 0.3.1.0.

 

In epochconfig.hpp:

WeatherStaticForecast[] = {75.5,0,{0,0,0},0,{1,1}};

 

ChangeWeather.sqf is added to "a3_epoch_server_settings\EpochEvents"

 
"Check that you updated your epochconfig.h and are not running an old server fsm."
Where can I find epochconfig.h?
What means "server fsm"?
Link to comment
Share on other sites

 

I have also problems to set static weather since 0.3.1.0.

 

In epochconfig.hpp:

WeatherStaticForecast[] = {75.5,0,{0,0,0},0,{1,1}};

 

ChangeWeather.sqf is added to "a3_epoch_server_settings\EpochEvents"

 
"Check that you updated your epochconfig.h and are not running an old server fsm."
Where can I find epochconfig.h?
What means "server fsm"?

 

Make sure you are running the latest @EpochHive\addons\a3_epoch_server.pbo or at least are using it to apply your customizatons.

 

Inside the PBO file the referenced file should be \system\server_monitor.fsm

 

Check the file dates.

Link to comment
Share on other sites

Make sure you are running the latest @EpochHive\addons\a3_epoch_server.pbo or at least are using it to apply your customizatons.

 

Inside the PBO file the referenced file should be \system\server_monitor.fsm

 

Check the file dates.

a3_epoch_server.pbo -> 2015-07-29 11:59

 

Checked without Infistar (can change the weather) -> problem stays.

Removed "enableEnvironment true;" from onPlayerRespawn.sqf -> problem stays

 

Why do I have to customize the a3_epoch_server.pbo?

I think, when all files are actual, I only have to change: "WeatherStaticForecast[] = {75.5,0,{0,0,0},0,{1,1}};

Link to comment
Share on other sites

WeatherStaticForecast[] = {75.5,0,{0,0,0},0.4,{1,1}}; // Default: {75.5,0,{0,0,0},0,{1,1}}; // Clear day; {19,1,{1,1,40},1,{5,5}}; // Cold Foggy Rainy Overcast Windy; Format: {temp <scalar>,rain <scalar>,fog <array>,overcast <scalar>,wind <array>}
events[] = {
    { 3600, "CarnivalSpawner" }, // SECOND <scalar>, EVENT <string>
    { 2400, "EarthQuake" },
//    { 1800, "ChangeWeather" },
    { 1200, "ContainerSpawner" },
    { 300, "PlantSpawner" } //No comma on last Entry
};

I have mine set as above and still get rain....anyone worked out how to kill off the rain on Altis? Just rains too much on this map...

Link to comment
Share on other sites

Now I have set up all again.

Now no more rain and normal nighttime...

The only think is, that I have sometimes fog. But this is ok for me.

But I unfortunately don't know, what the Problem was.

 

My Changes:

- Removed "enableEnvironment true;" from onPlayerRespawn.sqf

- reinstalled all epoch files

- WeatherStaticForecast[] = {75.5,0,{0,0,0},0.4,{1,1}};

- // { 1800, "ChangeWeather" },

Link to comment
Share on other sites

  • 2 weeks later...

Found this:

 

In epochconfig.hpp:

WeatherStaticForecast[] = {75.5,0,{0,0,0},0,{1,1}};
 
In ChangeWeather.sqf:
if !(EPOCH_WeatherStaticForecast isEqualTo []) then {...
 
Is it right, that the variables have not the same name???
Do I simply have to rename the variable in ChangeWeather.sqf to "EPOCH_WeatherStaticForecast"
 
Okay, tested and do not work.
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

I'm also having this problem, I changing the WeatherStaticForecast to...

WeatherStaticForecast[] = {75.5,0,{0,0,0},0.4,{1,1}};

And it's fine for a few mins on restart, but then weather change still triggers and it starts pouring again. I tried commenting out the WeatherChangeTime, and\or adding...

if (_rain > 0) then { _rain = 0; };

...to ChangeWeather.sqf, (also tried in the EPOCH_server_setWeather.sqf) but none of this works for me. Weather continues to be not static. Any help would be greatly appreciated. 

Edited by blue00
Link to comment
Share on other sites

A Greek island in the Mediterranean wouldn't get as much rain as Altis gets in Epoch.  Assuming the rain can be "fixed", wouldn't it make sense to use existing weather statistics for Lemnos?

The probability that precipitation will be observed at this location varies throughout the year. Precipitation is most likely around January 6, occurring in 38% of days. Precipitation is least likely around August 1, occurring in 6% of days.

 

Link to comment
Share on other sites

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
  • Advertisement
  • Discord

×
×
  • Create New...