Today
farangkao gave me an idea how to deal with missing account name in saved variables or maybe I should say how to deal with broken GetDisplayName() function.
Just put this code to the main chunk any of your .lua files:
Lua Code:
local displayName = GetDisplayName()
if displayName == nil or displayName == "" then
if GetNumGuilds() > 0 then
displayName = GetGuildMemberInfo(GetGuildId(1), GetPlayerGuildMemberIndex(GetGuildId(1)))
else
displayName = "@" .. GetCVar("AccountName")
end
end
function GetDisplayName()
return displayName
end
And voilą, your saved variables with @AccountName works again.