Search The Support Knowledgebase


(database of technical support questions and answers):
   

Author Topic: Script help - ONE_SWITCH

Offline dampfish

  • Standard Subscription
  • Newbie
  • *
  • *
  • Posts: 2
Script help - ONE_SWITCH
« on: May 05, 2020, 11:48:44 AM »
Hi,

I cannot find any documentation about scripting, so apologies in advance if this is a case of RTFM.

I want to use one switch connected to the SLIPRO to change both left and right displays. I've followed the steps here https://www.eksimracing.org/forum/index.php?topic=2597.msg11876#msg11876.

I can see the "One Switch" scripts from the package in the list of scripts, so they appear to have installed correctly. The default is that  "sw_updown_left_display" is S1 on the SLIPRO, however....

None of the SLIPRO switches will change the left or right display, although I can of course assign an SLIPRO switch directly to the "btn_up_left_display" and the left display increments fine, so it just seems to be that the script is not recognising that an SLIPRO switch has been triggered.

It's driving me nuts, any help gratefully received.

« Last Edit: May 05, 2020, 01:11:36 PM by Software Support Staff »
  • My SLI Devices List:
    SLI-PRO

Offline Software Support Staff

  • Management
  • Master Guru
  • *
  • *
  • Posts: 3232
    • eksimracing website
Re: Script help - ONE_SWITCH
« Reply #1 on: May 05, 2020, 12:21:36 PM »
Hello,

Thanks for your inquiry, you're talking about an archived topic dating from November 07, 2014! (over 5+ years ago) ;)
Unfortunately we no longer provide a software support on lua scripting and if you do a clean install of SLIMax Manager Pro this script is no longer included with the standard package since a while.

- A combo config includes a setup (.cfg) + a lua script and must have the same name with the suffix "_combo" (i.e. slipro_oneswitch_combo.cfg + slipro_oneswitch_combo.lua)

- The config files included in the One_Switch_To_Rule_Them_All_v4.pkg on this very old topic are outdated and may corrupt your installation of SLIMax Mgr Pro

- A .pkg file is simply a .zip file so I suggest to rename it to get access to the cfg and lua script related to your SLI-PRO device and understand how the script "one_switch_to_rule_them_all.lua" works and how it interacts with the SLI-PRO combo config.

- by the way, Zappadoc did a great job with SLIMax Manager to maintain the backward compatibility over the past decade and I just did a test by curiousity, it works "as is"! :)

extract the pkg,
copy slipro_oneswitch_combo.cfg in documents/SLIMax Manager Pro/cfg/ directory
copy one_switch_to_rule_them_all.lua + slipro_oneswitch_combo.lua in SLIMax Manager Pro/scripts/ directory
run SLIMax and select the slipro_oneswitch_combo setup
run a simulation/game and go on track
play with switch wired to slot 1 (SW1) of the SLI-PRO device and both panels info are changing accordingly

hope this helps

Feel free to create a new topic not related to scripting if you need assistance.
Regards,
EKSIMRacing Staff
REMINDER: contact your hardware supplier/manufacturer for hardware issue, this support area is for software assistance only. Read the rules. Thank you.

Offline dampfish

  • Standard Subscription
  • Newbie
  • *
  • *
  • Posts: 2
Re: Script help - ONE_SWITCH
« Reply #2 on: May 05, 2020, 08:03:16 PM »
Thank you :) I did wonder if I was being a bit optimistic.

I will try as you suggest. I think I probably came close with my trial and error experiments, because I'd noticed in the post from the update edit in 2016, you did mention the package contained outdated CFGs, so I had worked out how to extract only the scripts and install those but I missed the critical link between the CFG name and the script name, so will experiment with that.

Many thanks
  • My SLI Devices List:
    SLI-PRO