lindenkron
OG
I logged in with the addon - and all it seem to do is spam: "Too many in friends list, removing 17" - FOREVER... what's going on
the new addon has lvl requirements to work now also. you have to be above lvl 5 to talk.
Date: 2011-10-26 23:41:17
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\F2PAddon\f2pdata.lua line 238:
bad argument #1 to 'pairs' (table expected, got nil)
Debug:
[C]: ?
[C]: pairs()
F2PAddon\f2pdata.lua:238: F2PData_BuildDBSkeleton()
F2PAddon\f2paddon.lua:37:
F2PAddon\f2paddon.lua:32
AddOns:
Swatter, v3.2.4 (<%codename%>)
ACP, v3.3.16
Babylonian, v5.1.DEV.312(/embedded)
BadBoy, vv6.532
Bagnon, v4.2.9
BagnonForever, v
BagnonTooltips, v
Bartender4, v4.4.19
BattlegroundTargets, v40200-12
ButtonFacade, v4.2.375
Chinchilla, v2.4.2
ComboPointsRedux, v2.2.2
Configator, v5.1.DEV.312(/embedded)
eAlign, v
F2PAddon, v1.2.3b
FishingBuddy, v1.0.6a
Gatherer, v3.2.4
Gladius, vv2.0.16-beta
Grid, v4.2.0.1442
Icicle, v0.9.2
kgPanels, v1.6
LoseControl, v4.21
Masque, v4.2.375
MasqueCaith, v4.2.76
MikScrollingBattleText, v5.6.108
OmniCC, v4.2.3
PitBull4, vv4.0.0-beta29
PitBull4Aggro, vv4.0.0-beta29
PitBull4Aura, vv4.0.0-beta29
PitBull4CastBar, vv4.0.0-beta29
PitBull4CastBarLatency, vv4.0.0-beta29
PitBull4CombatFader, vv4.0.0-beta29
PitBull4HealthBar, vv4.0.0-beta29
PitBull4HideBlizzard, vv4.0.0-beta29
PitBull4HostilityFader, vv4.0.0-beta29
PitBull4LeaderIcon, vv4.0.0-beta29
PitBull4LuaTexts, vv4.0.0-beta29
PitBull4ManaSpark, vv4.0.0-beta29
PitBull4PhaseIcon, vv4.0.0-beta29
PitBull4PowerBar, vv4.0.0-beta29
PitBull4PvPIcon, vv4.0.0-beta29
PitBull4RangeFader, vv4.0.0-beta29
PitBull4RoleIcon, vv4.0.0-beta29
PitBull4Sounds, vv4.0.0-beta29
PitBull4VisualHeal5, vv4.0.0-beta29
PowerAuras, v4.22
Prat30, v3.4.24
Prat30Libraries, v
Quartz, v3.0.7
SaySapped, v2011-07-01
Skada, v1.3-7
SkadaAbsorbs, v1.0
SkadaCC, v1.0
SkadaDamage, v1.0
SkadaDamageTaken, v1.0
SkadaDeaths, v1.0
SkadaDebuffs, v1.0
SkadaDispels, v1.0
SkadaEnemies, v1.0
SkadaHealing, v1.0
SkadaPower, v1.0
SkadaThreat, v1.0
SlideBar, v3.2.4 (<%codename%>)
SmartTargeting, v1.10
TidyPlates, v6.3.8 (R307)
TidyPlatesGraphite, v
TidyPlatesGrey, v
TidyPlatesNeon, v
TidyPlatesQuatre, v
TidyPlatesHub, v
TinyTip, vv2.08
xanErrorDevourer, v1.2
BlizRuntimeLib_enUS v4.2.2.40200 <us>
(ck=765)
The part of the F2PData_BuildDBSkeleton() function that is throwing up the error, is there to clear out incompatable data that might be left in the database from an older version of the addon.
However the function isn't working if you're on more than one realm, as it isn't building the proper database skeleton for realms you join after the first. It's not putting a blank table in for the alts you might have on the 2nd, 3rd, etc realm, so the part that checks those tables for old data isn't finding the table it expects.
I'll get this fixed for the next version of the addon, but that might not be released for a while, as I want to get a couple of new features added before then.
As yet, there's nothing else in the addon that actually reads the database, so it won't matter for the moment that yours doesn't have data for every realm you join (and it'll get added when you update to a newer version that needs the data anyway).
For now if you want to get rid of the errors, you can fix the F2PData_BuildDBSkeleton() function by changing the part that looks like this (at the end of the f2pdata file. The comments after '--' might be different to yours):
Code:function F2PData_BuildDBSkeleton() if (F2PAddon_Variables == nil) then --if the complete table is blank, as when the addon is first installed F2PAddon_Variables = { ["Alts"] = { [thisRealm] = {}, }, ["Realms"] = { [thisRealm] = { [myFaction] = {}, }, }, } end if (F2PAddon_Variables.Realms[thisRealm][myFaction] == nil) then --if the data for this realm and faction doesn't exist, F2PAddon_Variables.Realms[thisRealm][myFaction] = {} --add a new blank table for it end for i, v in pairs(F2PAddon_Variables.Alts[thisRealm]) do --clears out the alts data if the database contains the old 'name = false' format if i == myName and v == false then F2PAddon_Variables.Alts[thisRealm] = {} end end if not tContains(F2PAddon_Variables.Alts[thisRealm], myName) then tinsert(F2PAddon_Variables.Alts[thisRealm], myName) end end
to this:
Code:function F2PData_BuildDBSkeleton() if (F2PAddon_Variables == nil) then --if the complete table is blank, as when the addon is first installed F2PAddon_Variables = { --make this it's basic structure ["Alts"] = { [thisRealm] = {}, }, ["Realms"] = { [thisRealm] = { [myFaction] = {}, }, }, } end if (F2PAddon_Variables.Alts[thisRealm] == nil) then --if the Alts data for this realm doesn't exist F2PAddon_Variables.Alts[thisRealm] = {} --add a new blank table for it end if (F2PAddon_Variables.Realms[thisRealm] == nil) then --if the data for this realm doesn't exist, F2PAddon_Variables.Realms[thisRealm] = {} --add a new blank table for it end if (F2PAddon_Variables.Realms[thisRealm][myFaction] == nil) then --if the data for this faction doesn't exist for this realm, F2PAddon_Variables.Realms[thisRealm][myFaction] = {} --add a new blank table for it end for i, v in pairs(F2PAddon_Variables.Alts[thisRealm]) do --clears out the alts data if the database contains the old 'name = false' format if i == myName and v == false then F2PAddon_Variables.Alts[thisRealm] = {} end end if not tContains(F2PAddon_Variables.Alts[thisRealm], myName) then tinsert(F2PAddon_Variables.Alts[thisRealm], myName) end end
I've got to take into consideration that P2Ps can send to the channel without the addon, and they're the ones most likely to be trolling, so I can't just rely on stopping the message at the senders end. [...] 1.2.4 will still show messages sent from the old versions, but it will be sending chat and addon messages to 2 completly new addon channels, specifically for those types of messages.
minimexx said:Alright heres whats going down, i have both add ons F2PAddon and F2PI addon, when i run both at the same time i can talk but I don't see anyones chat and have no friends, when I run just F2PI i can see everyones chat but when i try to chat it says you have no permission to speak. When i run just F2PAddon i can speak and everyone can see me but i can't see any chat. I am in the channel f2ptwink and still have had no friends added to my list and all that other crap. Thanks