tjensen / fsuipc

Python client wrapper for FSUIPC
MIT License
15 stars 0 forks source link

Fs2004 pyuipc.FSUIPCException: FSUIPC error: 13 (IPC request contains bad data) #4

Closed Gupyzer0 closed 3 years ago

Gupyzer0 commented 3 years ago

While trying the example in the readme file i got: pyuipc.FSUIPCException: FSUIPC error: 13 (IPC request contains bad data)

Environment (please complete the following information):

tjensen commented 3 years ago

Hi @Gupyzer0. Thanks for your bug report.

I presume that "fs 9.1" refers to Microsoft Flight Simulator 2004 with the v9.1 update. Unfortunately, I do not have this software, so I am unable to reproduce the issue.

One thing I noticed is that you are using a 64-bit version of Python. Since FS2004 is 32-bit software, you might need to use a 32-bit version of Python in order to interface with the simulator using FSUIPC.

Can you try installing a 32-bit version of Python (e.g. https://www.python.org/ftp/python/3.9.2/python-3.9.2.exe) and retry running the example? Please report back whether this resolved the issue.

Thanks, Tim

Gupyzer0 commented 3 years ago

Success !

At first i downloaded the 32bit python as you said and tried, i got this error message.

pyuipc.FSUIPCException: FSUIPC error: 12 (IPC sendmessage failed all retries)

Which is different from what i was receiving before, so next i ran the console with admin privileges and it is working now! . I'm not running fs9 as an admin but guess i needed to execute the script as an admin. Of course i tried that before so yeah you were 100% right that i needed python 32bit which makes sense with fs9 being 32 too.

Thank you very much !.

tjensen commented 3 years ago

@Gupyzer0 I'm glad you were able to get it working! I'm going to leave this issue open as a reminder to myself to update the documentation about needing to run as an administrator.

Gupyzer0 commented 3 years ago

@Gupyzer0 I'm glad you were able to get it working! I'm going to leave this issue open as a reminder to myself to update the documentation about needing to run as an administrator.

Ok !, once again, thank you for your assistance.