peterk54
-
Posts
39 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Downloads
Posts posted by peterk54
-
-
Dear Pete
Suffix & (&H0000 or &H0000&)
We will investigate.
We never used the suffix &.
Seems that VB3 and earlier handled small vaulues not as long to economise on memory.
VB6 should not make any difference.
Structure or single variables
So to set the airport / ICAO just need to send the string, not entire NewWeather structure
Signature and timestamp
Until now no risk other programm disturbs.
So we just disregard and do not read/set at this time.
I'm just reading again thru documents ...
Target
1. Get weather / METAR of DEP airport and ARR airport of the flight
2. If we succeed set weather global for the flight / actual moment
Thanks Pete ! :razz:
Peter
-
Dear Peter
I'm really sorry to come back on this NWI - METAR Interface.
There are several topics on this and most end by no real success, especially in VB6.
I know VB6 is not used much anymore, unfortunattely I can't change.
As we can read/write everything else with FSUIPC as documented except the weather NWI at &HB000 / &HC000 and the "Detecting runways in use" at &HD000, our non-understanding must be caused by principal techniques doing wrong rather the VB6 programming itself.
Further please do not forget for us English is not the mother language. We Swiss have to translate from Swiss German (our dialect, in this I think) to German, than from German to English, and back. So sometimes translating may be an issue as well.
1. observation :???:
We can not get any data back from FSX in &HB000 / &HC000 blocks either by Byte-array's, strings or other variables.
We can see the data in FSInterrogate2std.
2. observation :oops:
We can not write any data into in &HB000 / &HC000 blocks. We can't see the data changing in FSInterrogate2std.
Confused :evil:
Confusing is i.e. once it is stated write complete structure only, else write "GLOB" or "NW_CLEAR" in some location.
What is correct ?
Further we are not clear with the signature (can I set one number and use it for ever ...?) and time-stamp (just wait 2 seconds until next read not ok ?)
VB6 translation :idea:
We setup the structures translated into VB6 and are almost sure to be correct.
Strings must be converted from Byte-arrays charakter by charakter with ASC(xx)
Conversion unsigned etc. solved in VB6
Please / Steps :razz:
Please explain steps by steps simple, i.e.
-------
Start
-------
Write "NW_CLEAR" into &Hxxx, 4 bytes
Write "GLOB" into &Hxxx, 4 bytes
Process write
Read "Whatever" from &Hxxxx, 8 bytes
-------
Wait 2 seconds or read "timestamp" until changed
-------
next step
-------
and so on.
Sorry Pete, normally I'm thought not to be so complicated und more clever ...
You still are in holidays, do not hurry !
Best regards
Peter
-
- FSX
- Yes studied the SDK and documents
So the procedure is:
- Declared NW_CLEAR and NW_GLOBAL as other similar constants in VB6
- Write or WriteS (?) the string "GLOB" to &HC808, 8,
- Write the command parameter NW_GLOBAL=3 &HC800, 8
- Call FSUIPC_Process
- Then Write or WriteS (?) the string "xxx" containing the METAR string to &HB000 (I take sample METAR string from one I found in the forum told "working")
- Call FSUIPC_Process
- No really required, just to see if changes take place: Wait until FSUIPC has got new data then read &HB000 a string to verify
- Call FSUIPC_Process
I try later again.
-
Hello Pete
Sorry, can not get working the weather interface. I'm sure that basically my VB6 code is correct as well the variables or variable arrays.
Just confused how the process really is, need towrite what there ? Need to read something where ???
What I want to do is globally change weather with a metar string. With this we can fly alltime in weather conditions we wanted ?
Everything else works so nicelly !
Peter
www.airforcecenter.ch, select English and see under simulators ...
-
Pete
Yes, can confirm: if I write into &H1400 + (offset &H30 per payload station) the weights, the CG in &H2EF8 changes. On my aircraft depending on 4 freight stations from 15 to 31% as described in the offset list. The fuel qty does not so influence the CG as they are quite close arranged around the CG.
The last part:
Should move it to the other thread:
http://forum.simflight.com/topic/78022-reading-metar-in-fsx/?hl=metar
I can not get the weather working ...
Sorry for confusion
Peter
-
Dear Pete
When you write during a flight into the aircraft.cfg and you relaod the aircraft payload should be updated with new values in &H13FC + &H1400 etc.
Anyway it does update weigths when you write values into the stations buffer. For me works perfectly, but I use only one aircraft.
I use buffers in VB6 to put the values from FSUIPC. Then just handle the aircraft.cfg as an INI file to write down.
I can't get work weather and sounds ..., see my separate post "METAR"
Peter
-
Dear Lukas
All NavData you can get for your own use from Navigraph for not so much money (FMS Data, single download).
The version vor SIm-Avionics is in a handy selfexplaining access MDB, you can simply readuot with DAO, ADO in VB.NET or with MS Access.
You can put together easy with SQL statements result from makerwy with ILS and Freq.
Peter
-
Dear Pete
Dear All
I'm really sorry to just overfly after some messages the topic.
I was a publisher for FS as well. We stopped because of these discussions. And so far, I do not know anybody becoming really rich selling FS-addons.
Pete, your piece of software does allow thousands of simmers to have even more fun then with the low priced basic programm.
Congratulations ! Stop arguing, the never will understand your points, and please don't stop because of such threads...
Where the hell went any manners and respect these days ?
Why it is smart today to try pay nothing for somebody else's labour ?
And what is so trendy by hitting some keystrokes from far away and shit on somebody ? Appreciation of others and others efforts ...
I'm wondering that not a selfie is attached ...
20 CD for a hobby, come on, please !
Best regards
Peter
-
You could try Paul Henty, in the SubForum above dealing with his .Net interface. I know he is very good with .Net VB. I don't know if VB6 is much different.
Pete
Hello Pete
Trying to use VB6 :razz: for my applications.
&H13FC, &H1400 Payload section
The Payload section does run as described. I can change the Weights and names off stations. FSX does adopt all relevant weights accordingly.
I have not verified yet other International configurations then my mixed US / metric. Kilogramms with conversion to/from lbs works fine.
NWI
Need to develop, see below reply to Joe.
Anyway, Thanks for your tremendous piece of work !
Best regards
Peter Kruesi
-
Hi,
I'm trying to read METAR at offset B800 through a VB application and using the usual way I use to read strings (in the attachment), but in this case I get only an empty string.
Do you have suggestions respect what I am doing wrong helping me to solve the problem?
Thanks in advance
Joe
Hello Joe
I'm trying to do the same as you, in old fashioned VB6 ...
Had you success ?
Sofar I understand several steps are required:
1. Translate NewWeather.h into VB6 declarations
2. Write ICAO or special codes GLOB ,????, <??> to &HB808.
As VarPtr put the Variable defined Dim TmpString as string * 2000
3. Write same with same FSUIPC_Process a command into &HB800
Not sure yet what is for READ only
4. You get the a METAR String back
Theory so far.
Regards
Peter Kruesi
-
Dear Pete
We switched off all addon-sceneries and moved away all ai-traffic.
In the dll.xml we load anly FSUIPC4.DLL:
Crash @ Laoding approx 86% in Terrain.dll
In the dll.xml we do not load FSUIPC4.DLL:
Crash @ Laoding approx 86% in Terrain.dll
We did changed nothing before troubles, only installed FSUIPV4 v4.90 over 4.86.
We are more than confused ...
With best regards
Peter
-
Dear Pete
We could not find yet the cause that FSX does not run anymore. Installe v4.86, either listed in DLL.xml or not, FSX does not load anymore. The certificate ssems to be OK. Kaspersky tells it's OK.
FSUIPC was always running without issues ?!
Peter
-
Dear Pete
Dear All
I'm using Win7, 32-bit, FSX SP2 Accel since many years.
I noticed the required new download and performed it yesterday.
Since then FSX does not run anymore. It loads - sometimes misses message "Finishing Setup ..." before "Rebuild scenery database...". Then it seems to load DLL's and stops. Either with or without FSUIPC activated.
Tried to go back to v4.89 but no success at all.
FSX does not run anymore.
Any help appreciated
Best regards
Peter
FSX - New Weather Interface for VB6
in FSUIPC Support Pete Dowson Modules
Posted
Dear Pete & Paul :razz: :idea:
With your help I could find 2 errors in my definitions (shame on my :oops: ) and write the code as described by Paul.
I get the METAR strings out now !!!
I can send GLOB as ICAO and get the global weather back.
Now I go further
Many thanks and best regards
Peter