wow-rp-addons / XRP

XRP Roleplay Profiles is an addon for World of Warcraft character profiles displayed in-game.
GNU General Public License v3.0
4 stars 0 forks source link

This popped up when I logged today #22

Closed Wyr3d closed 5 years ago

Wyr3d commented 5 years ago

Message: Interface\AddOns\XRP\Backend\MSP.lua:52: Usage: GetAutoCompleteResults(text, numResults, cursorPosition, allowFullMatch, includeBitField, excludeBitField) Time: Thu Dec 13 18:59:46 2018 Count: 1 Stack: Interface\AddOns\XRP\Backend\MSP.lua:52: Usage: GetAutoCompleteResults(text, numResults, cursorPosition, allowFullMatch, includeBitField, excludeBitField) Interface\AddOns\XRP\Backend\MSP.lua:52: in function <Interface\AddOns\XRP\Backend\MSP.lua:46> [C]: in function `xpcall' Interface\AddOns\XRP\Backend\GameEvents.lua:70: in function <Interface\AddOns\XRP\Backend\GameEvents.lua:67>

Locals:

Beeps commented 5 years ago

Looks like GetAutoCompleteResults had a new parameter jammed into the middle of it - allowFullMatch. If you want to get dirty, you can change that line to for i, character in ipairs(GetAutoCompleteResults("", 0, 1, true, AUTO_COMPLETE_ACCOUNT_CHARACTER, 0)) do Which will stop the error from happening. May or may not function as previously intended, since I'm not 100% clear how the "full match" feature worked before.

Keazra commented 5 years ago

I get these errors when I log in as well:

Message: Interface\AddOns\XRP\Interface\Viewer\Viewer.lua:484: <unnamed>:SetAllPoints(): Couldn't find region named 'XRPViewerTitleBg'
Time: Tue Jan  1 19:54:50 2019
Count: 1
Stack: Interface\AddOns\XRP\Interface\Viewer\Viewer.lua:484: <unnamed>:SetAllPoints(): Couldn't find region named 'XRPViewerTitleBg'
[C]: in function `SetAllPoints'
Interface\AddOns\XRP\Interface\Viewer\Viewer.lua:484: in function <Interface\AddOns\XRP\Interface\Viewer\Viewer.lua:468>
[C]: in function `xpcall'
Interface\AddOns\XRP\Backend\Settings\Settings.lua:126: in function <Interface\AddOns\XRP\Backend\Settings\Settings.lua:124>
[C]: in function `xpcall'
Interface\AddOns\XRP\Backend\GameEvents.lua:70: in function <Interface\AddOns\XRP\Backend\GameEvents.lua:67>

Locals:

and

Message: Interface\AddOns\XRP\Backend\MSP.lua:52: Usage: GetAutoCompleteResults(text, numResults, cursorPosition, allowFullMatch, includeBitField, excludeBitField)
Time: Tue Jan  1 19:54:50 2019
Count: 1
Stack: Interface\AddOns\XRP\Backend\MSP.lua:52: Usage: GetAutoCompleteResults(text, numResults, cursorPosition, allowFullMatch, includeBitField, excludeBitField)
[C]: in function `GetAutoCompleteResults'
Interface\AddOns\XRP\Backend\MSP.lua:52: in function <Interface\AddOns\XRP\Backend\MSP.lua:46>
[C]: in function `xpcall'
Interface\AddOns\XRP\Backend\GameEvents.lua:70: in function <Interface\AddOns\XRP\Backend\GameEvents.lua:67>

Locals: <none>

They don't ever appear again but still, figured I'd show it off.

Wyr3d commented 5 years ago

@Beeps Hey there,

I edited the file as suggested earlier today, and I no longer get the lua errors. It appears to have fixed the issue, but I won't know for certain until after more extensive testing. Thanks for the help ^^