bpcw001 Posted June 5, 2013 Report Share Posted June 5, 2013 Hi, I tried to make a simple test script, TestScript.lua, for FSUIPC in FSX SP2. Running FSUIPC version 4.904. function fsuipc_T1(offs, val) ipc.control(64104, val) end event.intercept(0x66C8, "SW", "fsuipc_T1") in FSUIPC.ini, I have the following: [Auto] 1 = LUA DynamicFriction 2 = LUA TestScript Now, in FSUIPC, I assigned an axis to "Offset Word Set" its values to x66C8. On moving the axis, I'd expect the fsuipc_T1 function to trigger and send the param to control 64104 (FSUIPC calib throttle), which should move the throttle. However, nothing happens. I tried the same using a "while 1 do" construct and that works, however I thought using events might be more elegant than a polling loop. Seems I have not grasped the event stuff yet. What am I doing wrong here? Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now