Most of the commonly reported issues and questions are answered in the Frequently Asked Questions (FAQ) option under the Support menu of this website.
*** PLEASE NOTE ***
Your forum account is not the same as the account used in the shop. They are completely separate accounts.
Your forum account is not the same as the account used in the shop. They are completely separate accounts.
1st December: A new version of the GoFlight Interface Tool for MSFS is now available.
12th November: A new version of the GoFlight Interface Tool for X-Plane is now available.
6th June: A new version of Virtual Flight Sim Hardware is now available (huge update)
21st November: A new version of the GoFlight Interface Tool for FSX/FSXSE/P3D is now available.
Send an event o a control using var as parameter
Hi Steve,
I`m trying to send an event using the following code
Degrees =ipc.readDBL(0X02B00)
ipc.control(66042,Degrees)
Where 066042 is K:HEADING_BUG_SET and 0X02B00 is the offset for PLANE HEADING DEGREES GYRO
This works in FSUIPC7
but I get the following error
Error: ...S\GOFLIGHT INTERFACE TOOL\LUA\ASOBO_CJ4\_HEADING_BUG.LUA:1: attempt to index a nil value (global 'ipc')
I also tried
sendcevt("K:HEADING_BUG_SET", 035) where 035 would then be replaced by the offset to test but I get an error as well
Error: ...S\GOFLIGHT INTERFACE TOOL\LUA\ASOBO_CJ4\_HEADING_BUG.LUA:1: sendhevt: C++ Exception Thrown - Insufficent Number Of Parameters. One Required.
If we figure the Sendcevt, then what do I use for getlvar to get the offset of degrees?
I`m trying to send an event using the following code
Degrees =ipc.readDBL(0X02B00)
ipc.control(66042,Degrees)
Where 066042 is K:HEADING_BUG_SET and 0X02B00 is the offset for PLANE HEADING DEGREES GYRO
This works in FSUIPC7
but I get the following error
Error: ...S\GOFLIGHT INTERFACE TOOL\LUA\ASOBO_CJ4\_HEADING_BUG.LUA:1: attempt to index a nil value (global 'ipc')
I also tried
sendcevt("K:HEADING_BUG_SET", 035) where 035 would then be replaced by the offset to test but I get an error as well
Error: ...S\GOFLIGHT INTERFACE TOOL\LUA\ASOBO_CJ4\_HEADING_BUG.LUA:1: sendhevt: C++ Exception Thrown - Insufficent Number Of Parameters. One Required.
If we figure the Sendcevt, then what do I use for getlvar to get the offset of degrees?
Tagged:
Comments
Both the Event and variable you are using are standard Simconnect so SendVar will work fine.
Best wishes
Steve