Arma 3
Real-Time Weather
56 Comments
CesurMetalci(MaxiMus) Oct 27, 2022 @ 5:35am 
i would be supper happy if you could update this mod
because arma 4 will take so much time to come out
and also if i use the code in middle of the mission the game crashes
Blockdude  [author] Oct 9, 2022 @ 4:40pm 
If this mod was maintained (see my other comment below) it would work world-wide. However, due to technical issues and annoyances, I am not maintaining this for ArmA 3. If/when we get ArmA 4 however, I will be moving/updating this mod
Bendy Oct 8, 2022 @ 7:48am 
does this work on airport codes outside of USA?
Machine Gun Kelly Apr 16, 2022 @ 9:39am 
@Blockdude - Bohemia doing wrong? No wonder I could not sleep last night! ;)

I know what you mean about the DLL stuff...I looked into that before and I said YUK. Too much work for something that should be REAL SIMPLE.

I did enjoy your mod until the day it broke. Oh well...I still appreciate your work on it! :)

HOPEFULLY, if and when ARMA 4 comes our, all of these issues will be addressed!

Thanks for your work!

Just curious...did you mean BIS or BS? ;)


:)
Damien Apr 14, 2022 @ 4:01am 
@Blockdude, I understand.
Blockdude  [author] Apr 13, 2022 @ 8:36pm 
Part of why this mod has been dead is a combination of the API endpoint changing significantly and a lack of motivation/time/reason for me to tend to it as it had been problematic since its start, mostly due to the jank of ArmA's scripting and how DLLs must be created for mods (and related lack of info that isn't out-of-date). I also got tired of BIS doing nothing about the unlimited bugs present in both the game and more importantly the scripting calls, which lead me to stop playing ArmA 3 a few years ago.

I hate seeing abandoned mods and never wanted to abandon my own which had people using them, which is why I maintained my autopilots mod whenever someone pointed out a significant issue, but this mod is just not popular enough for the added headache the complexity adds
Machine Gun Kelly Apr 13, 2022 @ 6:47am 
@Damien - You need to do what I said to do. I have been after him for OVER ONE YEAR to fix this and he does NOT.

Follow my advice I gave you in my last post - That is your ONLY solution besides crying about this mod which solves nothing.

;)
Damien Apr 8, 2022 @ 10:55am 
@Blockdude, please fix this mod.
Machine Gun Kelly Feb 26, 2022 @ 5:02pm 
@Damien - I guess you did not read my post before you made yours. This mod is broken and has been for a good while.

Use what I have been using:
https://steamcommunity.com/sharedfiles/filedetails/?id=879970502&searchtext=real+world+weather

You can also sign-up for their 'ARMA Weather' deal for $1 USD for 10,000 hits. I got them to add this as the mod I mentioned does not use all of the site weather data.

You then can subscribe to this mod, then sub to mine and have a simple interface to use this mod.

See: https://steamcommunity.com/sharedfiles/filedetails/?id=2441776362

Link: https://weatherstack.com/
Plan: Weatherstack - Arma Plan

:)
Machine Gun Kelly Jan 27, 2021 @ 6:12pm 
@Blockdude - It has been a while since I fired up Win7, but I did to see if the issue with your mod followed the OS or ARMA. Under Win7, I get the same error code and ARMA CTD. I thought MAYBE, the files in the folder were corrupt some how. I have another copy of your mod on another HDD, copied it over and it crashed too, same error message. This seems to rule out ARMA and the OS, leaving just your mod to be the issue.

It SEEMS to ME, that you used a key to get the weather OR the site you're using is no longer 'in business', thus the failure, which causes the crash.

Looking forward to you help!

Thanks!

:)
Machine Gun Kelly Jan 26, 2021 @ 6:42pm 
@Blockdude - What libraries must I use to use your mod? It worked for years now, and now, when I use it ARMA crashes with a 0xE0434352 error. I do believe I am missing some Visual C++ or .Net code that I may have messed up due to some issues I had not too long ago.

What is required? And this is for your FIRST version as I never could get v2 (current one) to work at all. V1 works PERFECTLY. :)

Thanks!

:)
taker Jul 22, 2020 @ 3:21am 
Thanks.
Blockdude  [author] Jul 20, 2020 @ 8:58pm 
Server loading it should be all that is needed
taker Jul 20, 2020 @ 2:12pm 
Must all players load the mod or is it enough that the server loads it
Machine Gun Kelly Nov 24, 2019 @ 1:28pm 
@chrisbaker1981 - You're welcome and it is not hard if you can do basic scripting.

:)
Umbhaki Nov 24, 2019 @ 1:14am 
thanks machine gun, i will do, looks like its going to take a little more effort on my part but worth it in the end im sure :)
Machine Gun Kelly Nov 23, 2019 @ 1:14pm 
@chrisbaker1981 - You can. Before this mod was 'out', I was using scripts to set the weather as I liked.

There are examples of setting the weather via scripts.

This is one of mine:

player addaction ["* Weather: 60m -> Med-Max Fog","3600 setfog [.75, .0001, 100]"]

The above script WILL NOT WORK IF USED 'AS IS'!

Go to Google and put in:

"arma 3" weather

OR

"arma 3" weather script adjust



:)
Umbhaki Nov 22, 2019 @ 10:50pm 
@MachineGun
I really am looking for a mod where i can adjust weather parameters in game to suit my mood.
LIke you can in eden editor, i wonder why we cant in game...
Machine Gun Kelly Nov 21, 2019 @ 1:18pm 
@chrisbaker1981 - All I can say is I tried to use the 'new' one and it just would not download any METAR data.

So, I went back to the 'old' one which works just fine.

I told you how to get the old one if you wanted it.

Also, I am GUESSING that something else is going on with your 'stuff' as I never had this issue with either one of these. And you're the first and only one to mention it.

Again, I told you how to get the old one which DOES work, at least for me 100% of the time.

The dev also has a 'test' map for this mod too:

https://steamcommunity.com/sharedfiles/filedetails/?id=1441230136

This about all I can tell/offer you outside of me sending you the old one.

:)
Umbhaki Nov 21, 2019 @ 7:41am 
i mean foon
Umbhaki Nov 21, 2019 @ 7:41am 
@machinegun
YEs i am, i was using one called food, in cetral africa, it worked at first, but ever since it doesnt even let me start the game, unsubscribed, resubscribed, checked integ of game....
Battle ey off.... Im looking for something simple, this one looked good until it started crashing..
Machine Gun Kelly Nov 20, 2019 @ 1:35pm 
@chrisbaker1981 - Are you putting in the METAR station ID (ICAO)?

Examples:

New York City = KJFK
Atlanta = KATL
Los Angles = KLAX

As far as the old version, he does not have it listed here, but if you send an invite, I can get you the file (zipped). And I KNOW this one works as I use it every time I play ARMA. And if you're any good at scripting (i.e., not an expert), I can give you a part of my mod which has about 40 places in the real world 'set' as well as about 15 ARMA/User map locations 'set' to the correct weather at those locations based on the nearest 'real world' location.

Also, you MUST have BattEye TURNED OFF. If not, in the older version, the clock will be set to 00:00 and weather will be a clear sky IF BE was ON (it would never contact anything outside of your PC as if it was a firewall). I do not know what the 'new' one does.

:)
Umbhaki Nov 20, 2019 @ 10:59am 
@Machine Gun - I use https://www.aviationweather.gov/
The Mod actually just crashes the game as soon as i get into the game menu.
Where is the old version?
I really just want a mod that allows me to set the desired weather in game, and simply :)
know of any mods?
Machine Gun Kelly Nov 17, 2019 @ 1:17pm 
@chrisbaker1981 - I can not say how you get your codes. What I do is find a city in the area that I am 'playing in'. Once I find this, I search Google for 'xyz nearest airport', then I take that name, then type 'xyz icao'. This will give me the ICAO code. Then you can put that code into Google and type 'xyz metar'. IF you get a return with the info, it WILL work in this mod.

I have never had this mod 'crash' ever. But, I am using the OLD version too. I can not get the new one to work for me at all.

The old one works just perfect using the above method I described here.

:)
Umbhaki Nov 17, 2019 @ 2:06am 
This is great but if you use a weather station code that it doesntl like it crashes the game to windows. Then, you cant play again unless you unsubscribe from this mod, thats a pitty because its a really cool mod for changing weather in game..
Machine Gun Kelly Oct 15, 2019 @ 8:20am 
@Blockdude - So that there are no questions, I used ONLY: ARMA, CBA, and ACE. All current version when I tested in the past as well as today's test.

Old version worked perfectly last night... :)

:)
Machine Gun Kelly Oct 15, 2019 @ 8:18am 
@Blockdude - Hey, I have been using your original version for a long time now, and a few months back and today, I tried the 'latest' version. Sadly, it does not work. I even tried your demo and same results.

In the debug console, I tried:

hal_weatherStation = "KATL";
[] spawn HAL_fnc_runWeatherMission;

hal_weatherStation = "KJFK";
[] spawn HAL_fnc_runWeatherMission;

hal_weatherStation = "KLAX";
[] spawn HAL_fnc_runWeatherMission;

None of these worked... and yes, I tried them separately.... ;)

Battle Eye is OFF.

The old/original version works perfect. So I am at a loss here unless the format above is invalid.

Also, as a 'feature', to add a +/- on the time. Some people like me, use 'Daylight Savings Time' and have to adjust the clock due to this. Others might find it useful as well.

Old works WONDERFULLY!

Thanks again!

:)
Machine Gun Kelly Apr 9, 2019 @ 2:14pm 
@Blockdude - I sent ya a request...had a private question for ya!

:)

Blockdude  [author] Nov 24, 2018 @ 11:31am 
@stb.business Its an option in the CBA menus, just like setting the station, time, and visibility options.
stb.business Nov 23, 2018 @ 11:19pm 
Hi Blockdude, in the changelog it says "- Added wind option in settings". How to use that option? Love your MOD!!!
Blockdude  [author] Sep 9, 2018 @ 11:42pm 
Glad to hear its still preforming well for everyone. The METARs make it have a long lifespan so even if I ever stop supporting this mod it will (Theoretically) keep working for years!
stb.business Sep 9, 2018 @ 6:59am 
Finally we've got an easy to use and reliable real time weather for SP. Clever idea to use the METARs. Thank you!
Blockdude  [author] Aug 16, 2018 @ 9:31am 
@hht134 That depends on a few things:
If you want to start off with certain weather you would put it in to init.sqf (Or if you don't like digging into files, you could put it in a Game Logic). If you have something in your mission which warrants different weather, you would put such code into somthing such as a trigger's 'On Act' field.

Remember too that there is an example mission I have made available to reference if you need or want it.

I hope this helps!
Machine Gun Kelly Aug 16, 2018 @ 8:38am 
@hht134 - What I do is, I have scritps for many cities. I select the one I want to use and that is that. For some settings, such as setting the time, use the menu found in the main menu un addons.

3 examples of the scripts that I use:

For New York City:

"KJFK" spawn HAL_fnc_runWeatherLoop;
_icao="KJFK - New York City";
hint format ["\nWeather Has Been Set For:\n%1\n\n",_icao];
_icao="";


For Tanoa:

"NFTV" spawn HAL_fnc_runWeatherLoop;
_icao="NFTV - Tanoa";
hint format ["\nWeather Has Been Set For:\n%1\n\n",_icao];
_icao="";


For Bornholm:

"EKRN" spawn HAL_fnc_runWeatherLoop;
_icao="EKRN - Bornholm";
hint format ["\nWeather Has Been Set For:\n%1\n\n",_icao];
_icao="";


Actual Code = "ICAO CODE" spawn HAL_fnc_runWeatherLoop;


:)
Schwagenmuech Aug 16, 2018 @ 3:55am 
where should i type in the code?
Blockdude  [author] Jul 18, 2018 @ 11:49pm 
Thanks for working on the issue with me. Glad it's fixed now!
Machine Gun Kelly Jul 17, 2018 @ 9:24am 
All fixed and working! Does what it says it does!
:)
Machine Gun Kelly Jul 15, 2018 @ 6:04pm 
@Blockdude - Ok, I got it working. You have 2 issues on your end. Not wanting to write a book, if you accept the friend invite I sent you the other day, we can discuss these 2 issues so that they will not be a problem for others.

They are small problems, but they will cause the mod NOT to run/work AT ALL. After I made the corrections, BAM! Works like a charm! 'Out of the box'? Nah, it WILL FAIL.

Accept the invite and then we can get on discord or TS and take it from there!

Thanks for your help!

:)
Machine Gun Kelly Jul 15, 2018 @ 1:40am 
I just ASSUMED it is not running as it was NOT being blocked by BE. If it is not being blocked by BE, it means it is NOT running PERIOD!

And I am 99% sure the problem is not on my end. I run 140+ mods and quite a few of them have DLL's in them and I have no issue with any of them. ACE, ALiVE, M3Editor, EPM Rcon, InfiSTAR, and Exile server. MANY DLL's and ZERO issues.

The only thing I can think of and I have seen it before, is that some server 'things' MUST be run on a dedicated server and NOT a user created server as I was doing. That is, not using the armaserver.exe.

I was starting a LAN server via arma.exe Maybe this is the issue?

But the use of ARMA DLL's by me on my pc do work.

So you know, I have 45+ years of programming and 35+ years of IT break/fix work including board level repairs and 10,000+ hours on A3 alone, with 16+ years with OFP/ARMA. A 'noob' I aint... ;)

Regardless, thanks for the effort!

PS - CAPS is for 'emphasis', not anger....

:)
Blockdude  [author] Jul 15, 2018 @ 12:36am 
Alright, look: Im not sure what issue your having. The DLL is running not only on my machine, but on 2 other machines which I have not touched as they are not mine and I don't have access to them. They were both able to load the example and have the weather (and thus the DLL) work without doing anything to make it work. The DLL is running, as it is defined to do so in the function the mission runs and that you have said you ran.

Whatever this problem is seems to be a you problem. I cannot help you with that, that's for you to try to fix. If you find the problem or it seems to be a more common problem, I'll post about it and look in to it respectively. But until someone else can replicate the error, or another error arises, I see this mod as functional. At the very least it works with my example mission and some other ICAOs I've treid.
Machine Gun Kelly Jul 14, 2018 @ 10:30pm 
No. Re-read what I wrote. It did not work. I even changed the ICAO to a airport where it was pouring down rain - same thing as your ICAO - 30% overcast. One time I started it and it was NO CLOUDS. Use the 'restart' option from the ESC menu, then it was 30% overcast!

I also ENABLED BE and your DLL did NOT show in the 'blocked items' list. This means BE ALLOWED it OR it is NOT RUNNING.

SInce you said it is not permitted, this means to me that the DLL is not even running. As a programmer myself, I THINK what is going on, as it HAS happened to me, you have some files on your PC that we do not have. Thus, it is running for you, but for US, it is NOT running.
Machine Gun Kelly Jul 14, 2018 @ 10:30pm 
To put it simply, this mod has never worked:

With BE OFF OR ON
With your ICAO or OTHERS
In SP OR MP
Launched via INIT.SQF. via triggers, or in the debug window

I feel that:

The DLL is not running/the script is not runnning the DLL - OR -
The DLL is not getting the info from the METARs or some other weather inputs - OR -
The DLL is not outputting the data/the script is not getting the data

It has to be one of the above.

:)
Blockdude  [author] Jul 14, 2018 @ 9:20pm 
Did the mission as it was work?
I have had problems in the past with BE blocking the DLL so it is being called for sure and Ill look into other people replicating it but im not sure about it
Machine Gun Kelly Jul 14, 2018 @ 8:30pm 
Ok...

1 - I copied your MP mission to my local MP folder.

2 - I change the UHSS to KGEU, which is pouring down rain there.

3 - PBO'ed it back.

4 - Started local MP game and selected my (your) mission from my local folder.

5 - Weather looked just like your untouched mission looked liked, which is what is set in the editor, 30% clouds.

It looks like nothing is/was changed at all. I TRIPLE CHECKED to ensure BE was disabled - it was.
Machine Gun Kelly Jul 14, 2018 @ 8:30pm 
BUT, I said...let me turn it on...and guess what? IT IS NOT EVEN BEING BLOCKED! This tells me that the DLL is not even being run! This would explain why it never works!

I am 99% sure that this is the issue. The DLL is not being called. Because, with BE being on, it should have blocked the DLL and it would be in the BE 'blocked list' showing on the Bohemia Launcher BE tab - it is not.

I think this is the issue....also, due to MY fault, prior to the sample mission, I was trying to get it to work as a SP mission and not a MP. I did this time though....

:)
Machine Gun Kelly Jul 14, 2018 @ 7:38pm 
Kool...ok...i'll get it and we will see!

Thanks!

:)
Blockdude  [author] Jul 14, 2018 @ 3:43pm 
Well, I have made an example mission which runs without problems. One thing to note, however, is if you run code from an object's init (Such as a Logic Entity or vehicle) then it will be immediatley overwritten by CBA's automatic implementation and will be a waste. All you have to do to avoid this is add a manual delay of your choosing OR put it into the init.sqf in the mission folder.
Machine Gun Kelly Jul 14, 2018 @ 2:33pm 
Whoops...I forgot to tell ya...I ONLY have ARMA, CBA, and your mod running with BE turned off with all tests; yesterday's and today's...
:)
Machine Gun Kelly Jul 14, 2018 @ 2:31pm 
I hate to say it...it does nothing. The error is gone, but even with setting the weather to zero clouds, it does nothing.

I put this into the debug window as well as having a trigger, in it:

hal_weatherStation = "KIJX"; (KATL in a second try)
hal_enforceVis = false;
hal_enforceTime = false;
[] spawn HAL_fnc_runWeatherMission;

I start with clear skies, then I try:
KATL - clear and hot
KIJX - should be heavy clouds and possible rain

After using debug or trigger - sky is clear.

This is using the manual or non-manual weather settings in the editor.

I also tried setting to both values in the ESC/options/addon options menu - nothing.

This is why I suggested you put a demo mission out...

I am thinking you have left out some files and/or there not in the right folder for us. Such as having the DLL in the ARMA root folder...or something like that... ;)

Thanks though!

:)


Machine Gun Kelly Jul 14, 2018 @ 2:12pm 
Kool....I'll give it a shot! Thanks! :)

And I know about the }'s. They have given me 'issues' before too.... ;)

And the reason for a 'sample mission' and putting the text 'ICAO codes', is for those who are 'uneducated' on these items.

Example:
From:
Where the XXXX is an airport ID found on the AWC Website.
Note: These are ALWAYS 4 capital letters

To:
Where the XXXX is the ICAO airport code found on the AWC Website.
Note: These are ALWAYS a four-character alphanumeric code designating each airport.

Another good search site for ICAO codes is: http://www.airlinecodes.co.uk/aptcodesearch.asp

I'll let you know how it goes!

Thanks again!

:)