Bug Report: % Symbol
Hello. Using the latest version of WoW UI Designer. Found a problem with how it parses LUA code.
Specifically, I have this piece of code... Code:
slot = ( aUnitNumber - 1 ) % 5 + 1; Don't know why, but WOW UI Designer doesn't like to see a "%" character in LUA code, which is as far as I know, a valid math symbol in LUA (http://www.lua.org/manual/5.1/manual.html#2.5.1 ). |
Try using:
Code:
mod(value, modulus) |
It was probably built with 5.0, which is what WoW started out with. % used to be the upvalue operator, and in 5.0 it didn't exist at all. In 5.1, it became the modulus operator.
Look for a lua/luac.exe in the program folder and see if you can't update it to 5.1. If all else fails, math.mod() is a valid solution. |
I tested around with it a bit and it's not just WoWUI Builder. Scite throws the same error when compiling :(
|
Quote:
|
Quote:
Does anyone know if this add-on still being ACTIVELY developed? |
I will update with this fix when I have completed some other work and made sure that I can upload executables with the current crack down.
Nulk |
Quote:
|
This is not a mod, though. It is a program and a featured item on this site.
|
All times are GMT -6. The time now is 09:15 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI