chrilith / Passerelle

A Lua module to control your gaming devices.
MIT License
0 stars 1 forks source link

error in P3D #1

Open jackybek opened 7 years ago

jackybek commented 7 years ago

I received this error when trying to run my lua script in P3d.

158746 *** LUA Error: error loading module 'passerelle' from file 'D:\App\Lockheed Martin\Prepar3D v2\modules\lua\passerelle.dll': %1 is not a valid Win32 application.

in my lua file i have this at the begining of the file require("passerelle");

I also copy the following x86 version files to the respective directories: -- passerelle.dll goes into D:\App\Lockheed Martin\Prepar3D v2\Modules\lua -- lua5.1.dll goes into D:\App\Lockheed Martin\Prepar3D v2\Modules\dll

I am running win7 64 bit OS.

please advise

jackybek commented 7 years ago

I realize I am missing GD.DLL from the zip file. Where can I get it?

chrilith commented 7 years ago

Hi @jackybek,

Well, indeed, I'm not adding this file anymore. You can get it from the Lua for Windows distribution or downloading the old version from my old web site here.

I'm sorry but I must admit that I don't own P3D so I never tested it.

Let me know if it works. Thx

chrilith commented 7 years ago

Also be sure to use the 32-bit version of the DLL, not the 64-bit since FSUIPC and P3D are 32-bit.

jackybek commented 7 years ago

yeah .. x86 version

Sent from my iPhone

On 22 Apr 2017, at 14:44, chrilith notifications@github.com wrote:

Also be sure to use the 32-bit version of the DLL, not the 64-bit since FSUIPC and P3D are 32-bit.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

chrilith commented 5 years ago

Well, if P3D is a x64 version, you'll get this error using the x86 version of Passerelle. You can move to the x64 version, unfortunately, GD is not available for x64 Lua.

The new version of Passerelle will feature window capture to ease integration.