Just a heads up that I finished working on the "LoadLua" function and I sent it to a couple profile developers to test...If all goes well (and it went fine with my internal testing) I suspect I will release it tomorrow. It will still only load files that have a PQR_ prefix and a .lua suffix.
The reason for this change is because if 12 Lua files were in the Data folder then all 12 would be loaded even if a profile was not being used... seemed unnecessary.
Here is the function info:
PQR_LoadLua(fileName, forceRun) - Returns true if the file was run/loaded/already ran, returns false otherwise. If forceRun is true then it will run the lua file again even if it has already been previously run.
Ideally you would want to put this in your initialize so it only runs once per session/rotation start:
Code:
if PQR_LoadLua("PQR_Bubba_Data.lua") == false then
PQR_WriteToChat("You are missing PQR_Bubba_Data.lua. Rotation has been stopped.", "Error")
PQR_StopRotation()
return true
end
If you would like to get your profiles ready to go now so they work in 2.0.9 and 2.0.10 just do the following:
Code:
if PQR_LoadLua ~= nil then
--Code above here
end
And sorry ahead of time for breaking any profiles, but it was necessary. D: