Jump to content
The simFlight Network Forums

Pete Dowson

Moderators
  • Posts

    38,265
  • Joined

  • Days Won

    170

Everything posted by Pete Dowson

  1. It's a totally different level, the one knows nothing about the other. The same will apply to the wind smoothing which should be working on all weather sources in the next FSUIPC version, soon. I'm not sure there's any one thing I could pick on to say "right, let the visibility jump direct to this new value, now". Maybe after a "clear all weather" call, assuming AS makes one. But it would still be complicated -- AS like FSMeteo will not be setting one weather, one visibility, which I can call the target. It sets all the METAR stations around, and this could take minutes in any case. How does FSUIPC know when to "kick in" the smoothing? The only thing I can think of it to stop smoothing on a "clear all weather" action, and not starting again for several minutes. Is that what you were thinking? Trouble is then, I'd be getting complaints from some folks saying the smoothing didn't work. If I worked out a way to do it, I'd have to make it optional and possibly have the delay set as a parameter in the INI file. BTW 10% over 30 seconds is a bit extreme, isn't it? Anyway, if you start AS off before you do your flight prep and so on it should still be okay by the time you're ready. No? Regards, Pete
  2. I don't know SB, so I don't realy know the answer. But if it is playing a chime sound, then that will almost certainly only sound on the Client -- it would need something programmed for it on the Server otherwise, as FSUIPC doesn't offer any sound playing facilities. If you are missing the sound itself then you probably need the sound turned up on the client. (If using voice ATC of course you'd want your headset connected to that PC in any case). If it is a displayed message, then it depends how it is displaying it. If it is using its own window someplace, then that would presumably be on the Client. If it uses the FSUIPC facility to access the FS message window then it can appear either on the PC outside view, or wherever you like, via AdvDisplay and optionally ShowText. Not knowing what the chime alert truly is I can't really help further, but possibly other SB users may be able to comment here. Regards, Pete
  3. No, that is not true. If you want to use WideFS you have to register it, but you do not need to register FSUIPC unless you want to use it's optional features. WideFS will run all FSUIPC client programs on the clients even if they are not accredited to run direct to FSUIPC on the Server. That second part is correct. If you do want to register both you make a saving but only if you purchase them at the same time. Regards, Pete
  4. The defaults should be okay. There aren't any you can change which would affect CPU usage -- mostly they control things like whether the client sleeps a bit before returning control to the client application -- this is designed to prevent the applications hogging the processor, and in effect gives processor time away. But even setting that specific timeout to zero (so there are no such sleeps) should only mean the application is getting more time, not WideClient. When there's no application running Wideclient will be idling, just waking up to receive frames from the Server and, on timer calls, to send one to show it is still there. Certainly, though, you are right that I ought to have checked the INI files he is using -- I suppose I assumed he would leave them to default. Regards, Pete
  5. I don't think Jose visits here often these days -- he replied earlier because I sent him a note. You might want to try contacying him via the "email" button on his message. Regards, Pete
  6. Actually you are multiplying by 65536, but yes, the result would be the same if you did the computation AFTER casting it to a "short". Do all the computation first -- the bit of code I showed was supposed to be as it was, no intervening changes :wink: Regards, Pete
  7. No, sorry. The last version of FS for which I managed to split the sounds was FS98. It was because I couldn't make it do that in FS2000, 2002 (and now 2004) that I dropped it, as for me that was it's main purpose - though in those days the ATC was only from Adventures. These days I use Radar Contact running on a separate PC via WideFS. Regards, Pete
  8. This is because double heading; defines a double floating point value, 8 bytes in length, whereas: FSUIPC_Write(0x07CC, 2, &heading, &dwResult); is trying to write this to a 16-bit (two byte) "short". All you are succeeding in doing is writing the lowest 2 bytes of the 8 byte double, which will be pretty meaningless. You need to copy the double floating point heading to a fixed point short integer first, like this: short sHdg = (short) (heading + 0.5); FSUIPC_Write(0x07CC, 2, &sHdg, &dwResult); I've added 0.5 to round the value, for a little more accuracy :wink: Regards, Pete
  9. Ah, right. In that case something is very much amiss. Well if it is only happening when Wideclient is running, then it must be the network, but it doesn't appear to be coming through to WideClient in any sort of failure report. Mind you, with less than 4 seconds of operation and apparently no application running, Wideclient wouldn't have had anything much to do in any case. When you actually run a WideClient application does that run normally or slow? Are there any errors in the Log then? Don't just look at the Client log -- there may be problems reported at the Server end. I really don't know what else to suggest. If you are using a Network card, try swapping it, or try uninstalling it and reinstalling it. See if there are later drivers, and so on. With no actual errors I can't understand what is holding things up, and as you say the same Network card and drivers operate okay when it is playing the part of the Server instead. Most odd. I think you may need to find a Network expert for this if you can't track it down yourself. Try Katy Pluta ober in the FS2004 Forum. She's been able to help me several times. Regards, Pete
  10. What do you mean by "needs"? For instance, depending on PC type and some other things, FS "needs" 100% of PC cycles. I think "uses" is a better word than "needs" -- it soaks up idle time. You can only determine whether it "needs" those by seeing if other things run as well without it stopping or slowing significantly. Apart from calls from applications, WideClient also works off calls to it from Winsock (the network part of Windows), plus a 'watchdog' timer (WM_TIMER) message to keep track of responses. Between them these determine how much time it uses. Quite honestly I cannot understand why you are looking at CPU usage in any case. What is the actual problem you are trying to resolve? CPU usage is not a problem in itself -- it may help determine what is going on when there is a problem, but should otherwise be completely ignored. No, there's nothing shown wrong there -- it often happens that WideFS takes two tries to connect, as here, because of initial setup exchanges. That is nothing to worry about and only occurs in the first few seconds. It was perfectly connected at 20179 (20 seconds after loading), but then for some strange reason you closed it down almost immediately (23744, less than 4 seconds later), before anything but its own protocol data checks had been exchanged. Why bother to load it if you aren't using it? After loading WideClient try running your application program. Regards, Pete
  11. Oh, I see. Even when you change aircraft not simply re-select the same one? There's also an FS control "reload user aircraft" or something like that. Doesn't that reload the textures either? No. But if you want to see what it is loading and unloading during startup you can see that, live, using "DebugView" from http://www.systeminternals.com. That utility will also show FSUIPC's logging, live, if you add "Debug=Please" to the [General] section of FSUIPC.INI, but you shouldn't do this normally as it invokes extra code in FSUIPC and therefore can impair performance (though this may not be measurable). BTW, I get a difference similar to your 48 seconds and 10 seconds, but not with FSUIPC installed or not. The first load takes about 40 seconds or so but all subsequent ones on the same PC takes 10 or less. This is with a 1 Gbyte memory. I don't have any PCs left with only 512Mb -- that was fine for FS2002 but I think WinXP + FS2004 really do need more. The "sweet spot" is more like 768Mb now, more with more things running. I'm still wondering if the difference on your system between FSUIPC installed or not is that -- the memory is spilling into virtual memory (and therefore swap disk space). There are ways to speed up virtual memory, like having fixed and equal top and bottom limits and making sure the disk is defragmented before Windows creates the resulting file, and so on. But in the end it is really best to avoid the need to swap out to disk. I suppose the memory chip prices have risen again now, but I took adbantage of the plummet inprices not long ago to upgrade all my PCs to 1 Gb minimum. You could try using something like EndItAll to kill all other unnecessary processes off before loading FS. If this helps then it is definitely lookingl ike memory. Regards, Pete
  12. Hmmm, don't remember off-hand (this part is about 5 years old now), but I think it is pretty linear. Pete
  13. No, sorry. All of its parameters are in the FSUIPC.INI file. Just delete that if you want it to start afresh. BTW I am sorry, I realy don't know what you've got going there, but I am a little astonished at how desperate you sound about it. How often are you starting FS each day? If you were loading it and closing it continuously it would make sense, is this what you are doing? Regards, Pete
  14. Oh, good -- I shall annotate them appropriately in the documentation! Thanks, Pete
  15. If the number you are talking about is subject to an upper limit, then yes. There are lower limit facilities as well -- I do hope that it is clear which are upper and which lower? The METAR vis extension facility makes some visibilies larger though -- in the U.S. many automated vis measuring devices report "10 SM" for anything measuring 10 miles upwards, and similarly in Europe for 9999 (metres -- roughly 6.2 miles). So the "extend METAR vis" option makes a random extension between that amount (10 SM or 9999 metres) and whatever upper limit applies. Regards, Pete
  16. I don't think it is possible to add AI planes at run time, they need to be precompiled into traffic BGLs. and then they pretty much follow pre-defined paths and timings. However, by all means get the Traffic SDK from the Microsoft website and have a look. A better bet would be to use Multiplayer and inject your additional aircraft that way. You'd need to keep control of it through the MP interface too. Regards, Pete
  17. Not at present. How would I get such information? I don't really know anything about BGLs, textures, scenery in general. Sorry. Does that still work in FS2004? I've not had it verified. It was something found by accident in FS2002, no searching was done. Things are so different in FS2004 I wouldn't know where to start looking I'm afraid. That would be nice, for radar, but I've really no idea how to even start. Very sorry. I've never really known much at all about FS's scenery interaction. Regards, Pete
  18. Not sure about how you draw a profile, but the localiser and glideslope deviations available in FSUIPC offsets 0C48 and 0C49 are accurate, but in arbitrary units. If you want degrees you'd need to work out some calibration. Best way to do that is use the FSUIPC Monitoring facility (Logging page, right-hand side) to display the values live on screen and note down the exact numbers for each position. Regards, Pete
  19. That is all handled by the PM group, not by me. As with SimMarket I only see summary statements once a month or so. If you have any query please contact PM. Regards, Pete
  20. Those options in FSUIPC work at the lowest level, just on the visibility before it is implemented in FS, so they override anything else, no matter where the other stipulations come from. Since 7000 metres is a lot less than your limit of 50 nm, the METAR value should prevail. Yes, there's a layer, you can check in FS's weather dialogues or using WeatherSet or ATIS. Pete
  21. Yes. The original paragraph, above, from which you took it did say so, viz: excepting, of course, the original didn't have the word emboldened. :wink: Regards, Pete
  22. I've now found what I think are Aircraft-related wind values: AIRCRAFT_WIND_X AIRCRAFT_WIND_Y AIRCRAFT_WIND_Z I'll check some more, but if these X and Z coordinates are related to the aircraft orientation, as I think they are, then writing to these may be a better bet than using the "wind at aircraft location" values. They are double floats and also in metres per sec. If they look like they might be useful I'll map them and let you know the offset details -- possibly I could sustain all these once written, releasing them back to FS control after you write 0.0 perhaps. Regards, Pete
  23. Neither. Are you looking in the wrong columns? 50 = P 65 = e 74 = t 65 = e which spells Pete. I've been in computers using ASCII (well, EBCDIC originally) since 1963. The alphabet and numerics I know by heart! :wink: Regards Pete
  24. There's no such thing really. There are application keys, which are in the name and details of the program, and user keys, which provide unrestricted access to all the facilities in FSUIPC as well as all access by applications. This is why most all developer's use a user registered version of FSUIPC whilst developing -- this helps offset the work involved in developing and maintaining the SDK, and in providing unlimited support. Most all the facilities in the SDK have been added directly as a result of developer requests. Sorry, I don't know VB sufficiently to help with the specific question -- it looks very odd to me! I hope other VB rogrammers can help. Regards, Pete
  25. Sorry, I don't really know CPFlight apart from the fact that they make a nice MCP and have accreditation for FSUIPC access. Don't they have any support? Have you tried? What do you mean? There is only ever one FSUIPC! According to my records the company called CPFlight have a driver which interfaces to FSUIPC called FS_COM. I assume you would need that to make whatever it is you have work. I have nothing else listed for CPFlight. I think the driver is for their MCP, but possibly they do other things too? Regards, Pete
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.