Forum > Miscellaneous

[QUESTION] Error when adding custom race

<< < (3/6) > >>

schlumpf:
In CharacterCreate.lua, look at line 182. There is a variable name. Search the variable name. Add an entry for your race.

Moridhin:
Ok so this is the line 182:

--- Code: ---_G["CharacterCreateClassButton"..index.."NormalTexture"]:SetTexCoord(coords[1], coords[2], coords[3], coords[4]);
--- End code ---
What should i exactly do here,sorry not really good at this.

schlumpf:

--- Quote from: "Moridhin" ---Ok so this is the line 182:

--- Code: ---_G["CharacterCreateClassButton"..index.."NormalTexture"]:SetTexCoord(coords[1], coords[2], coords[3], coords[4]);
--- End code ---
What should i exactly do here,sorry not really good at this.
--- End quote ---
The error states that coords is a nil value. Look at the lines above, where coords is set and how it is set.

Moridhin:
This is two above lines:

--- Code: ---for i=1, select("#", ...), 3 do
coords = RACE_ICON_TCOORDS[strupper(select(i+1, ...).."_"..gender)];
--- End code ---
It is a function:"CharacterCreateEnumerateRaces".

schlumpf:

--- Quote from: "Moridhin" ---This is two above lines:

--- Code: ---for i=1, select("#", ...), 3 do
coords = RACE_ICON_TCOORDS[strupper(select(i+1, ...).."_"..gender)];
--- End code ---
It is a function:"CharacterCreateEnumerateRaces".
--- End quote ---
So you want to search for RACE_ICON_TCOORDS now, as that seems to be a nil value for your race.
It might be in a different file.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version