Jump to content
The simFlight Network Forums

Recommended Posts

Posted

 

  On 3/13/2018 at 3:47 PM, alihor said:

Hi Pete, I am sorry, but it doesn't work, unfortunately.

Attached is my Lua file and the LOG file.

My systems run WIN7-64 PRO, could this influence the behaviour?

Expand  

No, mine are also Win 7-64 PRO, and it works fine 100%

Which doesn't work, maximising the Window or send the key press. The Lua logging doesn't tell me that. 

I attach my working copy of your Lua. Not that the path to FS-flightControl is different, so you'll need to change that back to test.

Please turn off Lua tracing log options. it doesn't show anything useful now.

Pete

ahFC_ControlV4.luaFetching info...

 

[LATER]

I only just see you are usig FSUIPC4, not FSUIPC5. I'll need to install FSX-SE again to test that. The same changes were made to FSUIPC4 and FSUIPC5, and the FSUIPC5 changes work fine. I wonder if there's a 64-32 bit difference? I hope not.

I'll check again tomorrow.

 

Posted
  On 3/14/2018 at 10:22 AM, alihor said:

You said "send key press" doesn't work? But this is exactly what I need !!??

Expand  

Sorry, I missed out the question mark. I was asking YOU which didn;t work!
i.e."Which doesn't work, maximising the Window or send the key press?" 

But it doesn't matter now. I ploughed on regardless of an answer.

Pete

 

Posted
  On 3/13/2018 at 8:18 PM, Pete Dowson said:

I only just see you are usig FSUIPC4, not FSUIPC5. I'll need to install FSX-SE again to test that. The same changes were made to FSUIPC4 and FSUIPC5, and the FSUIPC5 changes work fine. I wonder if there's a 64-32 bit difference? I hope not.

Expand  

I understood that FSUIPC5 is for P3D only. Not FSX. Correct?

Posted

HURRAH ! All function are now working, e.g. MAXIMIZE (ext.state(myHandle,EXT_MAX))  AND send keys (elseif ipcPARAM == 4 then KeyOk = ext.sendkeys(myHandle,77,3)).

I used now your new version ***** LUA: "ahFC_ControlV4PD" Log [from FSUIPC version 4.974b] *********

Great job, Pete.

Still unclear :  *** LUA Error: cannot open Z:\FSX\Modules\ipcDebug.lua: No such file or directory

Who calls ipcDebug.lua ? It is NOT in my Modules folder.

********

Now I can continue with my other project : Replace buttons by SECOND Keyboard keys.

see here

Talk to you again soon, I hope

Alhard

Posted
  On 3/14/2018 at 10:59 AM, alihor said:

Still unclear :  *** LUA Error: cannot open Z:\FSX\Modules\ipcDebug.lua: No such file or directory

Who calls ipcDebug.lua ? It is NOT in my Modules folder.

Expand  

It is supplied in the FSUIPC Documents folder (in the Lua examples ZIP) but it isn't needed. Which logging option are you selecting? The simple Trace option for Lua doesn't need that file anyway. -- it used to and there is still an option to use it.

 

Posted
  On 3/14/2018 at 11:30 AM, Pete Dowson said:

It is supplied in the FSUIPC Documents folder (in the Lua examples ZIP) but it isn't needed. Which logging option are you selecting? The simple Trace option for Lua doesn't need that file anyway. -- it used to and there is still an option to use it.

Expand  

Pete, I think you misunderstood. I know what and where ipcDebug.lua is. My question is , why comes this error message " cannot open " in the Lua Log ? Ther is no ipcDebug.lua in my FSX modules folder.

Alhard

Posted
  On 3/14/2018 at 12:15 PM, alihor said:

Pete, I think you misunderstood. I know what and where ipcDebug.lua is. My question is , why comes this error message " cannot open " in the Lua Log ? Ther is no ipcDebug.lua in my FSX modules folder.

Expand  

No, I understood you!  The ipcDebug.lua is used when you enable specific options for logging. It isn't used by the main "Trace Lua" logging option. That is why I asked you how you were enabling the trace debug logs you keep sending me.

FSUIPC cannot open it BECAUSE it isn't in your Modules folder! Of course!

Something in your setup, or what you are running, is enabling the Lua  ipcDebugging option. I'd need to see your INI file and for you to list what you are running to know what.

And why is it worrying you so? Haven't you finished debugging your Lua now?

Pete

 

 

Posted

Pete, this is my logging in FSUIPC. Lua is not activated.

image.png.2c6744ade4007c54de9456ba3de18a8b.png

and this is my FSUIPC INI file.

FSUIPC4_mas.iniFetching info...

  On 3/14/2018 at 1:56 PM, Pete Dowson said:

And why is it worrying you so? Haven't you finished debugging your Lua now?

Expand  

Yes I have luckily finished. But as I am IT man by earlier profession, I am interested in all  interrelationships in my SIMs and AddOns.

Alhard

Posted

Aha! I see:

20=P4,20,CL2:D,0     -{LuaDebug ahCallFC}-
21=P4,4,CL4:D,0     -{LuaDebug ahZoomIn}-
22=P4,18,CL7:D,1     -{LuaDebug ahFC_ControlV4PD}-


You are starting your Lua files with "LuaDebug" instead of plain "Lua ...".  As described in the Lua Plug-Ins document. That then preloads "ipcDebug.lua" which, if loaded, does a number of debugging things, pretty much all of which are now superseded by the "Debug/Trace Lua plug-ins" option in the FSUIPC Options tab (see your pic above).  That option preloads a ready-compiled version of the debugging Lua.

Please use the Logging options facility instead of LuaDebug unless you really want to experiment with the Lua debugging in ipcDebug.lua. FSUIPC is defaulting to its internal one because it can't find ipcdebug.lua.

Pete

 

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

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.