Hi Rube
I've been having a bit of a play with your amazing weather module. Obviously it does and can do an enormous amount, but basically I'm happy for the module to just do a couple of things:
1 - generate random weather on custom maps. Usually desert or central asian maps.
2 - return a temperature value which I can use as a trigger for foggy breath. E.g. temperature < 5 deg C causes foggy breath. I'm aware that this is also dependent on humidity but c'est la vie.
I'm not that concerned with forecast, colour filters etc
To this end I set up a very simple script to start generating random weather, using the Bamiyan season data, and disabling the colour filter stuff.
PHP Code:
if (isnil "RUBE_fnc_init") then { [] call (compile preprocessFileLineNumbers "RUBE\init.sqf")};
waitUntil{!(isnil "RUBE_fnc_init")};
[] execVM "RUBE\modules\weather\init.sqf";
waitUntil{!(isnil "RUBE_weather")};
"bamiyan" call (RUBE_weather getVariable "set-season-model");
[] call (RUBE_weather getVariable "generate-weather");
RUBE_weather setVariable ["enable-color-filter", !(RUBE_weather getVariable "enable-color-filter"), true];
[] call (RUBE_weather getVariable "reset-weather-engine");
[] call (RUBE_weather getVariable "start-weather-engine");
This all seems to work, and I get random weather, a temperature value I can grab using (RUBE_weatherEngine getFSMVariable "_temperature"), and no colour fx.
The only problem is that I always get the following error popping up before the mission starts:
Scripts RUBE\modules\weather\seasonmodels\.sqf not found
I can pretty much guarantee I'm doing something wrong. Any clues? Thanks!