-- Global Custom SLIMax Manager Scripts v3.6 -- Copyright ©2012-2013 by Zappadoc - All Rights Reserved. -- last change by Zappadoc - 2013-09 -- add you global custom functions and globals variables here -- patch the std SLIMax Events with your global custom scripts if needed -- see the scripting section of the forum for more info... -- IMPORTANT: -- this script will not be deleted by uninstalling the software -- ================================ -- CONSTANTS -- ================================ -- additional lua extension module dll -- ================================ -- additional scripts file ( use 'require' statement ) -- ================================ -- custom globals -- ================================ -- custom functions function _DebugCarInfo(deviceType) -- see debug console window -- get car name local dev = GetDeviceType(deviceType) local cNm = "NA" --GetContextInfo("carname") local mxG = GetCarInfo("maxgear") local rdz = GetCarInfo("redzone") local ospf = GetContextInfo("ospfactor") print("\n----------\nDevice:"..dev.."\nMax RPM (Red Zone):" .. rdz .. "\nMaxGear:" .. mxG .. "\nOSP Factor:" .. ospf .. "\n"); end -- ================================ -- custom events function global_custom_controlsEvent(deviceType, ctrlType, ctrlPos, value, funcIndex, targetDevice) -- type your custom controls script here (manage buttons, switches and encoders) return 2 end function global_custom_deviceReport(deviceType) -- type your script here (just before sending report to the device ) return 2 end function global_custom_enterSessionEvent(deviceType) -- type your custom script on session start, here _DebugCarInfo(deviceType) return 2 end function global_custom_exitSessionEvent(deviceType) -- type your custom script on session ending, here return 2 end -- ================================ -- SLI-PRO, SLI-M, BU0710 SUPPORT function global_custom_ospMethodEvent(idx) -- type your custom Optimal Shift Points (OSP) method here return 2 end function global_custom_shiftLightsMethodEvent(idx) -- type your custom shiftlights method here return 2 end function global_custom_shiftLightsBU0710Event(idx) -- type your custom shiftlights method for BU0710 device only here return 2 end function global_custom_leftDigitsEvent(swPosition) -- type your custom script related to left SLI-PRO digits panel here return 2 end function global_custom_rightDigitsEvent(swPosition) -- type your custom script related to right SLI-PRO digits panel here return 2 end function global_custom_spdLmtMethodEvent(idx) -- type your custom speedlimiter method here return 2 end -- ================================ -- SIM RACE Deluxe, SLI-PRO, SLI-M, BU0710 SUPPORT function global_custom_gearEvent(gear) -- type your custom gear event script here return 2 end function global_custom_ledEvent(idx, ledFunction, state) -- type your custom script on session ending, here return 2 end -- ================================ -- LOGITECH G27 SUPPORT function global_custom_shiftLightsG27LedsMethodEvent(idx) -- type your custom shiftlights method for G27 device only here return 2 end function global_custom_ospG27MethodEvent(idx) -- type your custom Optimal Shift Points (OSP) method here return 2 end function global_custom_spdLmtG27MethodEvent(idx) -- type your custom speedlimiter method here return 2 end -- ================================ -- FANATEC WHEELS SUPPORT function global_custom_shiftLightsFanatecMethodEvent(idx) -- type your custom shiftlights method for Fanatec device only here return 2 end function global_custom_fanatecDigitsEvent(swPosition) -- type your custom script related to Fanatec digits panel here return 2 end function global_custom_ospFanatecMethodEvent(idx) -- type your custom Optimal Shift Points (OSP) method here return 2 end function global_custom_spdLmtFanatecMethodEvent(idx) -- type your custom Optimal Shift Points (OSP) method here return 2 end function global_custom_gearFanatecEvent(gear) -- type your custom gear event script here return 2 end -- ================================ -- SIM RACE DELUXE SUPPORT function global_custom_shiftLightsSRDlxMethodEvent(idx) -- type your custom script related to right SLI-PRO digits panel here return 2 end function global_custom_srdlxLeftDigitsEvent(swPosition) -- type your custom script related to left SLI-PRO digits panel here return 2 end function global_custom_srdlxRightDigitsEvent(swPosition) -- type your custom script related to right SLI-PRO digits panel here return 2 end function global_custom_ospSRDlxMethodEvent(idx) -- type your custom Optimal Shift Points (OSP) method here return 2 end function global_custom_spdLmtSRDlxMethodEvent(idx) -- type your custom Optimal Shift Points (OSP) method here return 2 end -- ================================ -- SIM RACE F1 SUPPORT function global_custom_shiftLightsSRF1MethodEvent(idx) -- type your custom script related to right SLI-PRO digits panel here return 2 end function global_custom_srf1LeftDigitsEvent(swPosition) -- type your custom script related to left SLI-PRO digits panel here return 2 end function global_custom_srf1RightDigitsEvent(swPosition) -- type your custom script related to right SLI-PRO digits panel here return 2 end function global_custom_ospSRF1MethodEvent(idx) -- type your custom Optimal Shift Points (OSP) method here return 2 end function global_custom_spdLmtSRF1MethodEvent(idx) -- type your custom Optimal Shift Points (OSP) method here return 2 end