Jump to content
The simFlight Network Forums

Logging Lua Plugins Seperately


Recommended Posts

Hi Pete,

 

I am having trouble trying the get the Lua Plugin logs to be created separately for each Plugin, I have used this facility before and I remember it was quite an easy thing to turn on in the Logging Tab, but I cannot not get it to work. I cannot tell you the last version that it worked on as I have not used the facility for some time, probably 6 Months or so but I tried to switch it on and cannot get the separate log files to generate.

 

The Lua Plugin logging remains in the FSUIPC4.log file, so I can still see the logs there but I wanted them separated as I am running quite few plugins and it saves sifting through the data in a single file.    

 

I am running on FSX with all the latest patches and have just downloaded and Installed FSUIPC 4.948 to try and fix the issue but still cannot get it working. 

 

Below is a cut/paste of just the start of my main FSUIPC4.log so you can see the Log options that are set. I currently have all 9 ticked.

 

Thanks Glenn.

 

 

 

 

********* FSUIPC4, Version 4.948 by Pete Dowson *********
Reading options from "C:\Program Files\Microsoft Games\Microsoft Flight Simulator X\Modules\FSUIPC4.ini"
Running inside FSX on Windows 7
Module base=5B270000
User Name=*************
User Addr=*****************************
FSUIPC4 Key is provided
WideFS7 Key is provided
       15 System time = 08/11/2015 23:01:30
       15 FLT UNC path = "\\SIM01\C_Drive\Users\Glenn\Documents\Flight Simulator X Files\"
       47 Trying to connect to SimConnect Acc/SP2 Oct07 ...
       47 FS UNC path = "\\SIM01\C_Drive\Program Files\Microsoft Games\Microsoft Flight Simulator X\"
      203 ---------------------- Joystick Device Scan -----------------------
      203 Product= Joystick - HOTAS Warthog
      203    Manufacturer= Thustmaster
      203    Vendor=044F, Product=0402 (Version 1.0)
      203    Serial Number=
      203 Product= Throttle - HOTAS Warthog
      203    Manufacturer= Thrustmaster
      203    Vendor=044F, Product=0404 (Version 1.0)
      203    Serial Number=
      203 -------------------------------------------------------------------
      608 LogOptions=F0000000 0000001F
      608 -------------------------------------------------------------------
      608 ------ Setting the hooks and direct calls into the simulator ------
      608 --- CONTROLS timer memory location obtained ok
      608 --- SIM1 Frictions access gained
      608 --- FS Controls Table located ok
      608 --- Installed Mouse Macro hooks ok.
      608 --- Wind smoothing fix is fully installed
      608 --- G3D.DLL fix attempt installed ok
      608 --- All links checked okay
      608 -------------------------------------------------------------------
      608 SimConnect_Open succeeded: waiting to check version okay
      608 Trying to use SimConnect Acc/SP2 Oct07
    10826 Running in "Microsoft Flight Simulator X", Version: 10.0.61637.0 (SimConnect: 10.0.61259.0)
    10826 Initialising SimConnect data requests now
    10826 FSUIPC Menu entry added
    10858 Ready Flags: Ready-To-Fly=N, In Menu=Y, In Dlg=Y
    10858 \\SIM01\C_Drive\users\glenn\documents\flight simulator x files\YSRI Ready.FLT
    10858 \\SIM01\C_Drive\Program Files\Microsoft Games\Microsoft Flight Simulator X\SimObjects\Airplanes\VRS_FA-18E\FA-18E-6.8_SE.AIR
    11419 Memory in use: 654Mb, Avail=1394Mb
    11419 *** EVENT: Cntrl= 66416 (0x00010370), Param= -1 (0xffffffff) PAN_VIEW
    12028 *** EVENT: Cntrl= 66507 (0x000103cb), Param= 10150 (0x000027a6) PANEL_ID_OPEN
    12028 *** EVENT: Cntrl= 66507 (0x000103cb), Param= 10150 (0x000027a6) PANEL_ID_OPEN
    12028 *** EVENT: Cntrl= 66507 (0x000103cb), Param= 10150 (0x000027a6) PANEL_ID_OPEN
    12574 *** EVENT: Cntrl= 66598 (0x00010426), Param= 0 (0x00000000) VIRTUAL_COPILOT_SET
    12574 *** EVENT: Cntrl= 65750 (0x000100d6), Param= 0 (0x00000000) PANEL_LIGHTS_TOGGLE
    12574 *** EVENT: Cntrl= 65707 (0x000100ab), Param= 79249 (0x00013591) COM_RADIO_SET
    12574 *** EVENT: Cntrl= 66442 (0x0001038a), Param= 79249 (0x00013591) COM2_RADIO_SET
    12574 *** EVENT: Cntrl= 65708 (0x000100ac), Param= 69905 (0x00011111) NAV1_RADIO_SET
    12574 *** EVENT: Cntrl= 65709 (0x000100ad), Param= 69905 (0x00011111) NAV2_RADIO_SET
    12574 *** EVENT: Cntrl= 66479 (0x000103af), Param= 16777216 (0x01000000) ADF_COMPLETE_SET
    12574 *** EVENT: Cntrl= 66556 (0x000103fc), Param= 16777216 (0x01000000) ADF2_COMPLETE_SET
    12574 *** EVENT: Cntrl= 65832 (0x00010128), Param= 0 (0x00000000) RADIO_VOR1_IDENT_DISABLE
    12574 *** EVENT: Cntrl= 65834 (0x0001012a), Param= 0 (0x00000000) RADIO_DME1_IDENT_DISABLE
    12574 *** EVENT: Cntrl= 65833 (0x00010129), Param= 0 (0x00000000) RADIO_VOR2_IDENT_DISABLE
    12574 *** EVENT: Cntrl= 65835 (0x0001012b), Param= 0 (0x00000000) RADIO_DME2_IDENT_DISABLE
    12574 *** EVENT: Cntrl= 65750 (0x000100d6), Param= 0 (0x00000000) PANEL_LIGHTS_TOGGLE
    12574 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    12574 *** EVENT: Cntrl= 65750 (0x000100d6), Param= 0 (0x00000000) PANEL_LIGHTS_TOGGLE
    12574 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    12574 *** EVENT: Cntrl= 65750 (0x000100d6), Param= 0 (0x00000000) PANEL_LIGHTS_TOGGLE
    12574 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    12574 *** EVENT: Cntrl= 65750 (0x000100d6), Param= 0 (0x00000000) PANEL_LIGHTS_TOGGLE
    12574 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    12574 *** EVENT: Cntrl= 65750 (0x000100d6), Param= 0 (0x00000000) PANEL_LIGHTS_TOGGLE
    12574 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    12574 *** EVENT: Cntrl= 65750 (0x000100d6), Param= 0 (0x00000000) PANEL_LIGHTS_TOGGLE
    12574 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    12574 *** EVENT: Cntrl= 65750 (0x000100d6), Param= 0 (0x00000000) PANEL_LIGHTS_TOGGLE
    12574 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    12574 *** EVENT: Cntrl= 65750 (0x000100d6), Param= 0 (0x00000000) PANEL_LIGHTS_TOGGLE
    12574 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    12574 *** EVENT: Cntrl= 65750 (0x000100d6), Param= 0 (0x00000000) PANEL_LIGHTS_TOGGLE
    12574 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    12574 *** EVENT: Cntrl= 65750 (0x000100d6), Param= 0 (0x00000000) PANEL_LIGHTS_TOGGLE
    12574 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    12589 *** EVENT: Cntrl= 65750 (0x000100d6), Param= 0 (0x00000000) PANEL_LIGHTS_TOGGLE
    12589 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    12589 *** EVENT: Cntrl= 65750 (0x000100d6), Param= 0 (0x00000000) PANEL_LIGHTS_TOGGLE
    12589 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    12589 *** EVENT: Cntrl= 65750 (0x000100d6), Param= 0 (0x00000000) PANEL_LIGHTS_TOGGLE
    12589 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    12589 *** EVENT: Cntrl= 65750 (0x000100d6), Param= 0 (0x00000000) PANEL_LIGHTS_TOGGLE
    12589 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    12589 *** EVENT: Cntrl= 65750 (0x000100d6), Param= 0 (0x00000000) PANEL_LIGHTS_TOGGLE
    12589 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    12589 *** EVENT: Cntrl= 65750 (0x000100d6), Param= 0 (0x00000000) PANEL_LIGHTS_TOGGLE
    12589 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    12589 *** EVENT: Cntrl= 65554 (0x00010012), Param= 0 (0x00000000) ENGINE
    12589 *** EVENT: Cntrl= 66514 (0x000103d2), Param= 0 (0x00000000) ATC_MENU_CLOSE
    12589 *** EVENT: Cntrl= 65554 (0x00010012), Param= 0 (0x00000000) ENGINE
    12589 *** EVENT: Cntrl= 66514 (0x000103d2), Param= 0 (0x00000000) ATC_MENU_CLOSE
    12589 *** EVENT: Cntrl= 65538 (0x00010002), Param= 0 (0x00000000) SELECT_1
    12589 *** EVENT: Cntrl= 66514 (0x000103d2), Param= 0 (0x00000000) ATC_MENU_CLOSE
    12589 *** EVENT: Cntrl= 65554 (0x00010012), Param= 0 (0x00000000) ENGINE
    12589 *** EVENT: Cntrl= 66514 (0x000103d2), Param= 0 (0x00000000) ATC_MENU_CLOSE
    12589 *** EVENT: Cntrl= 65538 (0x00010002), Param= 0 (0x00000000) SELECT_1
    12589 *** EVENT: Cntrl= 66514 (0x000103d2), Param= 0 (0x00000000) ATC_MENU_CLOSE
    12589 *** EVENT: Cntrl= 65539 (0x00010003), Param= 0 (0x00000000) SELECT_2
    12589 *** EVENT: Cntrl= 66514 (0x000103d2), Param= 0 (0x00000000) ATC_MENU_CLOSE
    12652 ***  AXIS: Cntrl= 65698 (0x000100a2), Param= 1820 (0x0000071c) FLAPS_SET
    12652 ***  AXIS: Cntrl= 65698 (0x000100a2), Param= 1820 (0x0000071c) FLAPS_SET
    12652 ***  AXIS: Cntrl= 65698 (0x000100a2), Param= 1820 (0x0000071c) FLAPS_SET
    12652 ***  AXIS: Cntrl= 65698 (0x000100a2), Param= 1820 (0x0000071c) FLAPS_SET
    14461 ***  AXIS: Cntrl= 65698 (0x000100a2), Param= 3640 (0x00000e38) FLAPS_SET
    14461 ***  AXIS: Cntrl= 65698 (0x000100a2), Param= 3640 (0x00000e38) FLAPS_SET
    14461 ***  AXIS: Cntrl= 65698 (0x000100a2), Param= 3640 (0x00000e38) FLAPS_SET
    14461 ***  AXIS: Cntrl= 65698 (0x000100a2), Param= 3640 (0x00000e38) FLAPS_SET
    14461 ***  AXIS: Cntrl= 65698 (0x000100a2), Param= 3640 (0x00000e38) FLAPS_SET
    14461 ***  AXIS: Cntrl= 65698 (0x000100a2), Param= 3640 (0x00000e38) FLAPS_SET
    14461 ***  AXIS: Cntrl= 65698 (0x000100a2), Param= 3640 (0x00000e38) FLAPS_SET
    14461 ***  AXIS: Cntrl= 65698 (0x000100a2), Param= 3640 (0x00000e38) FLAPS_SET
    14461 ***  AXIS: Cntrl= 65698 (0x000100a2), Param= 3640 (0x00000e38) FLAPS_SET
    14461 ***  AXIS: Cntrl= 65698 (0x000100a2), Param= 3640 (0x00000e38) FLAPS_SET
    14461 ***  AXIS: Cntrl= 65698 (0x000100a2), Param= 3640 (0x00000e38) FLAPS_SET
    23431 Weather Mode now = Theme
    24118 Ready Flags: Ready-To-Fly=N, In Menu=N, In Dlg=N
    24180 Ready Flags: Ready-To-Fly=N, In Menu=Y, In Dlg=Y
    24320 ***  AXIS: Cntrl= 66420 (0x00010374), Param= -16384 (0xffffc000) AXIS_THROTTLE1_SET
    24320 ***  AXIS: Cntrl= 66423 (0x00010377), Param= -16384 (0xffffc000) AXIS_THROTTLE2_SET
    26255 System time = 08/11/2015 23:01:57, Simulator time = 11:30:57 (01:30Z)
    26676 Aircraft="US NAVY Blue Angels #1"
    27768 *** EVENT: Cntrl= 66507 (0x000103cb), Param= 10150 (0x000027a6) PANEL_ID_OPEN
    27768 *** EVENT: Cntrl= 66507 (0x000103cb), Param= 10150 (0x000027a6) PANEL_ID_OPEN
    27768 *** EVENT: Cntrl= 66507 (0x000103cb), Param= 10150 (0x000027a6) PANEL_ID_OPEN
    28252 *** EVENT: Cntrl= 66598 (0x00010426), Param= 0 (0x00000000) VIRTUAL_COPILOT_SET
    28252 *** EVENT: Cntrl= 65707 (0x000100ab), Param= 79249 (0x00013591) COM_RADIO_SET
    28252 *** EVENT: Cntrl= 66442 (0x0001038a), Param= 79249 (0x00013591) COM2_RADIO_SET
    28252 *** EVENT: Cntrl= 65708 (0x000100ac), Param= 69905 (0x00011111) NAV1_RADIO_SET
    28252 *** EVENT: Cntrl= 65709 (0x000100ad), Param= 69905 (0x00011111) NAV2_RADIO_SET
    28252 *** EVENT: Cntrl= 65832 (0x00010128), Param= 0 (0x00000000) RADIO_VOR1_IDENT_DISABLE
    28252 *** EVENT: Cntrl= 65834 (0x0001012a), Param= 0 (0x00000000) RADIO_DME1_IDENT_DISABLE
    28252 *** EVENT: Cntrl= 65833 (0x00010129), Param= 0 (0x00000000) RADIO_VOR2_IDENT_DISABLE
    28252 *** EVENT: Cntrl= 65835 (0x0001012b), Param= 0 (0x00000000) RADIO_DME2_IDENT_DISABLE
    28252 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    28252 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    28252 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    28252 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    28252 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    28252 *** EVENT: Cntrl= 66886 (0x00010546), Param= 3 (0x00000003) BLEED_AIR_SOURCE_CONTROL_SET
    28252 *** EVENT: Cntrl= 65554 (0x00010012), Param= 0 (0x00000000) ENGINE
    28252 *** EVENT: Cntrl= 66514 (0x000103d2), Param= 0 (0x00000000) ATC_MENU_CLOSE
    28252 *** EVENT: Cntrl= 65554 (0x00010012), Param= 0 (0x00000000) ENGINE
    28252 *** EVENT: Cntrl= 66514 (0x000103d2), Param= 0 (0x00000000) ATC_MENU_CLOSE
    28252 *** EVENT: Cntrl= 65538 (0x00010002), Param= 0 (0x00000000) SELECT_1
    28252 *** EVENT: Cntrl= 66514 (0x000103d2), Param= 0 (0x00000000) ATC_MENU_CLOSE
    28252 *** EVENT: Cntrl= 65554 (0x00010012), Param= 0 (0x00000000) ENGINE
    28252 *** EVENT: Cntrl= 66514 (0x000103d2), Param= 0 (0x00000000) ATC_MENU_CLOSE
    28252 *** EVENT: Cntrl= 65538 (0x00010002), Param= 0 (0x00000000) SELECT_1
    28252 *** EVENT: Cntrl= 66514 (0x000103d2), Param= 0 (0x00000000) ATC_MENU_CLOSE
    28252 *** EVENT: Cntrl= 65539 (0x00010003), Param= 0 (0x00000000) SELECT_2
    28252 *** EVENT: Cntrl= 66514 (0x000103d2), Param= 0 (0x00000000) ATC_MENU_CLOSE
    28579 Ready Flags: Ready-To-Fly=N, In Menu=N, In Dlg=N
    28595 ***  AXIS: Cntrl= 65698 (0x000100a2), Param= 1820 (0x0000071c) FLAPS_SET
    28595 ***  AXIS: Cntrl= 65698 (0x000100a2), Param= 1820 (0x0000071c) FLAPS_SET
    29234 *** EVENT: Cntrl= 65568 (0x00010020), Param= 0 (0x00000000) HEADING_GYRO_SET
    29234 *** EVENT: Cntrl= 65584 (0x00010030), Param= 0 (0x00000000) BAROMETRIC
    29500 *** EVENT: Cntrl= 66720 (0x000104a0), Param= 0 (0x00000000) ANTISKID_BRAKES_TOGGLE
    29671 Starting everything now ...
    29687 LUA.0: beginning "C:\Program Files\Microsoft Games\Microsoft Flight Simulator X\Modules\ipcReady.lua"
    29687 LUA.0: ...es\Microsoft Flight Simulator X\Modules\ipcReady.lua:1
    29687 LUA.0: Global: ipcPARAM = 0
    29687 Ready Flags: Ready-To-Fly=Y, In Menu=N, In Dlg=N
    30295 *** EVENT: Cntrl= 65707 (0x000100ab), Param= 74576 (0x00012350) COM_RADIO_SET
    30295 *** EVENT: Cntrl= 66442 (0x0001038a), Param= 75008 (0x00012500) COM2_RADIO_SET
    30295 *** EVENT: Cntrl= 65708 (0x000100ac), Param= 71296 (0x00011680) NAV1_RADIO_SET
    30295 *** EVENT: Cntrl= 65709 (0x000100ad), Param= 70000 (0x00011170) NAV2_RADIO_SET
    30701 LUA.0: ...es\Microsoft Flight Simulator X\Modules\ipcReady.lua:2
    30701 LUA.0: ...es\Microsoft Flight Simulator X\Modules\ipcReady.lua:3
    30701 LUA.1: beginning "C:\Program Files\Microsoft Games\Microsoft Flight Simulator X\Modules\linda.lua"
    30701 LUA.0: ended "C:\Program Files\Microsoft Games\Microsoft Flight Simulator X\Modules\ipcReady.lua"
    30701 LUA.1: ...Games\Microsoft Flight Simulator X\Modules\linda.lua:18
    30701 LUA.2: beginning "C:\Program Files\Microsoft Games\Microsoft Flight Simulator X\Modules\SS_Loader.lua"
    30701 LUA.1: Global: ipcPARAM = 0

 

 

 

Link to comment
Share on other sites

I am having trouble trying the get the Lua Plugin logs to be created separately for each Plugin, I have used this facility before and I remember it was quite an easy thing to turn on in the Logging Tab, but I cannot not get it to work. I cannot tell you the last version that it worked on as I have not used the facility for some time, probably 6 Months or so but I tried to switch it on and cannot get the separate log files to generate.

 

The Lua Plugin logging remains in the FSUIPC4.log file, so I can still see the logs there but I wanted them separated as I am running quite few plugins and it saves sifting through the data in a single file.    

 

Hmm. Very strange. I'll just test it here. (I normally leave it all in the main log so that I can see the relationships between Lua actions and FS events and monitored offset values).

 

[LATER]

 

Aha! 

 

It works fine UNLESS you also enable the Debug/Trace option. THEN everything goes to the main log file. It must have been like that was since I added the debug/trace option!

 

I'll fix that this week. Look out for 4.948b in the Download Links subforum.

 

Pete

Link to comment
Share on other sites

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.