Jump to content
The simFlight Network Forums

ark1320

Members
  • Posts

    675
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by ark1320

  1. NpCv2.21 Update NpC v2.21 - some small changes from v2.2 including a script you can use to switch autopilot input between Nav and GPS, the ability to set the PMDG B777 Mach window, and instructions on re-sizing and re-positioning the NpC message window. NumPad Control (NpC) is a program for entering Com, Nav and ADF radio frequencies, Transponder codes, VOR OBS/CRS settings, Auto-throttle airspeed, and Autopilot altitude, vertical speed, and heading values in FSX using the keyboard number-pad instead of mouse click spots. NpC is programmed primarily for aircraft with default FSX avionics (radios, transponders, and autopilots that were developed within standard FSX programming guidelines). However, this updated version of NpC also supports a number of third party add-on aircraft such as the PMDG 737NGX / B777, Flight1 King Air B200 and the A2A Cherokee 180. NpC is a set of Lua scripts and thus requires a registered copy of FSUIPC4 to work. An installation and configuration manual is included in the file set. For a video that gives an overview of NpC function see: https://www.youtube.com/watch?v=P2p6CHxMOl8&list=PL_NnG_PN8zwnEI59uGxlhgp11rJQbQ_gJ&index=2 By Al Klayton Dan Sullivan NpCv2.21.zip
  2. I also have no idea what the {6E68D0C0-70D7-11E4-.......} means, how it was determined, etc -- FSUIPC generates and takes care of that You are trying to do to much! OK, with that troublesome Saitek file renamed, and with FSUIPC running and with the Buttons + Switches tab open, if you move the Mode Switch FSUIPC should "see" it and respond. I suggest you now go back to my posts that show the conditional switch setup for the "horizontal" switch on the yoke and see if you can edit what I have to what meets your needs for that switch. I would not worry about PMDG until you can get things working for a default FSX a/c. Al
  3. Until you can rename or delete the SaiD0BAC.PRO file you won't be able to use the different positions of the Saitek Mode switch with FSUIPC, so that is your first priority I would expect. I'd keep looking on Google for ideas on how to deal with the Trusted Installer issue. I'm not to sure about the [Joy Names] section you posted above. If names ( A and B) have been automatically assigned, I think there should be entries like : A.GUID={6E68D0C0-70D7-11E4-8003-444553540000} for the yoke, and B.GUID={BD42D1F0-70D7-11E4-8005-444553540000} for the rudder peddles. But it may be that those entries don't show up until FSUIPC is actually loaded and running (can't remember), so it may be OK. (See pages 25 and 26 of the FSUIPC User's Guide.) I would focus on the Trusted Installer issue for now. Al
  4. Paul, I think you need to cut back on the reading and experiment a bit! Have you been able to rename the SaiD0BAC.PRO file? If so, pick one of the conditional button lines I provided above and try editing it in Notepad to do want you want. For example, to setup the horizonal moving slide switch on the front right side of the yoke to work with the mode switch in position 2, lines 41 and 42 in my post above would be the place to start (or lines 43 and 44 for the mode switch in position 1). You would of course have to look up the necessary control codes (to replace my aileron or rudder codes) in the FSX & P3D Controls document for what you want this switch to operate in FSX. Read my explanation of what each entry in the switch definition does, and edit accordigly. To see how FSUIPC "sees" a switch, load a flight and then open the Buttons + Switches tab of FSUIPC, move the switch and see how FSUIPC identifies it. When you think you made the edits you need, paste the resulting lines into FSUIPC.ini under [buttons] and see if the horizontal switch works with the mode switch as intended (you may have to reload the flight or restart FSX). If it doesn't work, try making a small change and retest. You can also post here what you have tried. Little by little you will get the hang of it. In my opinion, you can't spend hours reading page and page of information and then be able to just "do it". You need to pick something small and give it try. It all take time. Al BTW, I'm a lot older than you. :)
  5. Here are some conditional button entries from my FSUIPC.ini file: 41=CR(+Y,9)Y,7,C66277,0 ;aileron trim right w/horizontal yoke btn, w/mode sw =2 42=CR(+Y,9)Y,6,C66276,0 ;aileron trim left w/horizontal yoke btn, w/mode sw =2 43=CR(+Y,8)Y,7,C66279,0 ;rudder trim right w/horiz yoke btn, w/mode sw =1 44=CR(+Y,8)Y,6,C66278,0 ;rudder trim left w/horiz yoke btn, w/mode sw =1 45=CR(+Y,8)Y,1,K20,8 ;TeamSpeak voice capture start, mode sw=1 K20 for Caps Lock key 46=CU(+Y,8)Y,1,K20,8 ;TeamSpeak voice capture stop, mode sw=1 For the first line above: The 41 is just the FSUIPC.ini line # C means this is a Conditional button statement The R means the control is to be Repeatedly sent while the condition and button is activeOthers possibilities in place of the R here are P (pulse on press), U (pulse on release) -- control is only sent once even if button held or released, etc. The "condition" is in the ( ). The + means the button or switch must be pressed (- would mean the button or switch must be released) for the overall action to happen, the Y means Yoke, and the 9 is how FSUIPC sees the yoke mode switch in position 2. So the info in the ( ) represents the “condition” yoke switch 9 pressed or active. The Y,7 to the right of the ( ) is Yoke button 7 as seen by FSUIPC ( my aileron trim right button). C66277 is the control code (right aileron) that FSUIPC will send to FSX as the “action” if the condition is met (mode sw=2) and yoke button 7 is pressed. See the FSUIPC document FSX & P3D Controls in Alphabetical Order for a list of controls where, for example, you will find: AILERON_TRIM_LEFT 66276 AILERON_TRIM_RIGHT 66277 I’m not sure about the final 0 after the comma. I think this would be used to specify a parameter if needed by the control being sent to FSX. Finally, the info after the semicolon is just a comment so I can remember what I did. Line 45 above is slightly different in that instead of sending a FSX control code when all conditions are met, the code representing the CAPS LOCK key is sent to activate push to talk for TeamSpeak. In other words, pushing button 1 on the yoke is equivalent to pushing the CAPS LOCK key on the keyboard if the mode switch is in position 1. I think the final 8 means an 8 bit CAPS LOCK code but I’m not sure about that, so don’t quote me. :???: There is also more info on conditional button programming in the Appendix of the Advanced User’s Guide. See APPENDIX 1: Do more with your joystick! Good luck – that is about as much as I know, or think I know, on this topic. Al
  6. I had not heard of the "TrustedInstaller" before, but a Google search on TrustedInstaller turned up this http://helpdeskgeek.com/windows-7/windows-7-how-to-delete-files-protected-by-trustedinstaller/ and a lot of other possible sources of info that may be of use to you. So it looks like you will have to change the ownership of SaiD0BAC.PRO file so you can rename it. When I said programming the FSUIPC.ini file, I meant setting up the compound or conditional button/switch actions as described in the FSUIPC Advanced User's Guide (that you quoted from above in post #6). As I recall there are examples in the Guide. I can also paste a few examples here from my FSUIPC.ini file when I get home tonight. Al
  7. Yes, you should have three sets of buttons available as with the Saitek software -- suggest you try it. To start pick one button on the Saitek yoke and try programming it in FSUIPC.ini to do three different things depending on the mode switch position. Once you figure out how to do that, setting up the rest of the buttons should be easier. It has been quite a while since I set up my Saitek yoke, so I don't recall all the programming details at this point, but what you need to know is in the FSUIPC documentation. Al
  8. For reasons I don't understand, to allow FSUIPC to see the Saitek Mode switch you have to go into the folder C:\Windows\System32 (assuming the C drive is where things are at, otherwise substitute the correct letter) where you should find a Saitek file called SaiD0BAC.PRO. Rename this file to deactivate it – I simply renamed mine SaiD0BACmodeswitch.PR0 and left it in the original System32 folder. Then restart Windows, and the next time you start FSX pull up FSUIPC and go to the Buttons + Switches section and flip the mode switch – FSUIPC should register the switch when it moves. If subsequently you suddenly find the Mode Switch is not working again, it likely is because the SaiD0BAC.PRO file reappeared in the System32 folder for some reason. I've had this happen a few times. Al
  9. Just FYI, I have the A2A Cherokee and was able to verify that if you set the control to repeat while held you can in fact control the amount of bank by just how long you hold down the related left or right bank control button, and you can also return the a/c to level flight the same way. That seems to mirror the situation in the real a/c where you have to turn the knob to either set the amount of bank or return the a/c to level flight. I do understand, however, you are trying to implement something a little different. Al
  10. Since the control repeats while held, if you don't include a value in the FSUIPC paramater field, can you control the amount of bank by just how long you hold down the related left or right bank control button? If so, it would seem you could use this technique to set arbitrary degrees of bank, and also to return the a/c to level flight. Al
  11. I have not looked into the details, but it seems to me you could use a Lua program that would be activated by a "return to center" keystroke or button. The Lua program would read the current turn knob value (apparently somewhere between -50 and 50). Based on the value found (positive , 0, or negative), the program would then enter a loop if the value was not 0. Each iteration of the loop would inc or dec the turn value (based on whether the value was neg or positive), and then compare the new turn value to 0. If the new value was not 0, the loop would repeat, etc, until a turn value of 0 was reached e.g., a while turnknob ~= 0 do type of loop ** . The loop could include a Lua ipc.sleep(n) function (where n is millisecs of delay) so the value of n would determine the rate at which the turn value of 0 was reached. This all assumes there are Lvars for reading, incrementing, and decrementing the turn knob value. Al ** If the turnknob values are not restricted to integers, then comparing to 0 becomes more involved since as I understand it, Lua uses a floating point format to represent all numbers. A Google search on this should help explain the issues.
  12. Great -- glad you got it working. Al
  13. Polaris, I don't have the TM WartHog, but here's an idea you might try that Pete gave me some time ago: Since in the Flight 1 KA B200 the last (lower) 25% of the normal throttle axis range has been reserved for the Beta range, idle thrust is at the 25% throttle position point. My experience (with the Saitek throttle) has been that when FSUIPC detects the lower limit of the throttle axis range has been reached (-16384 in your case), it assumes this is the idle point. As a result, the throttle jumps to the idle (25%) position unless specifially prevented from doing so by artificially preventing FSUIPC from ever detecting what it thinks is the lower throttle limit (set a lower limit in the FSUIPC.ini file that can't be reached, e.g., -16400). Al
  14. The below is from my post on the Flgiht1 KA B200 Forum in Aug 2014. Perhaps it will help, it works fine for me. (Flight1 forum thread is here http://www.simforums.com/forums/moving-power-levers-into-reverse_topic49963_post327524.html?KW=reverse#327524) If using FSUIPC for axis control and calibration, the trick (provided by Pete Dowson) is to edit the low end throttle axis calibration number in the FSUIPC.ini file to a value a little below the lowest the axis can achieve, eg use -16400 if the lowest the axis can achieve is the typical -16384. FSUIPC treats the low end of lever travel as Idle, which was why the animated power level was jumping up to the Idle mark in the VC just before reverse was entered. With the fictitious lower limit, FSUIPC never thinks Idle is reached. Then under the FSUIPC Buttons and Switches tab use the [throttle lever activated] switch below the Saitek throttle axis to enter Reverse thrust with the F2 Throttle Decr command (with repeat), but DO NOT use the F1 Throttle Cut command when coming out of Reverse thrust (use nothing), because the Throttle Cut command makes the power lever in the VC jump over the beta range to Idle. Al
  15. Hello Josse, I am very happy to hear you find NpC useful. I do not have the FSX Flight 1 ATR72-500 so I can't really say if NpCv2.2 will be an improvement. My guess is the only change would be on how NpC looks on the screen. However, NpCv2.2 works with the Flight 1 King Air B200, so there might be some simulation code common to both aircraft. NpCv2.2 has a selection menu (see the manual included in the download or the NpC YouTube video at NpC Features Overview ) so you could try selecting the KA B200 to see how that would work with the ATR72-500. NpCv2.2 does also provide some improvements in how the NpC messages are displayed, so I think it would be worth trying NpCv2.2. All you would have to do is copy the NpCv2.2 scripts into the Modules folder to replace the existing NpCv1.1 scripts. There is nothing else you would have to do, all your existing key assignments should still work so it should be easy for you to try NpCv2.2. Make sure you have the latest version of FSUIPC. If you try NpCv2.2 please let me know how it works. Thanks again for letting me know you like NpC. Congratulations on being a RW ATR pilot. Al
  16. Ah -- don't know how I missed seeing that offset. Thanks very much, Al
  17. Hi Pete, Couple of things….. Is there a way to determine with a Lua script what aircraft has been loaded into FSX? For example, I’m trying to find a way to detect if the currently loaded a/c in FSX is an A2A Cessna 172, or not. I would like to be able to do this even if the a/c is not powered up. The atc_type entry in the aircraft.cfg file only returns Cessna, which could also indicate the default Cessna. The only thing I can seem to find in the aircraft.cfg file that would help is the ui_manufacturer=”A2A Cessna” entry but there is no offset for the ui_manufacturer field. I tried reading the A2A 172 Mastery Battery Lvar hoping it would return a nil value if some other a/c was loaded, but this does not seem to be the case as a 0 was returned (same as battery off). Any ideas appreciated. Also... While working on some Lua scripts I was a bit surprised to see the offsets for the Nav/GPS switch (0x132C) and Avionics Switch (0x2E80) are 4 bytes each even though they are just on and off (0 and 1) type variables, while the master battery switch offset (0x3102) is a single byte as I would have expected. So I assume I should use ipc.readUD() and ipc.writeUD() to manipulate the Nav/GPS and Avionics switches? Is there something special about these "4 byte" switches that I need to take into account? Thx, Al
  18. NpCv2.2 Update NumPad Control (NpC) is a program for entering Com, Nav and ADF radio frequencies, Transponder codes, VOR OBS/CRS settings, Auto-throttle airspeed, and Autopilot altitude, vertical speed, and heading values in FSX using the keyboard numberpad instead of mouse click spots. NpC is programmed primarily for aircraft with default FSX avionics (radios, transponders, and autopilots that were developed within standard FSX programming guidelines, so it does work with many freeware add-on aircraft). In addition, this updated version of NpC also supports third party add-on aircraft such as the PMDG 737NGX / B777, Flight1 King Air B200 and the A2A Cherokee 180. NpC is a set of Lua scripts and thus requires a registered copy of FSUIPC4 to work. Installation and configuration manual included. An NpC overview video is available at https://www.youtube.com/watch?v=P2p6CHxMOl8 . NpCv2.2.zip
  19. OK, I understand now what you are saying. I didn't realize the Dynamic Friction script made a "permanent" change to the FSX friction values. Nice clever solution on your part to overcome that problem. Glad you got it all figured out. Al
  20. I don't know what you mean by a restore function. According to the FSUIPC manual, once you switch a/c, the Dynamic Friction Lua script should terminate. So if you load the MD80 after, say the King Air, the Dynamic Friction script should not be a factor. If that is not happening, maybe you need to put the MD80 into its own profile that does not call the Dynamic Friction script. Al
  21. If you are using a/c profiles, you can activate the Dynamic Friction script just for those profiles or aircraft you want to use it with. The below is from the FSUIPC Advanced User manual: Automatic running of Macros and Lua plugins By some editing in the INI file, you can arrange for one or more Macros or Lua plugins to be executed, in order, automatically whenever the current aircraft is changed (or, indeed, first loaded), or a specific named aircraft (or Profile) is loaded. This allows switches, offsets, and other things to be set specifically for an aircraft (or aircraft type, for Profiles) when it is first loaded. This is done by adding new sections to the INI file with the title{ [Auto] or [Auto.xxxx...] where the xxxx part is the aircraft name, or part-name (as in Aircraft Specific sections), or a profile name when profiles are being used. These Auto sections thus parallel the Keys and Buttons sections -- the naming and selection follows the same system. The generic [Auto] section is carried out for all aircraft changes whilst the specific ones are only applied to matching aircraft or profile.. Each Auto section contains a series of numbered lines (1=..., 2=... etc) each of which is either a Lua command, or a Macro call. For example: [Auto.737] 1=Lua SetMyOffsets 2=737 OHD:Air Allbleeds When Lua calls run a plug-in which doesn't self-terminate, the plug-in thread still running is killed automatically on an aircraft/profile change. Note the last line above means if you switch from a plane using Dynamic Friction to one the doesn't, the script is automatically stopped as you would want. If you use Dynamic Friction most of the time, instead of turning it on in selected profiles, it may be more convenient to turn it on in general as you do now ( I assume ), and then use a command in specific profiles to turn it off. Exactly what command to use to do that I don't know (maybe something like Dynamic Friction =0), but if it is possible to do Pete will certainly be able to tell you how to it. Al
  22. Yes, all remians visible until the Enter key is hit. Yes, all fixed. I repeated all the tests above and now everything works as expected -- red stays red and white stays white. Thank you very much for your expertise and time on this. Al
  23. Hi Pete, I use the ipc.ask() function to display a 5 line menu and ask the user to input a choice (a number from 1 to 5). I tried the following tests after installing the new FSUIPC4.dll into the Modules folder: num_select=ipc.ask("menu string") -- default color option, the menu and user response was red as expected. num_select=ipc.ask("menu string",0) -- 0 color option, and again the menu and user response was red as expected. num_select=ipc.ask("menu string",1) -- 1 color option, the menu was white as expected, but as soon as the user entered a response (a number), the menu itself and the response all turned red. This was unexpected. I would prefer it to all stay white, but can make do with this if the stay all white option is difficult to make happen. Thanks very much for modifying the ipc.ask() function so quickly! Al
  24. The "registry editing documented somewhere on the Saitek support forum" can be found here under Calibration FIX: http://www.saitek.com/uk/supp/yokefsx3.html#b I have used it in the past and found it to be helpful. Al
  25. Pete, Thanks very much for the outstanding support! Al
×
×
  • 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.