Andi1982 Posted February 27, 2008 Report Posted February 27, 2008 Hi Pete, at the moment i try to set the weather in FS2004. For that i use the structure of the new weather interface at address C000 and following... In the documentation of the NWI you give this example sequence for setting the weather: 1 read timestamp (an FSUIPC read) 2 write station (one or more FSUIPC Writes) 3 FSUIPC Process call 4 save the timestamp read as "x" 5 read timestamp (an FSUIPC read) 6 FSUIPC Process call 7 if timestamp not yet changed from "x", loop to 5 (at next time interval*) 8 save new timestamp as 'x' 9 continue at 2 till done all weather stations Now i want to set the Global weather, which timestamp do i have to read? Do i have to read the timestamp of area 0(CC00-C3FF), area 1 or area 3? I tried this with timestamp of area 0, but this one changed everytime i read out. Am i right thinking, that the timestamp in area 1 has to be updated after i set the global weather? Best regards Andi
Pete Dowson Posted February 28, 2008 Report Posted February 28, 2008 Now i want to set the Global weather, which timestamp do i have to read? Do i have to read the timestamp of area 0(CC00-C3FF), area 1 or area 3? What are you reading? Not my documentation! Please do refer to the actual "NewWeather ReadMe" text document. You seem to have everything completely wrong. Even your extract of the sequence for writing is actually part of the Area 2 description, so why you'd even think of the read-only areas for writing is mystifying. Area 0 as documented is C000-C3FF, and is the read-only weather at the aircraft! Only area 2 (C800-CBFF) is writeable and is used for setting weather. Also as written in the documentation, there is only one area for setting weather -- all the other areas are read-only. The weather setting area is Area 2, as it clearly says. It does even says "read-only" for the others! Writing global weather is EXACTLY the same as writing any WX station weather except that the ICAO ID code is "GLOB". It does also say this is the documentation. Pete
Andi1982 Posted February 28, 2008 Author Report Posted February 28, 2008 hey pete, i think i was wrong. did not notice that my quotation is part of the description for Area 2 (setting area). Regards Andi
Pete Dowson Posted February 28, 2008 Report Posted February 28, 2008 ... did not notice that my quotation is part of the description for Area 2 (setting area). Okay, so you are on the right track now? Pete
Andi1982 Posted February 29, 2008 Author Report Posted February 29, 2008 Yes i think so, anyway tries to set the weather where successful! Thanks for pushing me back on the right track!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now