Xander9009 wrote:nivmizzet1 wrote:[lua] [string "_MANAGER_PLANESWALKERS_TITLE (RESOLUTION_TIME_ACTION)~0x00000e9f"]:2: attempt to index a nil value
Unfortunately, this is too vague of an error to be of much help tracking down what caused it. For most cards, this would be enough, but the planeswalker manager card has 18 possible lines this might be referring to, and all 18 of them appear to properly check for nil values before using those values, which is the way you would normally prevent this error. So, if it happens really often, then let me know and I'll be sure to thoroughly test each line, but the error itself is harmless as long as the planeswalkers worked properly.
Looking at it, the most suspicious line to me is line 428:
- Code: Select all
if TriggerObject() ~= nil and TriggerObject():GetCardType():Test(CARD_TYPE_PLANESWALKER) then
Here you check to make sure TriggerObject is not nil, but you don't check to make sure that TriggerObject():GetCardType() is not nil. Granted it shouldn't be given the code, but there is a minute possibility.
Also note there are only 16 possible lines (43, 47, 79, 82, 92, 95, 119, 145, 255, 286, 298, 330, 359, 371, 414, and 428) because lines 156 and 178 can't even be considered since their entire ability is commented out. Additionally some other lines can also be ignored:
- 79, 82 & 95 since the only object they use is MTG().
- 119 is commented out.
- 286 since no object is indexed.
A few other lines can most likely be ruled out:
- 43 & 92 since the only object indexed is LinkedDC() and both abilities have linked_ability_group set to 1.
- 47, 298, 330, 359 & 371 are unlikely because they use standard nil detection techniques before indexing.
- 145 is unlikely because FilteredCard() is checked and MTG() should never be nil.
- 255 the code in PLW_MyDuelDC() is set to always return a chest (much like other DC functions).
- 414 is extremely unlikely unless EffectDC() turns out to be nil (when it is originally set on line 376).
This leaves line 428 as the most likely line.