Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi everyone,

First of all congratulations on the proper release of FSUIPC7 and I want to express my gratitude for this quick release. Without it, this community would never be what it is now. I usually crawl the forum to stay up to date with the latest developments, but this time I really need some help.
For years now me and my father have been working on a 737 cockpit. My proud father does all the mechanical stuff and I am usually the one that does all the coding.

For a very long time we have been using FSBUS, which simply utilizes FSUIPC to read and write to offsets. All of that was always going for well in FSX since we used the iFly 737 and a 3rd party developer had created a wonderful application called iFly2Fsuipc which exposed all the iFly IPC reads and writes to offsets.

So now in a time where the 737 went missing in MSFS2020, we decided to develop a nice and small FCU to be used at his desk. FSBUS has been sufficient until we wanted to utilize some functions that we can't seem to find the offsets for.

The first solution we have tried was to use keyboard assignments. But for whatever reason (and this might be a bug) it keeps on sending the wrong parameters.
I set NUM0 to SPEED_SLOT_INDEX_SET with param 1. and NUM1 to param 2. While being focussed on the FSUIPC screen (the one with the menu) and hitting the keys they actually do send param 1 and param 2 and everything functions as expected. But whenever I focus on the MSFS2020 window they suddenly start sending Param 2 at all times, on both keys. Have spent several hours trying to figure it out, but sadly enough I was unable to resolve the issue.

Now my question is: what is the easiest way to expose IPC reads and writes to Offsets? All I want is to be able to read/write param 1 and 2 to SPEED_SLOT_INDEX_SET. I am not familiar with LUA but after doing some research I saw that SimConnect does not expose it's LVar's yet, meaning I am unable to use LUA for this matter (correct me if I am wrong please).

Some help or pointing me in the right direction would be much appreciated.

Kind Regards,

Joey

Posted
24 minutes ago, JoeyKhd said:

The first solution we have tried was to use keyboard assignments. But for whatever reason (and this might be a bug) it keeps on sending the wrong parameters.
I set NUM0 to SPEED_SLOT_INDEX_SET with param 1. and NUM1 to param 2. While being focussed on the FSUIPC screen (the one with the menu) and hitting the keys they actually do send param 1 and param 2 and everything functions as expected. But whenever I focus on the MSFS2020 window they suddenly start sending Param 2 at all times, on both keys. Have spent several hours trying to figure it out, but sadly enough I was unable to resolve the issue.

What version of FSUIPC7 are you using? The use of the numpad keys was corrected with the release of the MSFS SDK 0.8.00 and updated in FSUIPC7 v7/0/2 release on the 28th November. If not using that version, please download and try with that.

26 minutes ago, JoeyKhd said:

Now my question is: what is the easiest way to expose IPC reads and writes to Offsets? All I want is to be able to read/write param 1 and 2 to SPEED_SLOT_INDEX_SET. I am not familiar with LUA but after doing some research I saw that SimConnect does not expose it's LVar's yet, meaning I am unable to use LUA for this matter (correct me if I am wrong please).

I'm not sure I understand this question. Yes, there is no access to lvars at the moment, but SPEED_SLOT_INDEX_SET is an event/control, which you can send using lua via ips.control and provide the parameter needed.

John

Posted

John thank you for your fast response. 

Is there a possibility to read with ipc.control and pass it back to a non occupied offset?
I thought this was only possible with readLvar.

My goal visualized.

FSBUS -> READ/WRITE OFFSET <- IPC (SPEED_SLOT_INDEX_SET)

So basically all I want is to read out a value from an offset instead of an IPC. So I need to build a "bridge" communication that writes the IPC values to the offset. And writes back the offset value to the IPC.

Forgive me if I am not being clear enough.

Kind Regards,

Posted
2 minutes ago, JoeyKhd said:

Is there a possibility to read with ipc.control and pass it back to a non occupied offset?

Sorry, that doesn't make sense. ipc.control is for sending controls.

3 minutes ago, JoeyKhd said:

So basically all I want is to read out a value from an offset instead of an IPC

A read from an IPC (Inter-Process Control) is the same as reading from an offset...all the IPC means is that its in a different process.

5 minutes ago, JoeyKhd said:

So I need to build a "bridge" communication that writes the IPC values to the offset. And writes back the offset value to the IPC.

Sorry, I'm confused as to what you mean by IPC here. You just read and write values to an offset, it doesn't really matter where the read/write is coming from.

6 minutes ago, JoeyKhd said:

Forgive me if I am not being clear enough.

Well, I am still not clear on what you are saying or trying to do! A control/event is a command - it is sent to the sim. The offset area contains information (sim variables) received from the sim, and also a writeable area that updates these either directly or via using commands/events.

Did you download and try the latest version with you numpad key assignments?

John

 

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.