Forum > Tutorials
[TUTORIAL] Creating a shell of a class!
<< < (9/17) > >>
Diemen:
I think you need to look into your Class.dbc for the Bloodelf line. Looks like there is an error in it. And also this error you see gibes alot of information about the problem. Take a look at your xml file. When i'm home i can take a look for you if you like.
Also look into your server database Table PlayerCreateinfo Maybe you didn't add a line for Bloodelfs.
XxXGenesisXxX:
--- Quote from: "lawrytrix" ---Thanks for the answer. The thing is: only if I want to create the new class with a blood elf the error appears. When I try it with a human the error does not appear but something different.
The background of the character-creation window gets black and I can´t do anything. I don´t know what to do with this error. --- End quote ---
That error means the class works but you haven't set it up to display the icon on the button for the create screen. It means you have to add a new line at the bottom of this:
--- Code: ---CLASS_ICON_TCOORDS = { ["WARRIOR"] = {0, 0.25, 0, 0.25}, ["MAGE"] = {0.25, 0.49609375, 0, 0.25}, ["ROGUE"] = {0.49609375, 0.7421875, 0, 0.25}, ["DRUID"] = {0.7421875, 0.98828125, 0, 0.25}, ["HUNTER"] = {0, 0.25, 0.25, 0.5}, ["SHAMAN"] = {0.25, 0.49609375, 0.25, 0.5}, ["PRIEST"] = {0.49609375, 0.7421875, 0.25, 0.5}, ["WARLOCK"] = {0.7421875, 0.98828125, 0.25, 0.5}, ["PALADIN"] = {0, 0.25, 0.5, 0.75}, ["DEATHKNIGHT"] = {0.25, 0.49609375, 0.5, 0.75}, --- End code ---
So for example if I had a necromancer class and I wanted to use the warriors icon I would use this:
--- Code: ---CLASS_ICON_TCOORDS = { ["WARRIOR"] = {0, 0.25, 0, 0.25}, ["MAGE"] = {0.25, 0.49609375, 0, 0.25}, ["ROGUE"] = {0.49609375, 0.7421875, 0, 0.25}, ["DRUID"] = {0.7421875, 0.98828125, 0, 0.25}, ["HUNTER"] = {0, 0.25, 0.25, 0.5}, ["SHAMAN"] = {0.25, 0.49609375, 0.25, 0.5}, ["PRIEST"] = {0.49609375, 0.7421875, 0.25, 0.5}, ["WARLOCK"] = {0.7421875, 0.98828125, 0.25, 0.5}, ["PALADIN"] = {0, 0.25, 0.5, 0.75}, ["DEATHKNIGHT"] = {0.25, 0.49609375, 0.5, 0.75}, ["NECROMANCER"] = {0, 0.25, 0, 0.25}, --- End code ---
If you look back at the CharacteCreate.lua section of the guide it covers this and how to make your own custom icon for it.
As for the Blood Elf, I could bet money that the background isn't just black, but in the bottom left corner there will be a blue and white checkered box. I have had that a few times when using the Death Knight class ID in previous attempts. What is the "Filestring" name of your class in the CharClasses.dbc? The class name in Capitals. Also does it only do it to Blood Elves for your custom class or all? Test if it's any other class and/or Death Knight that does it as well.
lawrytrix:
Okay, I got that but now there is a new error-.-* :D
XxXGenesisXxX:
When posting stuff that has a line number can you please also copy and past the line itself. Cause your line 319 would be different to mine due to the fact I have different amounts of added lines to you. If you haven't got a text editor that shows line numbers, I highly recommend Notepad++. I use it for all my XML/lua work.
--- Quote from: "Diemen" ---Also look into your server database Table PlayerCreateinfo Maybe you didn't add a line for Bloodelfs. --- End quote ---
This won't effect the character creation screen, this is activated upon clicking the accept button of the character creation screen.
lawrytrix:
I´m using Notepad++ since the first day of my modding "career" :D
Here is the line:
--- Quote ---CharacterCreateClassIcon:SetTexCoord(coords[1], coords[2], coords[3], coords[4]); --- End quote ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
|