peterk54
-
Posts
39 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Downloads
Posts posted by peterk54
-
-
Dear Paul
It is a great pleasure to work with your DLL. Even I had to start in VB .Net (after 26 years of VB6 ...
We have some scenery details (i.e. sightseeing towers) which are located obviously the same place as our own generic obstacles.
We need to create many Exclusion Rectangles.
FsLatLonCircle is almost the solution. Obviously you are quite strong in this field. Our wish:
FsLatLonExcludePoly
Constructs a new FsLatLonExcludePoly from a central FSLatLonPoint and a Radius in meters / feet with 4 points on the circle, forming a polygon pointing to North.To create then the XML file in P3D SDK 5 format i.e.
<ExclusionRectangle
latitudeMinimum = "N47.0"
latitudeMaximum = "N48.0"
longitudeMinimum = "W123.0"
longitudeMaximum = "W122.0"
/>
should be rather simple than.
According the many posts in forums covering exclusion rectangles many users have problems to create.May be you can have a look into.
Best regards
Peter -
Dear John
Thank you for advise. I assume you are very busy with more important topics for the community. I try myself to fix.Yes, we copied the FSX XML gauges including our models. The autopilot panel is a set of various switches (change switch picture, send command i.e. AP APP HOLD ...) and displays. No real logic behind. It uses the FSX / P3D internal autopilot which was fine until now. The moesl we use our ones as they are very simple and do not use a lot of resources. We fly real cockpit sections and never look from outside to the aircraft. Just used as externeal view without panel.
On another sim (setup with P3D v4) we could not sort out why the FSX model used does not retract the front gear and why wheel-brakes do not work anymore. Parking brake does.
However we are thankfull that P3D exists and FSUIPC WideFS do a wonderfull job !
Take care, stay healthy
Peter -
P3D v5.1.8.26742
FSUIPC v6 latest version
Several hardware unchanged
Windwos 10 Prof, updated to latest updates available
Aircraft: FSX 747-400, original panel
Our software: VB6 external programm connected thru FSUIPC or WideFSSince approx 2 weeks (we assume it was updating to this latest version of P3D) we have the problem that APP mode when engaged thru our software and FSUIPC does only capture VORLOC and not anymore the GS. However when we engaged thru mouse click on the panel button APP it works fine. The values of the variables are write and read correctly by FSUIPC
We run FSX, P3d v1, v2, v3, v4, v5 without any issues.
Does anyone have such issues found ?
Best regards
Peter -
@Ing Nieto
I think you have to use: / Creo que tienes que usar:Offset &H07CC, 2 Bytes, Autopilot heading value, as degrees *65536/360
Offset &H07CC, 2 bytes, valor de rumbo del piloto automático, como grados * 65536/360It is not heading TRUE or MAGNETIC / No se dirige a VERDADERO o MAGNÉTICO
Hope this helps / Espero que esto ayude
Peter / Pedro
-
Dear Thomas
Thank you for the feedback, I appreciate.
I was saying - at least I wanted to say and state - that an error is on our side, I was not giving any fault to FSUIPC.
Yes, I'm looking in offset 3308, I have to check what I messed up because backups of software shows P3d v4.5.
I will search there. Still I have also to find out why my writings are broken.
Best regards, thanks for help
Peter -
Good evening
I do since many years VB6 programming thru FSUIPC. No issues and running alltime smooth.
Since yesterday I get back just FS version 12, rather then before correctly up to 45.Over network thru WideFS or local, the same.
We still get correct data from P3D but it seems values can not be written anymore.My system:
- Prepar3D v4 SDK 4.5.12.30293
- Windows 10 Pro, Build 18362.19h1_release.19318-1202, Default language German, Swiss keyboard
- Lenovo X1 Extreme, all updates done, latest BIOS installed, with nVidia 1050
- FSUIPC5, Version 5.153 (12th December 2019)
- WideClient v6.9.9.930, product version 6.999z4
updated to:
- WideClient v7.1.5.6, product version 7.156
I reinstalled yet FSUIPC and P3D client and SDK. No change.
We did not changed our VB6 code. The VB6-module file we use is dated 2 years ago.Any ideas where to search to find how I messed up ?
Anyway we wish to everybody a nice X-mas tiem and a happy new year !
Best regards
Peter -
2 hours ago, peterk54 said:
Question to you: does WideServer know who sent (=IP address) broadcast messages ?
Sorry, WideClients was meant.
2 hours ago, Pete Dowson said:TCP and the identication parmeters in WideClient
OK, got it.
We will give the two Subnets a try as we want to remove our issues.
Peter
-
Hello Pete
We configured according above advise from you, thank you for this support.At the same time we are considering the following:
Both our sims are in the same SubNet. Going thru UDP specs we found:
"... The broadcast address for a LAN is either the highest address in the local subnetwork or the universal broadcast address: 255.255.255.255. ..."
To our understanding broadcast messages have no source identifier who sent the message.
Are both FSUIPC's sending to same broadcast adress ?
If so we shall divide up into two subnets each with one router, soubnet-mask would than be 255.255.0.0 rather 255.255.255.0.
Question to you: does WideServer know who sent (=IP address) broadcast messages ?
With best regards
Peter -
Hello Pete
Thanks for fast response.
Swiss German as mother-language is slightly different from English ...
Server = FS station with FSUIPC.INI, Section [WideServer], ProtocolPreferred=TCP
Clients = My stations with WideClient.INI, Section [Config], ServerName=B737-222-FS, Protocol=TCPThats it ? Anyway I will restudy the paper, sorry
Peter -
Dear Pete
See attached WideCLient.ini files from 2 different stations. We checked the others stations, I believe all are the same:
[Config]
ProtocolPreferred=UDP
BroadCastMode=Yes
//ServerName=B737-222-FS
ServerIPAddr=192.168.0.150To my opinion they are according the document we have read
Best regardsPeter
-
Dear Pete
These are attached the logfiles from the B737-222-FS Server (FSUIPC running) and of one WideClient running.
I saw nothing bad, except that WideClients try to connect with the "B737-222-FS" server rather than 192.169.x.x.
When I start all clients with WideClient, and only than P3D v4, they connect.
With best regards
PeterB737-222-FS 20180115 FSUIPC5_prev.log
-
Hello Pete
WideClients are all running on different PC's. 1 FSServer + 7 WideClients for one sim, 1 FSServer + 6 WideClients for another sim.Thanks for the lead. I will write protocolls and have a look myself first.
We get all data and very fast. So once all connected everything is perfect.
I'll come back to you,
Peter -
Dear Pete
Happy X-Mas and New Year ! I know you are away from the computer until 7th January. No hurry on this matter please.
We tried Protocol=UDP and IP-Adress ratherTCP and server-names. No changes of the symptoms.
Each simulator starts and runs perfectly, if the other is not running.But: the first of the sims starts perfectly. We start the second: on the second sims client computer we need to stop the WideClient run by Windows Autostart and manuall restart with the desktop icon. Then they runs as well.
We checked Administrator rights, programm run by administartor, Windwos compatibilty and such stuff.
No idea anymore were to search.
Best regards
Peter -
Dear Pete
Thanks for your fast reaction and advise as ever !
I will check carefully all our settings and introduce IP adresses rather names.Yes, they should be defined to each sim.
Yes, we mean WideClients.
Cool, I do not need to check SimConnect.As many of our hardware is running over TCP/IP with have quite some mebers in the network.
We will advise results in the next days.
Best regards
Peter -
Hello
I have 2 simulators running in one network. One P3D v3, the other P3D v4. Both SDK's installed. Each latest versions.
Each simulator uses the Server and some PC's as client to show (non P3D) instruments and performing aircarft system task.
Data sent thru FSUIPC and WideCLients, each newest versions.Each sim does run by itself in an excellent way. Each sim-system is setup that after WideClients is connected, our programms start automatically.
No issues to connect with other appllications i.e. Sim Commander.Issues starts when both sims run together. FIrst starts with no issues. The second one however we need to stop and restart the Wideclients before they connect. Once done, everything seems to be perfect.
- Do we need to configure SimConnect on the servers and the respective clients manually ?
- FSUIPC is configured with the servers name, not the IP ? Do we need to change ?
- All computers using WideClients on the same IP ports. Do we need to change ?
- Any comments where we shall start to search ?
Thanks and greetings from Switzerland
Peter -
Dear hkhoanguyen
We use VB6. You may adopt to .NET our proposal.
You can use the Windows API FindWindow and search for class "FS98MAIN".
Take the hadle received to read with Windows API GetWindowText.The P3D windows does change from "Lockheed Martin® Prepar3D® v3 with WideServer: waiting for clients" to
"Lockheed Martin® Prepar3D® v3 with WideServer: 1 connected" where 1 shows total clients connected.
when this is up, P3D and FSUIPC do run properly.During flying check offset &H3F02, 2, VarPtr(FS_FLTSTN_RELOAD) against a variable xxx_OLD if it does increase.
If it does, wait until reloaded with offset &H3365, 1, VarPtr(FS_MENUDIALOG_FLAG). Wait until not anymore 1 but 0.
Reload all new data required into your application.Hope this assists. Regards
Peter -
Dear Volker
You know my respect for your work ! Just a very small unconvenience:
1. Prepar3D 3.4.22.19868 / 4.1.7.22841
2. FSUIPC* 4.966c/ 5.103 and WideFS 6.999c
3. I use the FSC in a network! Yes
4. FS Commander 9.6 v9 01-July-2017 and Database Manager 9.6 v9 Build 7-July-2017
5. Navigraph AIRAC Cycle 1501 Rev 1 Jan08-Feb04/15
6. Simmarket download version
7. Operating System Windows 7 -32/-64 Professional
8. How many monitors are used = 1When flight plan is opened the menu item "Show Plan" under "Flight-Plan" should be marked ON.
Now to remove two mouse-clicks are required.Thanks & best regards
Peter -
Guten Abend Volker
1. Prepar3D 3.4.22.19868 / 4.1.7.22841
2. FSUIPC* 4.966c/ 5.103 and WideFS 6.999c
3. I use the FSC in a network! Yes
4. FS Commander 9.6 v9 01-July-2017 and Database Manager 9.6 v9 Build 7-July-2017
5. Navigraph AIRAC Cycle 1501 Rev 1 Jan08-Feb04/15
6. Simmarket download version
7. Operating System Windows 7 -32/-64 Professional
8. How many monitors are used = 1Die Angabe Total Fuel welche FSUIPC - oder sogar SimConnect - zur Verfügung stellt ist falsch. Um welchen Betrag ist mir unklar, scheint Prozentual zu sein.
Die korrekte Menge kann mittels Daten aus FSUIPC berechnet werden. Wir müssen das für unsere Programme auch so lösen.
Sende gerne den Quellcode in VB6 zu.Herzliche Grüsse
Peter -
Good afternoon Volker
As ever fast reply !
OK, I accept your system and will read the manual.
We mostly do "dirty" flight plans not using SID / STAR nor Transitions. And we fly VOR to VOR or Intersec.Best regards
Peter -
Dear Volker, Dear janar737
I respond as I found similar issue using FSC flightplans. This is a part of the plan created in FSC 9.6 rev 7:
VHHH ... BARUG LNZ SBG KPT ... LSZH
At creation everything is fine. But if OK button in the Flight Plan window is pushed or the plan is reopened, SBG is not anymore close to Salzburg.
Now it is Strathbogie, Australie.We assume this error:
The flightplan at reloading does take the first entry in the database rather to check with the correct coordinates found saved in the "pln" file.
we tried several NDB's, VOR with same name and had alltime the same error.We use FSX or P3D v3.4, Win7-32, local or FSUIPC 4.966c with Wideclient 6.999z4, FSC Database Manger 9.6 rev 7 NET.
We may found a solution ?
Best regards, Peter -
Dear sxa1376
Great ! Such things happened to me as well !
Let me know if you have other questions.Best regards
Peter -
To sx1376
Pete is correct, you should receive 7 tanks from offset 1400 to 1520. I write exactly to these offsets: Upper Deck, Section A to E. Payload in 1550 and 1580.
A) Wrong offsets increase
1400 to 1430 ar steps of 30 (in hex) , 48 (in dec). You mixed up ?B) Wrong definitions
Check read 4 bytes at offset 13FC. Do you get equal or more of your total PAX sections and payload ? Check your aircraft.cfg. Only one line of "max_number_of_stations=n" ?
Sample:
max_number_of_stations=9
station_name.0
...
station_name.8
station_load.0
...
station_load.8C) No more ideas, wait your feedback !
Best regards
Peter
-
Dear sxa1376
We agree with Pete. We programm in VB6. However it is the same in C++.
We assume you have FSUIPC4 Offsets Status.pdf open to your hands.Fuel
You need to change the Percentage-Level of the tanks, start with offset
&H0B74, 4 bits, Fuel: centre tank level, % * 128 * 65536.
100% = 8'388'607 (= 128 * 65536), equals at 50% to 4'194'303 to be written into the 4 bitsPayload
It depends of your aircraft.cfg file.
Start to research on offsett &H1400. Each Station has 48 Bites.
Write the weight in lbs into &H1400 + 0 = &H1400, a double of 8 bits.
Next station:
&H1400 + 48 bits equals to &H1400 + &H30 = &H1430.
Write the weight in lbs into &H1430 + 0 = &H1430, a double of 8 bits.
And so on until you have all stations set.By the way you can put as much you want and make your Cessna 172 1'000'000 pounds heavy.
Best regards from Switzerland
Peter -
13 hours ago, Pete Dowson said:
They are having a few problems. ...... I think I should withdraw FSUIPC5 altogether.
Pete
Dear Pete
There are enough happy user around, please be assured.
You do a great job and overall it's very appreciate. Take my thanks in place for many other users !Best regards,
Peter
FsLatLonExcludePoly
in FSUIPC Client DLL for .NET
Posted
Dear Paul
Thanks, great.
I will check, allow some days. I need to fix hardware ...
I will report
Rgds, Peter