Jump to content
The simFlight Network Forums

rustam

Members
  • Posts

    39
  • Joined

  • Last visited

Everything posted by rustam

  1. Thank you, Pete! I've followed your advice and this is what I have achieved so far: FSUIPC.INI section: [Profile.SW_AN2] 1=Antonov [Buttons.SW_AN2] 0=P0,26,CL1:R,1 1=P0,24,CL1:R,2 [Auto.SW_AN2] 1=Lua SW_AN2 [LuaFiles] 1=SW_AN2 Contents of the LUA file: -- PARAMETERS -- ---------- -- 1 = Inertial Clutch Charge -- 2 = Inertial Clutch On -- 0 = Inertial Clutch Off -- Set to Zero ipc.writeLvar("L:AN2_inertial_clutch",0) -- Set to Charge if ipcPARAM == 1 then ipc.writeLvar("L:AN2_inertial_clutch",1) ipc.writeLvar("L:play_sound",11) end -- Set to On if ipcPARAM == 2 then ipc.writeLvar("L:AN2_inertial_clutch",-1) ipc.writeLvar("L:play_sound",11) end -- Set to Off if ipcPARAM == 0 then ipc.writeLvar("L:AN2_inertial_clutch",0) ipc.writeLvar("L:play_sound",0) end Filename: SW_AN2.lua. The file sits inside FSX Modules folder. However, whatever I do I can't initiate the ipcPARAM == 2. Parameters 0 and 1 work and LVar "play_sound" plays as it should though. Any guess what can cause the... problem? Thanks!
  2. Thank you VERY MUCH, Glenn!!! I do appreciate your time and FANTASTIC skills! :) Take care, Rustam
  3. Hi there, As mentioned in the User Guide, some 3rd-party aircraft "use the more recent technique of having gauges in XML. Those are also not susceptible to "Mouse Macros". That's exactly the case with SibWings Antonov An-2 which initiates LVars through swan2.DLL. So, I guess I won't be able to use mouse macros for this aircraft, as also been proven by numerous tests from my side with the latest versions of the aircraft and FSUIPC (registered). So, I've decided to use another approach by making a LUA plugin similar to A2A Spitfire but it contains more than one function tailored specifically for that particular aircraft model. I would be happy to limit myself to default FSX controls managed through FSUIPC.INI but the usage of a LUA plugin is necessary since some of the switches are bound to LVars only - like the inertial clutch and the oil shutter mechanism. How can I assign buttons and keypresses on my Saitek X52 Pro to be able to call different functions from the same LUA file without using macros or LINDA? Is it ever possible through FSUIPC.INI?! Thanks! Rustam
  4. Glenn, Can you reupload this file please? Both links seem to be dead... Thanks!
  5. Hi there, I've been using FSUIPC4 for years but I always had a difficulty in setting it right. I also use AS2012 as my external wx program. This time (after re-installing FSX) I decided NOT to touch any settings except those for controlling devices (Saitek X52 Pro in my case) since from what I can read in the FSUIPC manual, the weather and visibility options are optional unless controlled by external weather program. Well, you can send me back to ActiveSky forums to get the answer but logically thinking - do I really need to apply say wind or pressure smoothing settings through FSUIPC if they in fact need to be controlled by AS2012 (or any other external WX application). Or, am I missing smth here?!? So, if this is the case can I leave FSUIPC4 default settings as-is and let AS2012 control all weather related operations? Any recommendation or advise is highly appreciated. Thank you! Rustam Alhas
  6. Hi Pete, Here is the answer from Doug Kallen (a.k.a PropTrash @ FSDeveloper.com) who is the author of aircraft in question: I'm not sure I fully understand what he means since it sounds too technical for a person not experienced in aircraft modeling... like me. So, I decided to post it here in hope that you could comment on it in more detail. Btw, if you want to try the addon, you can download it from here: http://simviation.com/1/download-file?file=d75n1.zip Thank you very much!
  7. Thanks for your prompt reply! Here is what I did following your advice: ********* FSUIPC, Version 3.989z by Pete Dowson ********* ... ... [Continuation log requested by user] Module base=61000000 WeatherReadInterval=4 LogOptions=00000011 LogExtras=1 119435 System time = 23/03/2011 04:04:41, FS2004 time = 00:27:39 (08:27Z) 119435 *VIS* SM: Min=0.00, MaxRny=0.00, MaxOvc=0.00, MaxCld=0.00, MaxClr=0.00, Upper=60.00, FT: LwrAlt=0, UppAlt=25000 119435 WeatherOptions set, now 4000B6A7 (timer=0) 119435 LogOptions changed, now 00000011 (LogExtras=1) 119513 Ready Flags: Ready-To-Fly=Y, In Menu=Y, In Dlg=Y 119513 Ready Flags: Ready-To-Fly=Y, In Menu=N, In Dlg=N 119513 AP READOUTS: Flags1=00000000, Flags2=00000000 123116 *** EVENT: Cntrl= 65560 (0x00010018), Param= 0 (0x00000000) STROBES_TOGGLE (NoAccel) 125566 *** EVENT: Cntrl= 65751 (0x000100d7), Param= 1 (0x00000001) LANDING_LIGHTS_TOGGLE (NoAccel) 127921 *** EVENT: Cntrl= 66379 (0x0001034b), Param= 1 (0x00000001) TOGGLE_NAV_LIGHTS (NoAccel) 129169 *** EVENT: Cntrl= 66239 (0x000102bf), Param= 1 (0x00000001) TOGGLE_BEACON_LIGHTS (NoAccel) 130714 KEYDOWN: VK=16, Waiting=0, Repeat=N, Shifts=1 130714 .. Key not programmed -- passed on to FS 130932 KEYDOWN: VK=83, Waiting=0, Repeat=N, Shifts=1 130932 .. Key not programmed -- passed on to FS 130932 *** EVENT: Cntrl= 65749 (0x000100d5), Param= 0 (0x00000000) VIEW_MODE_REV (NoAccel) 131057 KEYUP: VK=83, Waiting=0 131899 KEYDOWN: VK=83, Waiting=0, Repeat=N, Shifts=1 131899 .. Key not programmed -- passed on to FS 131899 *** EVENT: Cntrl= 65749 (0x000100d5), Param= 0 (0x00000000) VIEW_MODE_REV 132024 KEYUP: VK=83, Waiting=0 132648 KEYUP: VK=16, Waiting=0 136205 *** EVENT: Cntrl= 65732 (0x000100c4), Param= 0 (0x00000000) EXIT (NoAccel) 136236 Ready Flags: Ready-To-Fly=Y, In Menu=N, In Dlg=Y 137718 Flight saved #2 = "Previous flight" 138295 System time = 23/03/2011 04:04:59, FS2004 time = 00:27:57 (08:27Z) 138295 *** FSUIPC log file being closed Memory managed: 0 Allocs, 864 Freed ********* FSUIPC Log file closed *********** And here is the extract from my FSUIPC.INI: [Profile.Default] 1=D75N1 ; Boeing Stearman 2=Cessna Skyhawk 172SP [Buttons.Default] 0=R0,32,C65734,0 ; Pan forward 1=R0,33,C66416,45 ; Pan forward right 2=R0,34,C66416,90 ; Pan right 3=R0,35,C66416,135 ; Pan rear right 4=R0,36,C66416,180 ; Pan rear 5=R0,37,C66416,225 ; Pan rear left 6=R0,38,C66416,270 ; Pan left 7=R0,39,C66416,315 ; Pan forward left 8=P0,1,C65752,0 ; Parking brakes 9=R0,5,C65588,0 ; Brakes 10=R0,6,C65777,0 ; Mixture decrease 11=R0,7,C65775,0 ; Mixture increase 12=P0,0,C66240,0 ; Taxi lights 13=P0,14,C65751,0 ; Toggle landing lights 14=U0,14,C66240,0 ; Taxi lights off 15=P0,13,C65758,0 ; Flaps down incr. 16=P0,4,C65595,0 ; Flaps up all 17=P0,8,C66239,0 ; Toggle beacon lights 18=P0,9,C65560,0 ; Toggle strobe lights 19=P0,10,C66379,0 ; Toggle navigation lights 20=P0,11,C65750,0 ; Toggle panel lights 21=R0,2,Cx42000BC0,xC0010080 ;offset SWord value - elevator trim down 22=R0,3,Cx32000BC0,x3FFF0080 ;offset SWord value - elevator trim up 23=R0,20,C66277,0 ; Aileron trim right 24=R0,22,C66276,0 ; Aileron trim left 26=R0,21,C66529,0 ; buttons 26-31 for Eyepoint movements inside VC 27=R0,19,C66528,0 28=R0,25,C66525,0 29=R0,23,C66524,0 30=R0,26,C66527,0 31=R0,24,C66526,0 [Buttons] ButtonRepeat=0,10 As you can see, I use the same commands for lights both in the INI file and FSUIPC log. But looking at logfile, I suspect there is smth wrong, e.g.: 130714 .. Key not programmed -- passed on to FS What do you think? Thank you!!!
  8. Hi there, I am lucky enough to fly this wonderful Stearman from Doug Kallen: http://simflight.com/2011/02/02/boeing-stearman-by-proptrash-a-new-record-for-fs2004-models/ The only problem I have is no matter what I do I cannot switch lights (nav, strobe, taxi, etc.) with custom joy button commands assigned in FSUIPC.INI. The same INI file works ok with other aircraft (e.g., default C172) when I put the value of "title=" from aircraft.cfg under my custom profile inside FSUIPC.INI (ShortAircraftNameOk=Yes). I do the same for Stearman and can pan view and move eyepoint (default FS9 commands/keys mapped to joy buttons) plus do a couple of other things through the same FSUIPC.INI in Stearman - just can't understand WHY only the lights are inoperable through FSUIPC. :( Any advise is highly appreciated!!! Vuqar
  9. No, Sir, FSUIPC does not recognise the switch for sure! I guess I have to use one of the regular buttons, as per your advise. Question is HOW!? Sorry, I am quite new to FSUIPC and indeed very limited to try it in full since I use my friends computer (i.e., his registered software). Btw, I just checked Simmarket - it accepts Paypal and, thanks to your return and prompt reply FSUIPC3 is in my checkout box now... :) Anyway, I have only manuals in hand and from what I understand the conditionality of buttons apply if one wants to trigger events which are connected to the primary event only - e.g., pressing the button at 50ft to change to ATC-required tower frequency would simultaneously trigger gears up, OR another useful example - after pressing the button to change radio frequency, button OFF would also make (swap) the standby radio to active mode. But there is a limited number of such conditions within the scope of activities in any aircraft. And that's why I cannot understand how the joystick modes can be changed with button on and off... Sorry, if I understood everything wrong from the manuals! Again, I cannot practice with offsets since I don't have FSUIPC yet. But the explanation within manuals seems rather vague to me, on the other hand. I'll put it simple - I even don't understand WHAT are they and how one can get use of 'em... I better go back to the manual reading. At least, you reassured me that there IS a possibility (I prefer the word "facility" the way you use it) to implement joystick modes in FSUIPC. The more I am in the "business", the more I like it!!! I have done that already! I was just thinking of trying the same with FSUIPC - so deep I love these 300 kbs! :) Thank you very much! And see you when I'm registered!
  10. Dear Peter (and the Team?), First off, I would like to seize this great opportunity to convey you my best regards and my ENDLESS thanks for such a nice software you developed - FSUIPC! Tbh, I'm speechless to see how expandable and versatile some 300Kb library file can be... A piece of art and an exemplary show-off for beginning programmers like me. Thank you very much for your efforts you put into the development in order to cherish the whims of flightsim fans, to say the least! ====================================================================================================================================== Straight to the deal... I've spent a couple of hours to read thoroughly the documents shipped with the FSUIPC - quite a steep learning curve but very fruitful experience, on the other hand! Please correct me if I am wrong, but from what I understood reading the Advanced Users' Manual, there IS a possibility to "program" (through INI file) different "flight scenarios" (takeoff, climb, descent, etc.) using a joystick with a bunch of buttons only. I currently use Saitek's X52 Pro which has some 40 clickable buttons, POVs, etc., and, to be honest, expandability (wow, I said that!) of FSUIPC was the very first question I've been asking myself before reading the manuals. Could you please show a quick example on how to assign conditional commands through FSUIPC, like changing radio frequencies for COM and NAV using one POV only: COM Mode actions: 1- Changes COM2 (standby) with increments/decrements of whole and fraction numbers (four-button POV used: the first 2 buttons change the whole numbers the last 2 - the fractions); 2- When I'm happy, swaps COM2 to COM1 (compound buttons?!?) NAV Mode actions: 1- Changes NAV2 (standby) with increments/decrements of whole and fraction numbers (the same four-button POV used: the first 2 buttons change the whole numbers the last 2 - the fractions); 2- Again, swaps NAV2 to NAV1 (e.g., on button release?). One of the reasons I bought X52 Pro was it was possible to adjust it for three different Modes by switching the relevant knob on the stick. And I would definitely like and have some ideas to use FSUIPC instead of the regular Saitek's API to program it the way I like. But when I read Compound Buttons section of Advanced User's Manual, it didn't give me the idea of using the joy in different modes - only execution of secondary actions by triggering the primary action first! Although it is VERY useful facility but I couldn't somehow materialize how Compound Buttons conditions may be applied in shifting the joystick modes. ==================================================================================================================================== My other question will be similar to the one you've been asked before (see: viewtopic.php?f=54&t=13882). However, I'll put it in other way - is it possible to START (not restart!) a flight after selection of a proper aircraft (which has been made entries in INI file for) from FS Aircraft menu in a cold-and-dark mode, i.e. from the beginning of flight? You may say many addon developers like PMDG offer this possibility already but what about a default aircraft? But I have read in another thread that it was actually possible to apply this on PMDG JS41 using LUA programming language. The other reason is I currently use default C172SP "adapted" by RealAir Simulations and like the way it behaves both on the ground and in the air - huge difference with default one! Well, once again thank you for your support and patience bearing this long post with me... :) Rustam
×
×
  • 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.