Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COR.lua - Luzaf issues - Attempt to concatenate a boolean value #71

Closed
ValafarXI opened this issue Oct 7, 2014 · 2 comments
Closed

Comments

@ValafarXI
Copy link

Hey folks,

I've been playing around with COR .lua's and Kinematics' has been a great one to reference, but it's kicking up an odd error for me when I use it:

Gearswap has detected an error in the user function self_command:
...)Windower4/addons/GearSwap/data/Kinematics_Cor.lua:342: attempt to concatenate a boolean value

In the script, line 342 reads:

msg = msg .. ', Roll Size: ' .. (state.LuzafRing.value and 'Large') or 'Small'

After some time looking through it, I'm unable to determine the problem or what a possible fix might be - any suggestions?
Interestingly, this error only occurs when the Luzaf ring variable (gs c toggle LuzafRing) is set to "off". While active, the script appears to run just fine.

Any help or fixes are greatly appreciated!

@Kinematics
Copy link
Owner

It's missing a set of parentheses. Should be:

    msg = msg .. ', Roll Size: ' .. ((state.LuzafRing.value and 'Large') or 'Small')

Will push a fix.

@Kinematics
Copy link
Owner

Fixed and merged in 2610b0c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants