July 25, 201510 yr Bonsoir , :rolleyes: Translation google ! I just installed the 2.63 release here seems ok, I found the various functions of my joystick.But I do not understand how to use the two functions 'Shifted' 1 and 2.I created three different functions 'test' on the same button. a- 1 without checked Shifted: toggle gear b-2 by checking Shifted 1 Parking brake , a new page is displayed with the function, but 'onpress, on repeat, on release are in red is this normal ? c- 3 by checking Shifted 2: Battery toggle , with the function, but 'onpress, on repeat, on release are in green ? If I press (a) the function is ok gear is down , up While I support (b) shift + left button = Parking brake is not working ! if I press (c) shift + right button = battery is not openThanks for your help
July 25, 201510 yr Hi, just to make sure: "Shift" does not refer to the Shift key on the keyboard but to the joystick button you defined as the Shift Button in Linda. You will therefore have to define a button of one of your input devices as the Shift Button first. Please note that there are two Shift Modes: Local (Shift is only applied to the joystick where the Shift Button is located) and Global (Shift is applied to the buttons of all joysticks being connected to your system). Peter
July 26, 201510 yr Author Bonjour Peter :rolleyes: A thousand times thank you Peter for your answer, here is two days that I blocked on the issue.Indeed, I do not risk getting there, saw total confusion :( the key 'shift' that I understood as the shift key. Good Day
July 26, 201510 yr Author I still pull my hair out here .... even starting to annoy me!Here are the settings in pictures I did:Home Page: Button # 4 park brake page 2 red 'press, repeat ..', where I checked shif t1 ', I assign to the button 3 overall for all my ###### joystick. page 3 and I checked 2 green shift 'pres ....' and the same button '4' as Page 1 I assign the second function 'gear'And although here, the button '4' alone or with pressing 3 does not move the brake nor the train! E_colerelinda watching the console displays an error that has no place it seeks a file and then shows no file that the file exists. Then refers to init.lua file, error line 41. Here file init.lua : - INITIALISATION-- Updated for LINDA 2.6-- Jan 2015-- ****************************************************************---- DO NOT EDIT OR CHANGE THE CONTENTS OF THIS FILE---- CORE LINDA FUNCTIONALITY---- NOTE - Compatibility with the original MCP1 is untested-- and correct operation cannot be guaranteed.-- If you experience problems with LINDA 2.xx then-- try LINDA 1.13.---- ****************************************************************if ipc.get("acft_handle") == nil then ipc.log("[iNIT] Check the loader enabled and started!") returnend-- communication offsetsx_RELOAD = 0x7320 -- 1/0 reload configsx_EXEC = 0x7321 -- action string max 32 bytesx_QUEUE = 0x735F -- queue flag - 1:busy, 0:ready to receive-- var hunterrequire(ipc.get("PATH_SYS") .. "hunter")-- Loading common functions and actionsrequire(ipc.get("PATH_SYS") .. "common")_log("[iNIT] Starting Initialisation...")-- loading optional librariesif ipc.get("LIBREQ") ~= "" then libs = split(ipc.get("LIBREQ"), "#") for i,req in pairs(libs) do _log("[iNIT] loading optional library: " .. req) require(req) endend-- Initialize system variables_log('[iNIT] Initializing Common Variables...')CommonInitVars ()-- main joystick configif ipc.get("HID_ENABLED") == 1 then require(ipc.get("PATH_SYS_CFG") .. "config-hid")end-- Loading aircraft modulerequire(ipc.get("PATH_ACFT") .. ipc.get("acft_handle") .. "/actions")-- user global settingsconfig = ipc.get("PATH_SYS_CFG") .. "config-user"if file_exists(config .. ".lua") then require(config) _log("[iNIT] User GLOBAL config loaded...")end-- user aircraft module overridesconfig = ipc.get("PATH_ACFT") .. ipc.get("acft_handle") .. "/user"if file_exists(config .. ".lua") then require(config) _log("[iNIT] User FUNCTIONS loaded...")end-- Loading aircraft module asignmentsif ipc.get("VRI_ENABLED") == 1 then config_mcp = ipc.get("PATH_ACFT_CFG") .. ipc.get("acft_handle") .. "/config-" .. ipc.get("VRItype") if file_exists(config_mcp .. ".lua") then require(config_mcp) _log("[iNIT] VRI MCP config loaded...") else _err("[iNIT] MCP configs not found for current aircraft! " .. config_mcp) _log("*************** USER ACTION REQUIRED ****************") _log("Open GUI and click on MCP Combo Button to create ") _log("configuration files from default or templates. ") _log("If no MCP connected then ensure it is disabled in ") _log("Setup MCP Combo, then click 'Reload Lua engine' ") _log("to restart.") _log("*************** USER ACTION REQUIRED ****************") ipc.display("[iNIT] MCP configs not found for current aircraft. Run GUI!" , 30) ipc.set("VRI_ENABLED", 0) endend-- Loading main engineif ipc.get("HID_ENABLED") == 1 then require(ipc.get("PATH_SYS") .. "handlers-hid") endif ipc.get("VRI_ENABLED") == 1 then require(ipc.get("PATH_SYS") .. "handlers-" .. ipc.get("VRItype"))endrequire(ipc.get("PATH_SYS") .. "events")-- Initialize finally_log("[iNIT] Finalising Initialisation...")Init () -- calls Init() function in common.lua--if HID config found and readyif ipc.get("HID_ENABLED") == 1 then -- Initialize HID devices _log("[iNIT] Initialising HID devices...") hidInit () -- loading fallback assignments HID config local config_hid = ipc.get("PATH_ACFT_CFG") .. "FSX default/config-hid" if file_exists(config_hid .. ".lua") then _log("[iNIT] Loading a fallback joysticks config...") require(config_hid) end -- loading this aircraft assignments HID config local config_hid = ipc.get("PATH_ACFT_CFG") .. ipc.get("acft_handle") .. "/config-hid" if file_exists(config_hid .. ".lua") then _log("[iNIT] Loading " .. ipc.get("acft_handle") .. " joysticks config...") require(config_hid) endend_log("[iNIT] Module: " .. ipc.get("acft_handle") .. " Started...")EVENTS_INIT = true-- Event to catch VRI commands from COM-port qqqqqqqif ipc.get("VRI_ENABLED") == 1 and dev > 0 then -- main event -- event.com (dev, 8, 8, -1, 'MCPcontrols') event.vriread(dev, "MCPcontrols") -- sync back if ipc.get("VRItype") ~= 'mcp2a' and not Airbus then event.offset(0x07E2, "UW", "SyncBackSPD") event.offset(0x07CC, "UW", "SyncBackHDG") event.offset(0x07D4, "UD", "SyncBackALT") event.offset(0x07F2, "UW", "SyncBackVVS") event.offset(0x0C4E, "UW", "SyncBackCRS") event.offset(0x0C5E, "UW", "SyncBackCRS2") endend-- auto flight save_log('[iNIT] Initiating Autosave ' .. tostring(EVENTS_INIT))event.offset(0x0366, "UW", "AutoSaveArm") -- on groundif AUTOSAVE_ENGINE_CHECK == 1 then -- engines event.offset(0x0894, "UW", "AutoSaveEvent") event.offset(0x092C, "UW", "AutoSaveEvent") event.offset(0x09C4, "UW", "AutoSaveEvent") event.offset(0x0A5C, "UW", "AutoSaveEvent")end-- set up autosave eventsif AUTOSAVE_MAGNETO_CHECK == 1 then event.offset(0x0892, "UW", "AutoSaveEvent") end -- magnetoif AUTOSAVE_BATTERY_CHECK == 1 then event.offset(0x281C, "UD", "AutoSaveEvent") end -- batteryif AUTOSAVE_PARKING_CHECK == 1 then event.offset(0x0BC8, "UW", "AutoSaveEvent") end -- parking brakeif AUTOSAVE_LIGHTS_CHECK == 1 then event.offset(0x0D0C, "UW", "AutoSaveEvent") end -- lights-- set up timer eventsevent.offset(x_RELOAD, "UB", 1, 'offset_reloadConfigs')event.offset(x_EXEC, "STR", 60, 'offset_executeCommand')event.timer(10, "hidPoll") -- main timer event 100HzEVENTS_INIT = falseif (_MCP2 () or _MCP2a ()) then Default_COM_1_init () end-- drop commands queue flagipc.writeUB(x_QUEUE, 0)if ipc.get("VRI_ENABLED") ~= 1 then ipc.display('LINDA is started! Ready to go!', 5)end_log("[iNIT] Ready to go, Captain!") Merci for your help .
July 27, 201510 yr Author I finally handed the 2.57 version and I have not linda error in the console. I put the patch Shifted, unfortunately I still can not to have two functions of a button!
July 27, 201510 yr Author Problem shifted resolved , Global ###### on the first page linda and now is ok.
Create an account or sign in to comment