Is this being worked on? Currently I get a error dialog every time I teleport or start the game. Not sure which add-on I use is dependent on DataStore for me to disable it for now.
If it is being worked on, I'll just be patient and wait. Otherwise, I will start narrowing down which add on is causing it.
Seems that the function GetFactionById might be gone ??
Adding the folloiwng code before the AddFaction function seems to fix it :
-- Returns a list of faction data compatible with the deprecated GetFactionInfo and GetFactionInfoByID
local GetFactionInfoWrapper = function(factionData)
if factionData then
return factionData.name, factionData.description, factionData.currentStanding, 0, 0, 0, factionData.atWarWith, factionData.canToggleAtWar, factionData.isHeader, factionData.isCollapsed, false, factionData.isWatched, factionData.isChild, factionData.factionID, factionData.hasBonusRepGain, false;
end
return nil;
end
-- Wrapper function for C_Reputation.GetFactionDataByID for the deprecated GetFactionInfoByID
local GetFactionInfoByID = GetFactionInfoByID or function(factionId)
return GetFactionInfoWrapper(C_Reputation.GetFactionDataByID(factionId));
end
Hi,
LUA Error : Date: 2024-07-24 10:51:55 ID: 1 Error occured in: Global Count: 1 Message: ...dOns/DataStore_Reputations/DataStore_Reputations.lua line 36: attempt to call upvalue 'GetFactionInfoByID' (a nil value) Debug: [string "@Interface/AddOns/DataStore_Reputations/DataStore_Reputations.lua"]:36: AddFaction() [string "@Interface/AddOns/DataStore_Reputations/DataStore_Reputations.lua"]:183: in main chunk Locals: id = 1515 text = nil (temporary) = nil (temporary) = 1515 (*temporary) = "attempt to call upvalue 'GetFactionInfoByID' (a nil value)" GetFactionInfoByID = nil factions =
Is this being worked on? Currently I get a error dialog every time I teleport or start the game. Not sure which add-on I use is dependent on DataStore for me to disable it for now.
If it is being worked on, I'll just be patient and wait. Otherwise, I will start narrowing down which add on is causing it.
Seems that the function GetFactionById might be gone ??
Adding the folloiwng code before the AddFaction function seems to fix it :