John Dowson
Members-
Posts
12,280 -
Joined
-
Last visited
-
Days Won
252
Content Type
Profiles
Forums
Events
Gallery
Downloads
Everything posted by John Dowson
-
Using Lvars in fsuipc7.ini and or lua scripts
John Dowson replied to Detlef_747's topic in FSUIPC7 MSFS
But the problem looks to be that the offset value isn't changing, no? Presuming that is the correct offset (I have only spot-checked some and calculated the rest from an SDK file) and if so then the data isn't being provided correctly. As the SDK for the PMDG 737 for MSFS has still not been published, there is not much that can be done at the moment. I will take a look at this to verify (tomorrow now) and will start to maintain a list of of valid/invalid offsets for the PMDG 737 - should have done this at release! John -
FSUIPC and possible Tobii background processes?
John Dowson replied to LH067U's topic in FSUIPC7 MSFS
Strange...you should get an application crash event (maybe preceded and followed by other events) when you get a CTD. But Tobi and MCE would be your best bet for support on this, as you said. -
Using Lvars in fsuipc7.ini and or lua scripts
John Dowson replied to Detlef_747's topic in FSUIPC7 MSFS
Try with: ipc.createLvar("ipcpmdg_ELEC_annunAPU_GEN_OFF_BUS", 1234) ipc.createLvar("ipcpmdg_APU_EGTNeedle", 4321) ipc.reloadWASM() ipc.sleep(1000) ... i.e. you need to reload thee lvars from the WASM a before they become available. Note also that if a reload results in more lvars being found than previously (which of course there will be as you have created some), then this will/should trigger the reload of the [LvarOffsets] section from the ini. John -
PMDG B737-700: LEDs for A/P P/RST, A/T P/RST, FMC P/RST not working
John Dowson replied to hermann's topic in FSUIPC7 MSFS
That is as (newly) documented : I guess the next byte 65FA is for the copilot button. The other offsets must be correct then, just not populated correctly by PMDG. Cheers, John -
FSUIPC and possible Tobii background processes?
John Dowson replied to LH067U's topic in FSUIPC7 MSFS
Check for crash and failure events with Windows Event Viewer - may help. -
FSUIPC and possible Tobii background processes?
John Dowson replied to LH067U's topic in FSUIPC7 MSFS
FSUIPC has nothing to do with Tobi and knows nothing about it, as do I! -
Using Lvars in fsuipc7.ini and or lua scripts
John Dowson replied to Detlef_747's topic in FSUIPC7 MSFS
Ok. But if you don't create the lvars, they won't exist and they will be ignored. But I need to see your pmdg737.lua script - you forgot to attach that... John -
The license has now been updated. John
-
PMDG B737-700: LEDs for A/P P/RST, A/T P/RST, FMC P/RST not working
John Dowson replied to hermann's topic in FSUIPC7 MSFS
Yes, that's what I (eventually) understood, but thanks for clarifying. Sounds like it is an issue for PMDG, but as the SDK has still not yet been officially published, there is not that much that can be done at the moment. I will take a look though, but, as I said, I'm not that familiar with the 737 at the moment and I'm not sure how to get these to light up - they flash or either remain off. I need to get more familiar with the aircraft's systems and cockpit layout anyway... Cheers, John -
PMDG B737-700: LEDs for A/P P/RST, A/T P/RST, FMC P/RST not working
John Dowson replied to hermann's topic in FSUIPC7 MSFS
You mean that they don't hold the expected data values... Not sure about that one - do you mean that that also does not hold the correct value? Which switch is that? Is there a mapping of (lvar) switch number to function anywhere? You can control the switches using the Rotor Brake controls. But I guess you know that and are trying to determine the state of these switches, no? I'll check to see if I can see any lvars that hold the state. John -
No...please read the lua library documentation - and also the template I showed you. It would be more like this: myEventFunction(controlnum, param) -- Check parameter of Rotor Brake control to see if if param == 7715 then ipc.control(1071,77) -- send 'M' key (77) press elseif param == 7717 then ipc.control(1072,77) -- send 'M' key (77) release end end -- Wait for control to be received event.control(66587, "myEventFunction") If you want to send separate press and release, you need to use the separate FSUIPC added controls to send the key press (1071) and then the key release (1072) - ipc.keypress would send them both together. Note also that you need to have the lua running - it should be started from the [Auto] or, better, [Auto.xxx] (where xxx is the profile name) section of your FSUIPC7.ini. Again, consult the documentation if not sure (Advanced User guide). John Later: Btw, I used 77 (the 'M' key) as that is what you were using, You change this value to any other key or key+modifier - see the Advanced User guide for the keycode and shifts/modifier codes/numbers.
-
Nothing complex - something along the following lines - where <controlnum> is the control/event received when you press the button in the VC, and <keycode> is the key press you want to send: myEventFunction(controlnum, param) -- send keypress here - may need to check the control' parameter first if a Rotor Brake control ipc.keypress(<keycode>) end -- Wait for control to be received event.control(<controlnum>, myEventFunction) But as I keep saying, you can only do this if some sort of control/event is sent when press the button in the VC.
-
Using Lvars in fsuipc7.ini and or lua scripts
John Dowson replied to Detlef_747's topic in FSUIPC7 MSFS
I am slightly confused by your post. The PMDG offsets are not lvars, it is additional read-only data provided by PMDG. What happens> Show me the lua scrip, and activate logging for lua plugins and see if you get any errors. Note that if creating youy own lvars, it may take a short time before that lvar is available for reading/writing. That enables the broadcasting of the data to enable the FSUIPC PMDG offsets (read-only) to be populated. Do those lvars exist, or are you creating them? You cannot add lvars that you create using the [LvarOffsets] section as this is only processed when the initial lvars are received from the WASM. If they exist when you list them but are not available for adding to offsets, this implies that they had not been created when the WASM scanned for existing lvars. This happens with complex aircraft as it can take up to a minute or so to create all the necessary lvars. You should update the LvarScanDelay FSUIPC_WASM.ini parameter - this defaults to 5 (seconds) but is recommend to start with a value of 45 or so (see the Advanced User guide for details). Any further issues, please show me your FSUIPC7.ini as well as the FSUIPC7.log file, and any lua scripts if the problem is there. John -
Ok, so your problem is that FSUIPC is not running, i.e. not auto-starting. For auto-start issues, please see John
-
FSUIPC not creating his folder on the Community Folder
John Dowson replied to josemgtz777's topic in FSUIPC7 MSFS
Where is your Community folder? The installer thinks that it is here: C:\Program Files (x86)\Microsoft Flight Simulator\HLM_Packages"\Community\ which is a very strange path...especially that strange double-quote... Do you have a steam install or an MS store install? If the former, please show me this file: C:\Users\josem\AppData\Roaming\Microsoft Flight Simulator\UserCfg.opt If you have an MS Store installation, remove/delete that file and re-install. John -
Phantom button activations at button midpoint
John Dowson replied to mryan75's topic in FSUIPC7 MSFS
You still have some assignments to virtual buttons that should be removed (although these should not be having any affect): Your log also shows an error in your Rotaries.lua: Other than that, your log shows the events being sent as assigned, although its difficult to tell as you have obviously changed your assignments when doing this, and I can only see the assignments as they were when you exited. It is always better to provide a matching FSUIPC7.ini and FSUIPC7.log file for each test. Could you switch to using the Baron G58 for your tests - it is in the same profile as your Britten Norman Islander, and I can check/verify that here. In fact, I have just tested and all of the avionics master controls work - Toggle Avionics Master, Avionics Master 1 On/Off/Set, Avionics Master Set. So please try in that aircraft, or is this problem specific to the Britten Norman Islander? -
But I already answered this...this is only possible if pressing the button emits an event or changes something (i.e. simvar or lvar) that can be picked-up by FSUIPC, and you would need a lua script to intercept that and send the key press. FSUIPC does not react to mouse operations in the FS, only to the data it receives from the result if that mouse operation, usually an event. If the switches are animated, then the first thing you should try is to set logging for Events (non-axis controls) and flip the switches in the VC and see if any event is logged. The PMDG aircraft for P3D use custom controls, and the FSLabs uses the Rotor Brake control with the parameter indicating the switch and the mouse action, See if any of those are logged. If so, then a simple lua script can intercept these and send the key press. Many aircraft (GA) have a PTT button on the yoke, but this generally doesn't do anything as default ATC does not require this (it uses menu options). Toy would assign this by button to PTT for the ATC system you are using.
-
The current license only expired today. I will generate a new one tomorrow or Friday. I like to leave a day or two between the expiry of one trial license before I generate the next one one. Sorry for the inconvenience. John
-
What aircraft are you using, and does the PTT button in the VC actually work? I thought this was inoperative on most, if not all, aircraft... If there is a functioning PTT button in the VC, you need to see if activating this emits an event (it will be a custom event - there are no standard events for PTT) or changes a simvar or lvar. If so, you could use a lua script to pick up this change and then send the key press - which would go to the FS, vPilot would have to have this registered as a hot key to pick this up. If you let me know what FS and what aircraft you are using (and if I have this aircraft), I could take a look to see what, if anything, is emitted or changed.
-
PMDG B737-700: LEDs for A/P P/RST, A/T P/RST, FMC P/RST not working
John Dowson replied to hermann's topic in FSUIPC7 MSFS
What do you mean by this? The PMDG offsets only report state, you cannot write to them. If the offsets are not holding the correct data, then there is nothing I can do about this - they are just populated from what is received from the FS. I believe those offsets to now be correct, according to the SDK header file that I have, Offsets 0x65EA (MAIN_NoseWheelSteeringSwNORM) and 0x65FD (MAIN_annunSPEEDBRAKE_ARMED) are correct, and those inbetween are assigned based upon the latest NG3 SDK header file. I am not that familiar with the 737, so cannot verify those offsets (it is not clear to me what they should contain), but if there are any issues, nothing can be done until the SDK has been published, and then (assuming the SDK header file is correct - if not I will update once published) it will be an issue for PMDG. Maybe ask about this on the PMDG forums, but I don't think this will be supported (by PMDG) until the SDK is released, but you may get a response from another PMDG user. John -
What was the problem? Is everything now working as expected?
-
Create Mouse Macro button No availabe
John Dowson replied to Adel Ahmed's topic in FSUIPC Support Pete Dowson Modules
Looks like I forgot to remove that button....not sure how that has not been noticed before. I will remove in the next release. From the Advanced User guide: But there are and most probably never will be mouse macros for MSFS. The facilities in the SDK just do not exist to implement such a feature, and probably never will. MSFS has hvars instead (html variables), as well as calculator code that can be executed via presets. You should look into what presets are available (see https://hubhop.mobiflight.com/presets/) for the function that you want to implement via mouse macros. Presets are far easier to use than mouse macros. John -
FSUIPC not creating his folder on the Community Folder
John Dowson replied to josemgtz777's topic in FSUIPC7 MSFS
Note that you should also not modify anything in the Community\fsuipc-lvar-module folder as this would get overwritten the next time you update. You should use the WASM persistent storage area - see the Advanced User guide for details. John -
FSUIPC not creating his folder on the Community Folder
John Dowson replied to josemgtz777's topic in FSUIPC7 MSFS
You do not need to run as Administrator - the installer will request admin privileges when required. For any installation issues, you must show me/attach your InstallFSUIPC7.log file. John -
I have re-installed steam on my win7 system, and downloaded and installed FSX. The version this installs is 10.0.62615. I then ran FSX once, then installed FSUIPC4. I did get some registry issues (most probably due to duff registry entries from my previous installation), but the installer detected and fixed these. I then ran FSX again and FSUIPC4 was installed and working correctly. Did you try updating your FSX installation from the steam client? If not, try that. Otherwise uninstall and re-install. If you re-install, do not install into a windows protected folder, such as Program Files or Program Files (x86). With steam games, better to install under steamapps (the default), although not strictly necessary. John