Wreyth Posted September 28, 2022 Posted September 28, 2022 (edited) Not sure if there is a way but i am sure there is some way to work around it. I need a way to disable seat switching from pilot to cpg or vice versa for some specific mission stuff for single player campaign i am working on. I have already with help of another person got a method to start a player out in the correct seat ie: start as cpg, but i need to either idealy disable seat switching back to the pilot seat for the mission or a way to tell if a player switched or presses 1 then switch them immedietly back to CPG ( less deseriable option but could work) So far i have tried listening for the command (1602) and it is not firing the trigger but i may have it set up wrong as I am not sure if I fully understand the listen for command function. Edited September 28, 2022 by Wreyth
Rudel_chw Posted September 28, 2022 Posted September 28, 2022 1 hour ago, Wreyth said: I need a way to disable seat switching from pilot to cpg or vice versa for some specific mission stuff for single player campaign i am working on. Hi, I know of no way to disable the seat switching, and also the Command 1602 seems to not be able to be listened to. However, there is an Apache PARAMETER that tells you what seat is the player using, its name is SEAT and can have two values: 0: The player isn in the pilot Seat, 1: The player is on the gunner seat. Making use of this parameter, the triggers look like this: As the DCS triggers are evaluated once per second, the player is able to briefly see the Pilot seat before the next trigger iteration moves him back to the gunner seat, so I added a message telling him whats going on AH64 - test.miz For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar Mobile: iPad Pro 12.9" of 256 GB
Wreyth Posted September 28, 2022 Author Posted September 28, 2022 once again THANK YOU! so for my own notes i wasn't using the listen for command wrong it was just something in the dcs coding that wouldn't allow it right?
Rudel_chw Posted September 28, 2022 Posted September 28, 2022 1 hour ago, Wreyth said: so for my own notes i wasn't using the listen for command wrong it was just something in the dcs coding that wouldn't allow it right? Yes, you were doing it right .. it's a pity that DCS commands implementation seems not to be available for every aircraft keybind. For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar Mobile: iPad Pro 12.9" of 256 GB
Wreyth Posted September 29, 2022 Author Posted September 29, 2022 (edited) 1 hour ago, Rudel_chw said: Yes, you were doing it right .. it's a pity that DCS commands implementation seems not to be available for every aircraft keybind. out of curiosity i found the 1602 in adjust controls when I set the MissonEditor.lua to show all but where did you find the Cockpit Paramater for SEAT? as i couldn't find it in the clickabledata.lua Reason i ask is trying to also find the paramater for Flight Control to disable the CPG from taking control of the aircraft flight unless the pilot is dead and also so i don't have to keep asking around and can find the stuff i need on my own lol Edited September 29, 2022 by Wreyth
Rudel_chw Posted September 29, 2022 Posted September 29, 2022 8 minutes ago, Wreyth said: where did you find the Cockpit Paramater for SEAT? I used the Lua Console of the DCS-BIOS software, that cockpit builders use. More info here: https://dcs-bios.readthedocs.io/en/latest/lua-console.html For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar Mobile: iPad Pro 12.9" of 256 GB
Wreyth Posted September 29, 2022 Author Posted September 29, 2022 7 minutes ago, Rudel_chw said: I used the Lua Console of the DCS-BIOS software, that cockpit builders use. More info here: https://dcs-bios.readthedocs.io/en/latest/lua-console.html Gotcha so in otherwords i would have to install the dcs bios and scripts to see that info output through the web console and run something like return list_cockpit_params() to see whats currently in use right?
Rudel_chw Posted September 29, 2022 Posted September 29, 2022 8 minutes ago, Wreyth said: Gotcha so in otherwords i would have to install the dcs bios and scripts to see that info output through the web console and run something like return list_cockpit_params() to see whats currently in use right? Yes, correct The console also can disclose what INDICATORS are provided by the aircraft for its displays: return list_indication(n) -- n = device ID, see mods/aircraft/.../Scripts/devices.lua For example, I used Indicators to edit this training mission, where I can detect what items are on the MFD: For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar Mobile: iPad Pro 12.9" of 256 GB
Wreyth Posted September 29, 2022 Author Posted September 29, 2022 Well i cannot for the life of me get DCS-BIOS to work as it refuses to install or create the Scripts\DCS-BIOS folder and lua's no matter what i do....... i can connect to Virtual Cockpit and load the Lua Console in systray but can't actually connect it to dcs. Not to metion i can;t seem to find a copy of them anywhere or even find a solution as to why it won't create them or how to fix it period. All for the sake of tryign to get the Cockpit Paramaters list and Indicators list lol....... spent all day and all night trying. Well regardless i really do appreciate all your help and response to at least get me the info you have. THANK YOU!
Rudel_chw Posted September 29, 2022 Posted September 29, 2022 (edited) 16 minutes ago, Wreyth said: Well i cannot for the life of me get DCS-BIOS to work as it refuses to install or create the Scripts\DCS-BIOS folder and lua's no matter what i do Perhaps you have DCS on a custom location, the installer of DCS-BIOS expect it to be at /program files/eagle dynamics/ Anyway, the Apache does not have very many Parameters, the JF-17 was much better on this regard. Here is a list of the Apache parameters available. BASE_SENSOR_RADALT:1.494709\ BASE_SENSOR_PITCH:0.082464\ BASE_SENSOR_NOSE_GEAR_UP:0.000000\ MFD_RIGHT_CPG_INDICATOR_INDEX:12.000000\ BASE_SENSOR_AOS:0.002146\ BASE_SENSOR_STICK_PITCH_NORMED:0.000000\ BASE_SENSOR_BAROALT:185.349933\ BASE_SENSOR_AOA:0.082436\ BASE_SENSOR_IAS:0.000123\ BASE_SENSOR_VERTICAL_SPEED:-0.000023\ SEAT:0.000000\ BASE_SENSOR_TAS:0.000124\ BASE_SENSOR_VERTICAL_ACCEL:0.996265\ BASE_SENSOR_FLAPS_POS:0.000000\ BASE_SENSOR_HELI_CORRECTION:0.000000\ BASE_SENSOR_LEFT_THROTTLE_RAW_CONTROL:0.000000\ BASE_SENSOR_MACH:0.000000\ BASE_SENSOR_LEFT_GEAR_UP:0.000000\ BASE_SENSOR_HORIZONTAL_ACCEL:0.082370\ EJECTION_BLOCKED_0:0.000000\ BASE_SENSOR_LATERAL_ACCEL:-0.025958\ BASE_SENSOR_ROLL_RATE:-0.000069\ BASE_SENSOR_YAW_RATE:-0.000020\ BASE_SENSOR_PROPELLER_RPM:291.959599\ BASE_SENSOR_PITCH_RATE:-0.000002\ BASE_SENSOR_LEFT_ENGINE_TEMP_BEFORE_TURBINE:0.000000\ BASE_SENSOR_LEFT_ENGINE_FUEL_CONSUPMTION:0.046652\ BASE_SENSOR_WOW_NOSE_GEAR:1.000000\ BASE_SENSOR_LEFT_THROTTLE_POS:0.000000\ BASE_SENSOR_ROLL:0.026056\ BASE_SENSOR_MAG_HEADING:2.695087\ BASE_SENSOR_LEFT_GEAR_DOWN:1.000000\ BASE_SENSOR_HEADING:3.573102\ BASE_SENSOR_FUEL_TOTAL:1436.376709\ BASE_SENSOR_SPEED_BRAKE_POS:0.000000\ BASE_SENSOR_GEAR_HANDLE:0.000000\ BASE_SENSOR_NOSE_GEAR_DOWN:1.000000\ EJECTION_INITIATED_0:-1.000000\ BASE_SENSOR_RIGHT_ENGINE_FAN_RPM:1.010245\ MFD_RIGHT_PLT_INDICATOR_INDEX:8.000000\ BASE_SENSOR_WOW_LEFT_GEAR:1.000000\ BASE_SENSOR_WOW_RIGHT_GEAR:1.000000\ BASE_SENSOR_RIGHT_GEAR_DOWN:1.000000\ BASE_SENSOR_RIGHT_GEAR_UP:0.000000\ BASE_SENSOR_ALTIMETER_ATMO_PRESSURE_HG:0.000000\ BASE_SENSOR_STICK_ROLL_POS:0.000000\ BASE_SENSOR_STICK_PITCH_POS:0.000000\ BASE_SENSOR_RIGHT_ENGINE_RPM:0.898825\ BASE_SENSOR_RUDDER_POS:0.000000\ BASE_SENSOR_HELI_COLLECTIVE:0.000000\ BASE_SENSOR_CANOPY_POS:0.000000\ BASE_SENSOR_RIGHT_ENGINE_TEMP_BEFORE_TURBINE:0.000000\ BASE_SENSOR_RIGHT_ENGINE_FUEL_CONSUMPTION:0.046652\ BASE_SENSOR_CANOPY_STATE:0.000000\ BASE_SENSOR_FLAPS_RETRACTED:1.000000\ BASE_SENSOR_STICK_ROLL_NORMED:0.000000\ BASE_SENSOR_RUDDER_NORMED:0.000000\ BASE_SENSOR_PROPELLER_PITCH:-0.535000\ BASE_SENSOR_RELATIVE_TORQUE:0.000000\ BASE_SENSOR_PROPELLER_TILT:0.000000\ BASE_SENSOR_LEFT_ENGINE_RPM:0.898825\ BASE_SENSOR_LEFT_ENGINE_FAN_RPM:1.010245\ BASE_SENSOR_RIGHT_THROTTLE_POS:0.000000\ BASE_SENSOR_RIGHT_THROTTLE_RAW_CONTROL:0.000000\ EJECTION_BLOCKED_1:0.000000\ EJECTION_INITIATED_1:-1.000000\ PNVS_CAM_INDICATOR_INDEX:0.000000\ TADS_CAM_INDICATOR_INDEX:1.000000\ MAP_PLT_L_INDICATOR_INDEX:2.000000\ MAP_PLT_R_INDICATOR_INDEX:3.000000\ MAP_CPG_L_INDICATOR_INDEX:4.000000\ MAP_CPG_R_INDICATOR_INDEX:5.000000\ MFD_LEFT_PLT_INDICATOR_INDEX:6.000000\ MFD_LEFT_CPG_INDICATOR_INDEX:10.000000\ TEDAC_INDICATOR_INDEX:19.000000\ ADF_FREQ:0.000000\ Kneeboard_FlareBurstCount:0.000000\ Kneeboard_FlareBurstInterval:0.000000\ Kneeboard_FlareSalvoCount:0.000000\ Kneeboard_FlareSalvoInterval:0.000000\ Kneeboard_FlareProgramDelay:0.000000\ MFD_init_DEFAULT_LEVEL:6.000000\ MFD_NUM:3.000000\ FONT_PREFIX:\"font_CPG_RMFD_\"\ EUFD_Material:\"font_EUFD_cpg\"\ BRU_Material:\"BRU_CPG_SYMBOLOGY\"\ COMM1_FREQ:305.000000\ VHF_AM_FREQ:121.000000\ FM1_FREQ:30.000000\ FM2_FREQ:30.000000\ Edited September 29, 2022 by Rudel_chw For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar Mobile: iPad Pro 12.9" of 256 GB
Wreyth Posted September 29, 2022 Author Posted September 29, 2022 (edited) it is and i finally stumbled acrossed a fix right after typing this lol so i had to literally rename my install folder to xxxx-tmp .... run the open beta installer and exit it ..... delete the created folder and rename my actual folder back to original for it to actually see the damn install path..... got it working now lol ran the return list_cockpit_params() and got the readout .... found SEAT:1.00000000\ which was the 1 you must have found and now trying to find out where to see who has flight control so i can block that as well if needbe for something lol Edited September 29, 2022 by Wreyth 1
Recommended Posts