-
Posts
251 -
Joined
-
Last visited
About Quaggles
- Birthday September 26
Personal Information
-
Flight Simulators
DCS
Falcon 4 BMS -
Location
Queensland, Australia - Behind your 3/9 Line
-
Interests
Programming
Recent Profile Visitors
9991 profile views
-
@ITR1102 Looking at the OMM screenshot you posted I think you downloaded the entire Github repository as a zip instead of downloading the release zip (DCS-Input-Command-Injector-Quaggles.zip) which is formatted to be OMM/OVGME compatible: https://github.com/Quaggles/dcs-input-command-injector/releases/tag/1.0.12.
-
I just retested in the lastest DCS version with the latest version of the mod and using the A-10C II keybinds from https://github.com/Munkwolf/dcs-community-keybinds and it's working for me. It looks like the error is happening because the lua command entry files you are trying to inject aren't returning a lua table. Also just double check you are using the latest version of the mod (1.0.12). I just realised that the first post of this thread said 1.0.12 but was actually linking to the 1.0.11 release due to some weird behaviour when I edited the post (I've fixed it now), so you might have downloaded the older version that's incompatible with the newest DCS version. Latest version is here https://github.com/Quaggles/dcs-input-command-injector/releases/tag/1.0.12. If that doesn't work could you send me the InputCommands lua files you are trying to inject so I can try to replicate, I might write a check in the mod so it won't break the controls menu if an invalid lua file is injected.
-
@jeni1976 if you want to use those commands for all aircraft you should be able to put that lua file in: "~\Saved Games\DCS\InputCommands\UiLayer\keyboard\default.lua" and "~\Saved Games\DCS\InputCommands\UiLayer\joystick\default.lua" That way you won't have to set it it up again for every plane you fly, that looks like how the mod author intended it to be used.
-
Version 1.0.12 released: https://github.com/Quaggles/dcs-input-command-injector/releases/tag/1.0.12 * Updated mod to be compatible with DCS 2.9.6.57650 Data.lua changes
- 264 replies
-
- 10
-
-
-
Quaggles started following About LUA scripts
-
Fortunately a while back ED added a way to bind the OFF state of a switch through the UI without needing to create a custom input command or use my mod. To do so you need to use the dropdown in the assignment panel and select the _OFF variant of the button, you can see how I've set up my speed brake slider here on my X-55, pressing the slider extends speedbrakes and releasing it retracts them:
-
I don't own a VPC control panel but I do use the flip down trigger on my VKB Gunfighter MCG Pro for this function so let me know if my understanding is correct It sounds like the switch guard cover sends button down (1) when flipped down and button up (0) when flipped up, the switch underneath the guard acts like a single button that you need to hold and can't be pushed both ways with a center. You want to use the guard cover to control set GMC to GUNS MSL & CMR when flipped up and set to OFF when flipped down and the switch underneath won't be used since it only moves one way while you hold it so can't be used to set the GMC on/off (Otherwise you'd bind the VPC guard cover to control the DCS guard cover and use the switch underneath to control GMC like in the real cockpit). You should be able to bind that in a vanilla DCS install without this mod required. For maybe a year now it's been possible to bind the _OFF state for buttons in the vanilla DCS install. So bind GMC Switch - OFF to JOYBTN## and bind GMC Switch - GUNS MSL & CMR to JOYBTN##_OFF and it should act how you want. The caveat is that you'll need to manually open the guard cover as part of your startup procecures, after that point however you shouldn't need to toggle things multiple times the VPC guard state should match the master arm state without having to set up an awkward software toggle. Here is a screenshot of how I have mine configured for my VKB stick, the difference is that your _OFF bind will be swapped since with my setup down (1) is for armed, up (0) is for safe.
-
@MalakhitThanks for taking a shot at it, I've had a look at the local variable issue and it looks like in DCS 2.9 ED uses the entire 200 local variable limit in Data.lua haha, they have no room to expand without refactoring some things Fortunately the inject function is only called from one place so I can put the QuagglesInputCommandInjector function locally inside the loadDeviceProfileFromFile function and it's scoped in a way that doesn't hit the 200 local var limit without having to hardcode everything or make the function global. Version 1.0.10 released: https://github.com/Quaggles/dcs-input-command-injector/releases/tag/1.0.10 * Updated mod to be compatible with DCS 2.9.0.46801 Data.lua changes
-
All the bindable commands should be in "DCS World\Mods\aircraft\F14\Cockpit\command_defs.lua" The ones I would experiment with are: {down = device_commands.JESTER_Quiet, cockpit_device_id=devices.JESTERAI, value_down = 1, name = _('Jester Quiet'), category = _('Quaggles Custom')}, {down = device_commands.JESTER_Pause, cockpit_device_id=devices.JESTERAI, value_down = 1, name = _('Jester Pause'), category = _('Quaggles Custom')}, Then maybe make a duplicate command with value_down = 0 to disable quiet mode? Or maybe try using JESTER_SPOT to make him talk again? {down = device_commands.JESTER_Spot, cockpit_device_id=devices.JESTERAI, value_down = 1, name = _('Jester Spot'), category = _('Quaggles Custom')},
-
Version 1.0.8 released: https://github.com/Quaggles/dcs-input-command-injector/releases/tag/1.0.8 * More defensive handling of table joins when the original keyCommands/axisCommands table is nil. Now if the original table is nil instead of being joined with the injected table it is overridden by the injected table. * Processing of axisCommands tables are now skipped for the "Keyboard" device, this prevents axis binds from showing up in that column since keyboards don't have any axis. This also fixes issue #5 that occured when an injected keyboard/default.lua contained an axisCommands table. * Logging now includes the device name that triggered the injection * Paths and device names are now wrapped in quotes in log messages