John Mccalum 0 Posted January 22, 2019 Hi all here I am looking for rain on my server but I can not do it I have to change what in: //INIT WEATHER BEFORE ECONOMY INIT------------------------ Weather weather = g_Game.GetWeather(); weather.MissionWeather(true); // false = use weather controller from Weather.c weather.GetOvercast().Set( Math.RandomFloatInclusive(0.2, 0.3), 1, 0); weather.GetRain().Set( 0, 0.5, 1); weather.GetFog().Set( Math.RandomFloatInclusive(0.05, 0.08), 1, 0); weather.GetRain().SetLimits( 0, 1 ); thank you in advance Share this post Link to post Share on other sites
John Mccalum 0 Posted January 26, 2019 no one to help :(? plz Share this post Link to post Share on other sites
Fun Automat 23 Posted January 26, 2019 storage 1 / data... https://drive.google.com/file/d/1sNT6kC4fOdOl3bqFUMp3a76RtiKw9gBc/view?usp=sharing Enjoy.. Share this post Link to post Share on other sites
John Mccalum 0 Posted January 26, 2019 what's this? Share this post Link to post Share on other sites
Fun Automat 23 Posted January 27, 2019 just download this...save your old file and replace it. weather is stored in the events.bin..... if u want the bad weather back just delte and restart the server or use the old backup file.. Share this post Link to post Share on other sites
John Mccalum 0 Posted January 27, 2019 I just put the event in the server and restart for now it's nice to see in time Share this post Link to post Share on other sites
John Mccalum 0 Posted January 27, 2019 Even after putting this file I have no difference :( Share this post Link to post Share on other sites
Fun Automat 23 Posted January 28, 2019 Ah fuck....u WANT rain.... U have to edit the init.c.... this is the code from 0.63.... Edit it...start the server one time...let it run for a moment and restore the orginal init.c file. (the weather is stored inside the events.bin) void main() { Hive ce = CreateHive(); if (ce) ce.InitOffline(); Weather weather = g_Game.GetWeather(); weather.GetOvercast().SetLimits(0.0, 1.0); weather.GetRain().SetLimits(0.0, 1.0); weather.GetFog().SetLimits(0.0, 0.25); weather.GetOvercast().SetForecastChangeLimits(0.0, 0.2); weather.GetRain().SetForecastChangeLimits(0.0, 0.1); weather.GetFog().SetForecastChangeLimits(0.15, 0.45); weather.GetOvercast().SetForecastTimeLimits(1800, 1800); weather.GetRain().SetForecastTimeLimits(600, 600); weather.GetFog().SetForecastTimeLimits(1800, 1800); weather.GetOvercast().Set(Math.RandomFloatInclusive(0.0, 0.3), 0, 0); weather.GetRain().Set(Math.RandomFloatInclusive(0.0, 0.2), 0, 0); weather.GetFog().Set(Math.RandomFloatInclusive(0.0, 0.1), 0, 0); weather.SetWindMaximumSpeed(15); weather.SetWindFunctionParams(0.1, 0.3, 50); U have to edit... weather.GetRain().SetLimits weather.GetRain().SetForecastChangeLimits weather.GetRain().SetForecastTimeLimits weather.GetRain().Set( Math.RandomFloatInclusive U have to play with this numbers.... double it Share this post Link to post Share on other sites
RuffZ 7 Posted March 24, 2020 Does this still work? On our server, we want to reduce the rain (or turn it off completely if possible). Can you help us? The reason for this request, is the past admins do not know why it rains in livonia 100% of the time...the rain actually never ever stops, so they want it off, or back to how it was originally or even less if possible. Share this post Link to post Share on other sites