Modcraft - The community dedicated to quality WoW modding!
Wrath of the Lich King Modding => Miscellaneous => Topic started by: Deuzz on August 01, 2015, 06:51:58 pm
-
Hey,
I have a Problem with custom races.
A friend added 4 races into the Server for me and I want to add some more using a tutorial from emudevs.
After I edited the Client and Server files (yes, I edited the SharedDefinition.h) and added them to the patch, I always get an error after going to the character selection.
This is the error which I always get: http://puu.sh/jlvuF/b9a79bde40.jpg (http://puu.sh/jlvuF/b9a79bde40.jpg" onclick="window.open(this.href);return false;)
And now I don't know what I've made wrong ;~;
This is the Code part from the CharacterCreate.lua around line 188-193.
for i=1, select("#", ...), 3 do
coords = RACE_ICON_TCOORDS[strupper(select(i+1, ...).."_"..gender)];
_G["CharacterCreateRaceButton"..index.."NormalTexture"]:SetTexCoord(coords[1], coords[2], coords[3], coords[4]);
_G["CharacterCreateRaceButton"..index.."PushedTexture"]:SetTexCoord(coords[1], coords[2], coords[3], coords[4]);
button = _G["CharacterCreateRaceButton"..index];
button:Show();
Please help me :c
Kind regards
-
From my past and current trials of creating races, I noticed that the lua errors you get in game isn't always what is causing an error. It's something that you edited that caused the function or other lua code to not work properly.
So with the information provided from the original post, I don't believe we can help you much.
You would need to post all of the files that you've edited (pastebin preferred) and link the emudevs guide you've followed.
Thank You!
-
Okay, I made some changes and now I see this:
http://puu.sh/jmsLl/73f7982b41.jpg (http://puu.sh/jmsLl/73f7982b41.jpg" onclick="window.open(this.href);return false;)
CharacterCreate.lua: http://pastebin.com/5gnANugs (http://pastebin.com/5gnANugs" onclick="window.open(this.href);return false;)
CharacterCreate.xml: http://pastebin.com/SNn9X0u8 (http://pastebin.com/SNn9X0u8" onclick="window.open(this.href);return false;)
GlueParent.lua: http://pastebin.com/r4cs8USA (http://pastebin.com/r4cs8USA" onclick="window.open(this.href);return false;)
GlueString.lua: http://pastebin.com/t9FjAbQN (http://pastebin.com/t9FjAbQN" onclick="window.open(this.href);return false;) (Only the part I added there)
Goblin and Naga are working but Tuskarr and Taunka not :/
Edit// Forgot to add the guide link http://emudevs.com/showthread.php/121-H ... stom-Races (http://emudevs.com/showthread.php/121-How-to-Custom-Races" onclick="window.open(this.href);return false;)!
-
anyone? :c
-
That means that the coordinates for the image are not set or wrong.
-
It's not the coords that are the problem, it's the number of races. The coords grab the number of races, then grab the icon coordinates, then set the icon textures accordingly. Problem is, you have 16 coordinates but max races set to 14.
Coordinates that you have 16 different races of:
["HUMAN_MALE"] = {0, 0.125, 0, 0.25},
Max races you have set:
MAX_RACES = 14;
Change the number of max races and let us know how it goes.
-
Okay, changed max races to 16 but the 2 race Buttons disappeared completely now :/