CharacterCreateConfigurationBackground:SetVertexColor(backdropColor[4], backdropColor[5], backdropColor[6]);
-- Set backdrop colors based on faction local backdropColor = FACTION_BACKDROP_COLOR_TABLE[faction];
FACTION_BACKDROP_COLOR_TABLE = { ["Alliance"] = {0.5, 0.5, 0.5, 0.09, 0.09, 0.19}, ["Horde"] = {0.5, 0.2, 0.2, 0.19, 0.05, 0.05},};
message(faction)
if not faction then faction = "Alliance"; end
It says on line 302 backdropColor is said but is not defined.If you go to line 302 we see this:Code: [Select]CharacterCreateConfigurationBackground:SetVertexColor(backdropColor[4], backdropColor[5], backdropColor[6]);You can see backdropColor is indexed at locations 4, 5, and 6. Each time backdropColor is 'nil' so has no value. Thus the error.If we look up a bit we can see where backdropColor is defined:Code: [Select] -- Set backdrop colors based on faction local backdropColor = FACTION_BACKDROP_COLOR_TABLE[faction];So you need to modify where FACTION_BACKDROP_COLOR_TABLE is defined for the faction.At the top of the file we can see this:Code: [Select]FACTION_BACKDROP_COLOR_TABLE = { ["Alliance"] = {0.5, 0.5, 0.5, 0.09, 0.09, 0.19}, ["Horde"] = {0.5, 0.2, 0.2, 0.19, 0.05, 0.05},};So there is data for "Alliance" and "Horde" but not whatever you are passing in.If you add the following line of code on line 297 then it should tell you what is being passed into that table:Code: [Select]message(faction)You might also want to check if faction is nil.Code: [Select]if not faction then faction = "Alliance"; end
Quote from: "stoneharry"It says on line 302 backdropColor is said but is not defined.If you go to line 302 we see this:Code: [Select]CharacterCreateConfigurationBackground:SetVertexColor(backdropColor[4], backdropColor[5], backdropColor[6]);You can see backdropColor is indexed at locations 4, 5, and 6. Each time backdropColor is 'nil' so has no value. Thus the error.If we look up a bit we can see where backdropColor is defined:Code: [Select] -- Set backdrop colors based on faction local backdropColor = FACTION_BACKDROP_COLOR_TABLE[faction];So you need to modify where FACTION_BACKDROP_COLOR_TABLE is defined for the faction.At the top of the file we can see this:Code: [Select]FACTION_BACKDROP_COLOR_TABLE = { ["Alliance"] = {0.5, 0.5, 0.5, 0.09, 0.09, 0.19}, ["Horde"] = {0.5, 0.2, 0.2, 0.19, 0.05, 0.05},};So there is data for "Alliance" and "Horde" but not whatever you are passing in.If you add the following line of code on line 297 then it should tell you what is being passed into that table:Code: [Select]message(faction)You might also want to check if faction is nil.Code: [Select]if not faction then faction = "Alliance"; endHmm, I tried to do what you said but I still end up with the same error.Is it fine if u could try to fix it for me and then re-upload it to Pastebin?I would really appreciate that.
Quote from: "spiderwaseem"Quote from: "stoneharry"It says on line 302 backdropColor is said but is not defined.If you go to line 302 we see this:Code: [Select]CharacterCreateConfigurationBackground:SetVertexColor(backdropColor[4], backdropColor[5], backdropColor[6]);You can see backdropColor is indexed at locations 4, 5, and 6. Each time backdropColor is 'nil' so has no value. Thus the error.If we look up a bit we can see where backdropColor is defined:Code: [Select] -- Set backdrop colors based on faction local backdropColor = FACTION_BACKDROP_COLOR_TABLE[faction];So you need to modify where FACTION_BACKDROP_COLOR_TABLE is defined for the faction.At the top of the file we can see this:Code: [Select]FACTION_BACKDROP_COLOR_TABLE = { ["Alliance"] = {0.5, 0.5, 0.5, 0.09, 0.09, 0.19}, ["Horde"] = {0.5, 0.2, 0.2, 0.19, 0.05, 0.05},};So there is data for "Alliance" and "Horde" but not whatever you are passing in.If you add the following line of code on line 297 then it should tell you what is being passed into that table:Code: [Select]message(faction)You might also want to check if faction is nil.Code: [Select]if not faction then faction = "Alliance"; endHmm, I tried to do what you said but I still end up with the same error.Is it fine if u could try to fix it for me and then re-upload it to Pastebin?I would really appreciate that.It is impossible for it to be the same error if you tried what I said.
Quote from: "stoneharry"Quote from: "spiderwaseem"Quote from: "stoneharry"It says on line 302 backdropColor is said but is not defined.If you go to line 302 we see this:Code: [Select]CharacterCreateConfigurationBackground:SetVertexColor(backdropColor[4], backdropColor[5], backdropColor[6]);You can see backdropColor is indexed at locations 4, 5, and 6. Each time backdropColor is 'nil' so has no value. Thus the error.If we look up a bit we can see where backdropColor is defined:Code: [Select] -- Set backdrop colors based on faction local backdropColor = FACTION_BACKDROP_COLOR_TABLE[faction];So you need to modify where FACTION_BACKDROP_COLOR_TABLE is defined for the faction.At the top of the file we can see this:Code: [Select]FACTION_BACKDROP_COLOR_TABLE = { ["Alliance"] = {0.5, 0.5, 0.5, 0.09, 0.09, 0.19}, ["Horde"] = {0.5, 0.2, 0.2, 0.19, 0.05, 0.05},};So there is data for "Alliance" and "Horde" but not whatever you are passing in.If you add the following line of code on line 297 then it should tell you what is being passed into that table:Code: [Select]message(faction)You might also want to check if faction is nil.Code: [Select]if not faction then faction = "Alliance"; endHmm, I tried to do what you said but I still end up with the same error.Is it fine if u could try to fix it for me and then re-upload it to Pastebin?I would really appreciate that.It is impossible for it to be the same error if you tried what I said.Ok, I tried again and I got this error below.That is the error I get when I click on the Undead :http://i.imgur.com/uFIjRfh.jpg
Quote from: "spiderwaseem"Quote from: "stoneharry"Quote from: "spiderwaseem"Quote from: "stoneharry"It says on line 302 backdropColor is said but is not defined.If you go to line 302 we see this:Code: [Select]CharacterCreateConfigurationBackground:SetVertexColor(backdropColor[4], backdropColor[5], backdropColor[6]);You can see backdropColor is indexed at locations 4, 5, and 6. Each time backdropColor is 'nil' so has no value. Thus the error.If we look up a bit we can see where backdropColor is defined:Code: [Select] -- Set backdrop colors based on faction local backdropColor = FACTION_BACKDROP_COLOR_TABLE[faction];So you need to modify where FACTION_BACKDROP_COLOR_TABLE is defined for the faction.At the top of the file we can see this:Code: [Select]FACTION_BACKDROP_COLOR_TABLE = { ["Alliance"] = {0.5, 0.5, 0.5, 0.09, 0.09, 0.19}, ["Horde"] = {0.5, 0.2, 0.2, 0.19, 0.05, 0.05},};So there is data for "Alliance" and "Horde" but not whatever you are passing in.If you add the following line of code on line 297 then it should tell you what is being passed into that table:Code: [Select]message(faction)You might also want to check if faction is nil.Code: [Select]if not faction then faction = "Alliance"; endHmm, I tried to do what you said but I still end up with the same error.Is it fine if u could try to fix it for me and then re-upload it to Pastebin?I would really appreciate that.It is impossible for it to be the same error if you tried what I said.Ok, I tried again and I got this error below.That is the error I get when I click on the Undead :http://i.imgur.com/uFIjRfh.jpgNothing is displaying so I guess faction is returning nil.Try adding this above the message:Code: [Select]if not faction then faction = "Alliance"; end
Quote from: "stoneharry"Quote from: "spiderwaseem"Quote from: "stoneharry"Quote from: "spiderwaseem"Quote from: "stoneharry"It says on line 302 backdropColor is said but is not defined.If you go to line 302 we see this:Code: [Select]CharacterCreateConfigurationBackground:SetVertexColor(backdropColor[4], backdropColor[5], backdropColor[6]);You can see backdropColor is indexed at locations 4, 5, and 6. Each time backdropColor is 'nil' so has no value. Thus the error.If we look up a bit we can see where backdropColor is defined:Code: [Select] -- Set backdrop colors based on faction local backdropColor = FACTION_BACKDROP_COLOR_TABLE[faction];So you need to modify where FACTION_BACKDROP_COLOR_TABLE is defined for the faction.At the top of the file we can see this:Code: [Select]FACTION_BACKDROP_COLOR_TABLE = { ["Alliance"] = {0.5, 0.5, 0.5, 0.09, 0.09, 0.19}, ["Horde"] = {0.5, 0.2, 0.2, 0.19, 0.05, 0.05},};So there is data for "Alliance" and "Horde" but not whatever you are passing in.If you add the following line of code on line 297 then it should tell you what is being passed into that table:Code: [Select]message(faction)You might also want to check if faction is nil.Code: [Select]if not faction then faction = "Alliance"; endHmm, I tried to do what you said but I still end up with the same error.Is it fine if u could try to fix it for me and then re-upload it to Pastebin?I would really appreciate that.It is impossible for it to be the same error if you tried what I said.Ok, I tried again and I got this error below.That is the error I get when I click on the Undead :http://i.imgur.com/uFIjRfh.jpgNothing is displaying so I guess faction is returning nil.Try adding this above the message:Code: [Select]if not faction then faction = "Alliance"; endok, So Now it looks like this : -- Set backdrop colors based on faction if not faction then faction = "Alliance"; end message(faction) local backdropColor = FACTION_BACKDROP_COLOR_TABLE[faction]; local frame; for index, value in pairs(FRAMES_TO_BACKDROP_COLOR) do frame = _G[value]; frame:SetBackdropColor(backdropColor[4], backdropColor[5], backdropColor[6]); end CharacterCreateConfigurationBackground:SetVertexColor(backdropColor[4], backdropColor[5], backdropColor[6]); local backgroundFilename = GetCreateBackgroundModel(); SetBackgroundModel(CharacterCreate, backgroundFilename);endAnd in game it gives me this when I click on Undead :PICTURE : http://i.imgur.com/vwHBNXe.jpgAny other Ideas?