Hi,
ANY HELP WOULD BE APPRECIATED!
I tried hard but I don't succeed in starting any LUA-Script. I think I miss somethinng very elemantary...
I use the MSFS 2020 and have a Bodnar card that works fine.
I tried a couple of LUA-scripts but nothing happend.
Let's take the rotaries.lua and let me show you what I did:
I changed the rotaries.lua to
..
Vendor = "Leo Bodnar Electronics"
Product = "BU0836 Interface"
Device = 0 -- Multiple devices of the same name need increasing Device numbers
-- Use separate Lua plug-ins for separate cards!
-- NOTE: this can handle up to 16 rotaries only, using the first 64 "virtual buttons"
-- List the pairs here:
Rotaries = { 0, 1 }
....
because the fsuipc.ini showed:
...
[JoyNames]
A=T.Flight Hotas X
A.GUID={3D8586D0-1093-11EB-8001-444553540000}
B=BU0836 Interface
B.GUID={D92BD810-A381-11EB-8001-444553540000}
1=T.Flight Hotas X
1.GUID={3D8586D0-1093-11EB-8001-444553540000}
0=BU0836 Interface
0.GUID={D92BD810-A381-11EB-8001-444553540000}
...
FSUIPC gave me the number of the buttons: JOY# B, BTN 0 und 1
I put the rotaries.lua into the FSUIPC installation folder and the log file shows
...
[LuaFiles]
1=ipcReady
2=Rotaries
...
and nothing happens, not even some addional lines in the log file. Yes, I checked the Lua-plugins and Log-Lua-seperately buttons at the log tab.
The ipc.Ready.log has this:
********* LUA: "ipcReady" Log [from FSUIPC version 7.0.9] *********
15219 System time = 29/04/2021 14:03:49, Simulator time = 14:03:15 (12:03Z)
15219 LUA: beginning "C:\FSUIPC7\ipcReady.lua"
15219 LUA: C:\FSUIPC7\ipcReady.lua:1
15235 LUA: Global: ipcPARAM = 0
15328 >>> Thread forced exit (ipc.exit or os.exit) <<<
15328 System time = 29/04/2021 14:03:49, Simulator time = 14:03:15 (12:03Z)
********* LUA execution terminated: Log Closed *********
I also tried other lua files like the TripleUse.lua and a nice one I found at the MobiFlight site that should bring the heading bug to the actual direction and assigned a keypress to it.
HDGBUD.lua
hdg = ipc.readSW8(0x582)
hdg = hdg - ipc.readSW(0x2A0)
ipc.writeSW(0x7cc, hdg)
Again, nothing happened.
What do I overlook?
I would be very happy if you can help me with these basic stuff!
Greetings, Frank