Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Alright, first off let me say that I'm no expert in C++, and I may very well be making a huge beginner's mistake, so bear with me.

I'm building an application (for personal use for now, but I'm thinking about freewaring it in the future) which will report to a specified email address (eg. my cell phone's email address) at specific intervals the status of a long haul flight that I've left running in Flight Simulator. In preparation for a possible freeware release I want to be able to retrieve a variety of different values, such as groundspeed, airspeed, altitude, distance to next waypoint, etc. I'm using FSUIPC to retrieve the values.

Now here's the rub. I can retrieve altitude and airspeed fine. The rest of the values I want to retrieve, however, all come up zero when I know they shouldn't be. The value I'm working on at the moment is the distance to next waypoint. I'm using the following code to retrieve the distance value:

if(!FSUIPC_Read(0x6040,sizeof(double),&distance,&FSUIPCError))
		MessageBox(hWnd,"Error: " + FSUIPCError,"Error",0);

This is the same procedure that I'm using to get my altitude, airspeed, and all other variables I'm looking for that currently return 0, using the appropriate variable sizes (int, short, etc).

I looked through the FSUIPC logs contained in /modules and found that FSUIPC was, in fact, returning 0 as distance, as well as my other problematic values, ruling out a programming error (for the most part anyway... ?).

FSUIPC Version 3.1 - Unregistered (Would this be a problem??)

FS2004

I think I've described the problem to the best of my ability but if you need more information just hollar. I also fear I'm making a foolish beginner's mistake so be gentle ;). Sorry if this has been posted & remedied before.

Thanks for a great utility Pete!

~lurk

Posted

FSUIPC Version 3.1 - Unregistered (Would this be a problem??)

Three problems there:

1. Version 3.1 is not supported. It is very old -- 2 years old next month in fact. Please see the Announcements at the top of this page.

2. The data at 6xxx was not even added till after that version.

3. You will not get reliable access to FSUIPc unless you register FSUIPC as a user (i.e. purchase it).

Regards,

Pete

Posted

Makes sense :lol: Guess I did make a beginner's mistake.

Looks like Im updating then.

You said, though, that I won't get "reliable" access to FSUIPC unless I register it... does this mean that even if I attain a freeware key for the software from you that a user, myself or otherwise, would also have unreliable access to FSUIPC if the DLL is unregistered?

Anyway, thanks for the fast reply Pete, and thanks again for a remarkably useful piece of software!

Regards

~lurk

Posted

You said, though, that I won't get "reliable" access to FSUIPC unless I register it... does this mean that even if I attain a freeware key for the software from you that a user, myself or otherwise, would also have unreliable access to FSUIPC if the DLL is unregistered?

[\quote]

No, you can access it well with a freeware application key. But normally the program doesn't exist till it is developed and that is where developers normally need a user key. So far all developers have found it worthwhile to register FSUIPC in any case, and I would really expect that in return for the technical programming support I provide. But it isn't strictly necessary -- except for VB programmers who want to debug as the VB debugger won't gain access with an application key!

Regards,

Pete

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.