Jump to content
The simFlight Network Forums
Ray Proudfoot

GoFlight program denied access to FSUIPC5 - why?

Recommended Posts

Hi chaps. Frustrating problem trying to get GoFlight Interface Tool (GIT) to read an offset in FSUIPC5 for the status of the exits so when I flick a switch to open an exit the LED for the T8 comes on. It’s the only way of getting the led to work apparently.

The GIT log records all actions but it’s this one that has me beat...

14:20:49 FSUIPC: Connection Failed: No connection could be made because the target machine actively refused it. 127.0.0.1:8385

I’ve disabled the firewall but still no joy. All this is one the same PC. There was no entry for GIT in the list of approved programs in the firewall so I added it with private access. Still no joy. One program is trying to read another all on the same machine but the firewall is blocking access. Any ideas how to fix it?

Share this post


Link to post
Share on other sites

An update. That IP address relates to 'local host'. I've now changed it to the IP address of the PC. But access still fails because of a port number in FSUIPC5 not being accessible. Is 8385 the correct one?

Share this post


Link to post
Share on other sites

Hi Ray. It won't be the firewall - this doesn't come into play when you are running programs on the same machine (with a local ip address). I don't know GIT - what is it using to talk to FSUIPC?

Pete may know more, but you should probably try GIT forums or support.

Share this post


Link to post
Share on other sites

Hi John,

GIT is to allow communication between GoFlight hardware and P3D but also accessing FSUIPC. I have narrowed the problem down to a port number that is trying to be accessed but being denied. I am talking to the GIT author but wondered if you had any ideas about this error in the fsuipc log:-

50703 LUA.1: beginning "D:\P3Dv4\Modules\gitlua.lua"
    50703 *** LUA Error: D:\P3Dv4\Modules\gitlua.lua:5: module 'socket' not found:
    no field package.preload['socket']socket
    no file 'D:\P3Dv4\modules\socket.lua'
    no file 'D:\P3Dv4\modules\socket\init.lua'
    no file 'D:\P3Dv4\modules\lua\socket.lua'
    no file 'D:\P3Dv4\modules\lua\socket\init.lua'
    no file 'C:\Program Files (x86)\Lua\5.1\lua\socket.luac'
    no file 'D:\P3Dv4\modules\lua\socket.dll'
    no file 'D:\P3Dv4\modules\lua\loadall.dll'

It can't find the socket. Any suggestions?

Share this post


Link to post
Share on other sites
40 minutes ago, Ray Proudfoot said:

But access still fails because of a port number in FSUIPC5 not being accessible. Is 8385 the correct one?

FSUIPC only uses sockets for WideServer links to WideClient.

I see John has pointed you to a Lua sockets solution, originally posted by another user, to solve the absence of a 64 bit sockets module. The socket number to be used will be set in the Lua plug-in you will presumably need to use.

Seems very strange to me that a GoFlight module needs IP sockets to get information.

Pete

 

 

Share this post


Link to post
Share on other sites

Thanks John and Pete. The reason for the access into FSUIPC is to read 3367 for the status of exits. Apparently SimConnect reads them once and not again so they’re not available via the usual means in GIT. Hence the access to FSUIPC5.

I’ll install the pack tomorrow and hopefully it will fix the problem. Thanks!

Share this post


Link to post
Share on other sites
1 hour ago, Ray Proudfoot said:

Apparently SimConnect reads them once and not again so they’re not available via the usual means in GIT. Hence the access to FSUIPC5.

That can't be correct, as FSUIPC uses only SimConnect for those, as for almost everything else!

{    0x3367, 1, 0, F32V, DOORS, WR | WROK | BITS, szPc, "EXIT OPEN:0" },
{    0x3367, 0, 1, F32V, DOORS, WR | WROK | BITS, szPc, "EXIT OPEN:1" },
{    0x3367, 0, 2, F32V, DOORS, WR | WROK | BITS, szPc, "EXIT OPEN:2" },
{    0x3367, 0, 3, F32V, DOORS, WR | WROK | BITS, szPc, "EXIT OPEN:3" },
{    0x3367, 0, 4, F32V, DOORS, WR | WROK | BITS, szPc, "EXIT OPEN:4" },
{    0x3367, 0, 5, F32V, DOORS, WR | WROK | BITS, szPc, "EXIT OPEN:5" },
{    0x3367, 0, 6, F32V, DOORS, WR | WROK | BITS, szPc, "EXIT OPEN:6" },
{    0x3367, 0, 7, F32V, DOORS, WR | WROK | BITS, szPc, "EXIT OPEN:7" },


Note that FSUIPC reads the door states as 32-bit floats. those give the % of opening. It changes the bits in 3367 based on this value.

It sounds to me more like an error in their Simconnect access code.

And why does he use IP sockets to interface, which needs a Lua plug-in? Wouldn't it have been a lot simpler for them to use the published FSUIPC interface?

Pete

 

 

Share this post


Link to post
Share on other sites

Then best to just pass on the information i specifically supplied above back to him! The name of the SimConnet variable to register in Simconnect is the string "..." at the end of each of the 8 lines. I read it as a %

Pete

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • 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.