Dear visitor, welcome to Gaming Insight Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, March 20th 2011, 8:29pm

Attempt to index field 'stats' (a nil value) (Waiting)

4.75-r5456-alpha

Before and after combat with the Bear boss.

Date: 2011-03-20 12:26:08
ID: 2
Error occured in: Global
Count: 1
Message: ..\AddOns\DBM-Core\DBM-Core.lua line 1945:
attempt to index field 'stats' (a nil value)
Debug:
[C]: ?
DBM-Core\DBM-Core.lua:1945: StartCombat()
DBM-Core\DBM-Core.lua:1862:
DBM-Core\DBM-Core.lua:1857
(tail call): ?
DBM-Core\DBM-Core.lua:331:
DBM-Core\DBM-Core.lua:327

Date: 2011-03-20 12:28:29
ID: 3
Error occured in: Global
Count: 1
Message: ..\AddOns\DBM-Core\DBM-Core.lua line 2035:
attempt to perform arithmetic on field 'pull' (a nil value)
Debug:
[C]: ?
DBM-Core\DBM-Core.lua:2035:
DBM-Core\DBM-Core.lua:2004
(tail call): ?
DBM-Core\DBM-Core.lua:2101: OnMobKill()
DBM-Core\DBM-Core.lua:2108: ?()
DBM-Core\DBM-Core.lua:331:
DBM-Core\DBM-Core.lua:327
(tail call): ?
(tail call): ?
DBM-Core\DBM-Core.lua:331:
DBM-Core\DBM-Core.lua:327

2

Sunday, March 20th 2011, 9:10pm

Re: Zul'aman 4.1 bug

Cat boss pull:

Date: 2011-03-20 13:06:32
ID: 2
Error occured in: Global
Count: 1
Message: ..\AddOns\DBM-Core\DBM-Core.lua line 1945:
attempt to index field 'stats' (a nil value)
Debug:
[C]: ?
DBM-Core\DBM-Core.lua:1945: StartCombat()
DBM-Core\DBM-Core.lua:1862:
DBM-Core\DBM-Core.lua:1857
(tail call): ?
DBM-Core\DBM-Core.lua:331:
DBM-Core\DBM-Core.lua:327


Date: 2011-03-20 13:10:16
ID: 3
Error occured in: Global
Count: 1
Message: ..\AddOns\DBM-Core\DBM-Core.lua line 2035:
attempt to perform arithmetic on field 'pull' (a nil value)
Debug:
[C]: ?
DBM-Core\DBM-Core.lua:2035:
DBM-Core\DBM-Core.lua:2004
(tail call): ?
DBM-Core\DBM-Core.lua:2101: OnMobKill()
DBM-Core\DBM-Core.lua:2108: ?()
DBM-Core\DBM-Core.lua:331:
DBM-Core\DBM-Core.lua:327
(tail call): ?
(tail call): ?
DBM-Core\DBM-Core.lua:331:
DBM-Core\DBM-Core.lua:327

3

Sunday, March 20th 2011, 9:31pm

Re: Zul'aman 4.1 bug

it tried to access saved variable stats for fight and failed. It also tried to write a best kill time to settings on combat end and failed again. are file/folder permissions correct on your PTR wtf folder so there is read/write access?

4

Sunday, March 20th 2011, 10:19pm

Re: Zul'aman 4.1 bug

Yup, and the other bosses not mentioned here worked just fine.

5

Monday, March 21st 2011, 12:04am

Re: Zul'aman 4.1 bug

I can't explain or reproduce this, the stat field should never be nil. Can anyone else reproduce this?

6

Tuesday, March 22nd 2011, 11:18am

Re: Zul'aman 4.1 bug

Source code

1
2
3
4
5
6
7
8
9
savedStats[v.id] = savedStats[v.id] or {
	normalKills = 0, normalPulls = 0, heroicKills = 0, heroicPulls = 0, normal25Kills = 0, normal25Pulls = 0, heroic25Kills = 0, heroic25Pulls = 0
}
if not savedStats[v.id].normalPulls then
	savedStats[v.id] = {
		normalKills = 0, normalPulls = 0, heroicKills = 0, heroicPulls = 0, normal25Kills = 0, normal25Pulls = 0, heroic25Kills = 0, heroic25Pulls = 0
	}
end
v.stats = savedStats[v.id]


According to the code the stats field indeed should never be able to be nil.
- If there were already saved stats .. it takes the table from the savedVariables file.
- If the saved stats table is corrupt (table exists, but has no information) .. it creates a new table
- If there is no saved stats table .. it creates a new table
Requesting combatlogs + chatlogs (how to @ http://ninjapull.de/forumBridge/index.php?f=1&t=2691&p=31971&rb_v=viewtopic#p9577)

7

Thursday, March 24th 2011, 11:26pm

Re: Zul'aman 4.1 bug

Quoted from ""Arta""

Source code

1
2
3
4
5
6
7
8
9
savedStats[v.id] = savedStats[v.id] or {
	normalKills = 0, normalPulls = 0, heroicKills = 0, heroicPulls = 0, normal25Kills = 0, normal25Pulls = 0, heroic25Kills = 0, heroic25Pulls = 0
}
if not savedStats[v.id].normalPulls then
	savedStats[v.id] = {
		normalKills = 0, normalPulls = 0, heroicKills = 0, heroicPulls = 0, normal25Kills = 0, normal25Pulls = 0, heroic25Kills = 0, heroic25Pulls = 0
	}
end
v.stats = savedStats[v.id]


According to the code the stats field indeed should never be able to be nil.
- If there were already saved stats .. it takes the table from the savedVariables file.
- If the saved stats table is corrupt (table exists, but has no information) .. it creates a new table
- If there is no saved stats table .. it creates a new table


Note that it doesn't handle a possible corruption entirely correct; a table could lose all the data except for "normalPulls" but that is very unlikely and not the case here (as the error message indicates stats being nil)

8

Saturday, March 26th 2011, 9:31pm

Re: Zul'aman 4.1 bug

could this be caused by mods orignially thinking they had 4 modes (or 2) but then corrected to know the propper number? several cata mods were flagged wrong, such as baradin hold flagged as having 4 modes, but BWD flagged as having only 2, which is reversed, baradin hold has 2, and BWD has 4. so i updated toc files, but the wtf files user might have migh be missing modes (or have too many).

9

Saturday, March 26th 2011, 9:34pm

Re: Zul'aman 4.1 bug

Got the same error while trying to open the GUI

DBM 4.75 Alpha

Message: ..\AddOns\DBM-GUI\DBM-GUI.lua line 1902:
attempt to index field 'stats' (a nil value)


[C]: ?
DBM-GUI\DBM-GUI.lua:1902:
DBM-GUI\DBM-GUI.lua:1866
DBM-GUI\DBM-GUI.lua:2019:
UpdateModList() DBM-GUI\DBM-GUI.lua:64:
DBM-GUI\DBM-GUI.lua:52
(tail call): ?
DBM-Core\DBM-Core.lua:1083:
DBM-Core\DBM-Core.lua:1081

Talked with Omegal in game, he said that it might be a corrupted installation. What can be dangerous is that I got the install with curse client and if it is corrupting the installations you might have a lot of people with corrupted installations due to Curse Client.