Highvolt Posted December 15, 2003 Report Posted December 15, 2003 Hi Pete, I'm trying to set the weather using the FS98 interface like you suggested. The only weird thing is that when i set the lower layer to something, an upper layer sometimes is being created at 39000 ft... Even though i'm writing zero's to those offsets at the same time i'm writing the values for the lower layer. Writing zero's to the upper layer doesnt make it go away either. this is a small part of the code: the values are all defined as unsigned shorts. (16bit) FSConnect->Write(CloudUpper.baseoffset,2,&CloudUpper.base); FSConnect->Write(CloudUpper.ceilingoffset,2,&CloudUpper.ceiling); FSConnect->Write(CloudUpper.coverageoffset,2,&CloudUpper.coverage); FSConnect->Write(CloudUpper.deviationoffset,2,&CloudUpper.deviation); FSConnect->Write(CloudUpper.icingoffset,2,&CloudUpper.icing); FSConnect->Write(CloudUpper.turbulenceoffset,2,&CloudUpper.turbulence); FSConnect->Write(CloudUpper.typeoffset,2,&CloudUpper.type); + 2x this code but with CloudLower & CloudThunderstorm objects Is it normal that FS2002 creates is own upper cloud layer to maybe make it more realistic ? Kind Regards, Van Ertvelde Wim
Pete Dowson Posted December 16, 2003 Report Posted December 16, 2003 I'm trying to set the weather using the FS98 interface like you suggested. The only weird thing is that when i set the lower layer to something, an upper layer sometimes is being created at 39000 ft... Clouds you mean? Have you got the FSUIPC option enabled to add a cirrus layer? I think it defaults on. FSConnect->Write What's "FSConnect->Write"? I don't recognise that. Is it something from my SDK? Is it normal that FS2002 creates is own upper cloud layer to maybe make it more realistic ? No, but there is an option in FSUIPC for that. Perhaps a casual read of the FSUIPC User Guide may be in order? :wink: Regards, Pete
Highvolt Posted December 16, 2003 Author Report Posted December 16, 2003 hmmm, it seems that you are right :oops: The problem is that i'm doubting my own programming 'skills', so the first thing that comes into my mind is "I've must have programmed something wrong" I'm using MFC for my weather interface, and the "FSConnect" is an object derived from the CFSUIPC that was delivered with the fsuipc (mfc) sdk. Thanks for the help! Cya, Wim
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